pipedrive 24.2.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/versions/v1/api/activities-api.d.ts +40 -40
- package/dist/esm/versions/v1/api/activities-api.js +40 -40
- package/dist/esm/versions/v1/api/deals-api.d.ts +413 -91
- package/dist/esm/versions/v1/api/deals-api.js +419 -90
- package/dist/esm/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/esm/versions/v1/api/item-search-api.js +8 -8
- package/dist/esm/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/esm/versions/v1/api/leads-api.js +107 -14
- package/dist/esm/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/esm/versions/v1/api/notes-api.js +15 -5
- package/dist/esm/versions/v1/api/organizations-api.d.ts +71 -71
- package/dist/esm/versions/v1/api/organizations-api.js +70 -70
- package/dist/esm/versions/v1/api/persons-api.d.ts +59 -59
- package/dist/esm/versions/v1/api/persons-api.js +58 -58
- package/dist/esm/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/esm/versions/v1/api/pipelines-api.js +28 -28
- package/dist/esm/versions/v1/api/products-api.d.ts +24 -24
- package/dist/esm/versions/v1/api/products-api.js +24 -24
- package/dist/esm/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/esm/versions/v1/api/stages-api.js +36 -36
- package/dist/esm/versions/v1/api/subscriptions-api.d.ts +36 -36
- package/dist/esm/versions/v1/api/subscriptions-api.js +36 -36
- package/dist/esm/versions/v1/api/webhooks-api.d.ts +4 -4
- package/dist/esm/versions/v1/api/webhooks-api.js +4 -4
- package/dist/esm/versions/v1/base.d.ts +2 -3
- package/dist/esm/versions/v1/configuration.d.ts +2 -2
- package/dist/esm/versions/v1/models/add-note-request-all-of.d.ts +9 -4
- package/dist/esm/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/esm/versions/v1/models/add-note-request-all-of1.js +4 -0
- package/dist/esm/versions/v1/models/add-webhook-request.d.ts +5 -6
- package/dist/esm/versions/v1/models/add-webhook-request.js +4 -5
- package/dist/esm/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/esm/versions/v1/models/index.d.ts +1 -0
- package/dist/esm/versions/v1/models/index.js +1 -0
- package/dist/esm/versions/v1/models/note-project.d.ts +23 -0
- package/dist/esm/versions/v1/models/note-project.js +14 -0
- package/dist/esm/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/esm/versions/v1/models/note.d.ts +16 -0
- package/dist/esm/versions/v1/models/user-access.d.ts +3 -2
- package/dist/esm/versions/v1/models/user-access.js +4 -3
- package/dist/esm/versions/v1/models/user-access1.d.ts +3 -2
- package/dist/esm/versions/v1/models/user-access1.js +4 -3
- package/dist/esm/versions/v2/api/activities-api.d.ts +15 -7
- package/dist/esm/versions/v2/api/activities-api.js +12 -7
- package/dist/esm/versions/v2/api/beta-api.d.ts +194 -2532
- package/dist/esm/versions/v2/api/beta-api.js +263 -2928
- package/dist/esm/versions/v2/api/deals-api.d.ts +509 -4
- package/dist/esm/versions/v2/api/deals-api.js +589 -4
- package/dist/esm/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/esm/versions/v2/api/leads-api.js +146 -1
- package/dist/esm/versions/v2/api/organizations-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/organizations-api.js +301 -0
- package/dist/esm/versions/v2/api/persons-api.d.ts +245 -8
- package/dist/esm/versions/v2/api/persons-api.js +309 -8
- package/dist/esm/versions/v2/api/products-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/products-api.js +301 -0
- package/dist/esm/versions/v2/api/users-api.d.ts +103 -0
- package/dist/esm/versions/v2/api/users-api.js +140 -0
- package/dist/esm/versions/v2/api.d.ts +1 -0
- package/dist/esm/versions/v2/api.js +1 -0
- package/dist/esm/versions/v2/base.d.ts +2 -3
- package/dist/esm/versions/v2/configuration.d.ts +2 -2
- package/dist/esm/versions/v2/models/activity-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/activity-item1.d.ts +5 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.js +14 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.js +14 -0
- package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.js +14 -0
- package/dist/esm/versions/v2/models/add-deal-follower-request.d.ts +23 -0
- package/dist/esm/versions/v2/models/add-deal-follower-request.js +14 -0
- package/dist/esm/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
- package/dist/esm/versions/v2/models/add-follower-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/add-follower-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/add-follower-response.js +14 -0
- package/dist/esm/versions/v2/models/add-person-request.d.ts +12 -0
- package/dist/esm/versions/v2/models/add-person-request.js +6 -1
- package/dist/esm/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
- package/dist/esm/versions/v2/models/convert-lead-to-deal-request.js +14 -0
- package/dist/esm/versions/v2/models/deal-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/deal-item1.d.ts +5 -0
- package/dist/esm/versions/v2/models/delete-follower-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-follower-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-follower-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-follower-response.js +14 -0
- package/dist/esm/versions/v2/models/follower-changelog-item.d.ts +38 -0
- package/dist/esm/versions/v2/models/follower-changelog-item.js +14 -0
- package/dist/esm/versions/v2/models/follower-item.d.ts +28 -0
- package/dist/esm/versions/v2/models/follower-item.js +14 -0
- package/dist/esm/versions/v2/models/follower-item1.d.ts +28 -0
- package/dist/esm/versions/v2/models/follower-item1.js +14 -0
- package/dist/esm/versions/v2/models/get-convert-response.d.ts +43 -0
- package/dist/esm/versions/v2/models/get-convert-response.js +14 -0
- package/dist/esm/versions/v2/models/get-convert-response1-data.d.ts +46 -0
- package/dist/esm/versions/v2/models/get-convert-response1-data.js +20 -0
- package/dist/esm/versions/v2/models/get-convert-response1.d.ts +34 -0
- package/dist/esm/versions/v2/models/get-convert-response1.js +14 -0
- package/dist/esm/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response.js +14 -0
- package/dist/esm/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-followers-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-followers-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-followers-response.js +14 -0
- package/dist/esm/versions/v2/models/index.d.ts +19 -0
- package/dist/esm/versions/v2/models/index.js +19 -0
- package/dist/esm/versions/v2/models/update-person-request.d.ts +12 -0
- package/dist/esm/versions/v2/models/update-person-request.js +6 -1
- package/dist/versions/v1/api/activities-api.d.ts +40 -40
- package/dist/versions/v1/api/activities-api.js +40 -40
- package/dist/versions/v1/api/deals-api.d.ts +413 -91
- package/dist/versions/v1/api/deals-api.js +419 -90
- package/dist/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/versions/v1/api/item-search-api.js +8 -8
- package/dist/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/versions/v1/api/leads-api.js +107 -14
- package/dist/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/versions/v1/api/notes-api.js +15 -5
- package/dist/versions/v1/api/organizations-api.d.ts +71 -71
- package/dist/versions/v1/api/organizations-api.js +70 -70
- package/dist/versions/v1/api/persons-api.d.ts +59 -59
- package/dist/versions/v1/api/persons-api.js +58 -58
- package/dist/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/versions/v1/api/pipelines-api.js +28 -28
- package/dist/versions/v1/api/products-api.d.ts +24 -24
- package/dist/versions/v1/api/products-api.js +24 -24
- package/dist/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/versions/v1/api/stages-api.js +36 -36
- package/dist/versions/v1/api/subscriptions-api.d.ts +36 -36
- package/dist/versions/v1/api/subscriptions-api.js +36 -36
- package/dist/versions/v1/api/webhooks-api.d.ts +4 -4
- package/dist/versions/v1/api/webhooks-api.js +4 -4
- package/dist/versions/v1/base.d.ts +2 -3
- package/dist/versions/v1/configuration.d.ts +2 -2
- package/dist/versions/v1/models/add-note-request-all-of.d.ts +9 -4
- package/dist/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/versions/v1/models/add-note-request-all-of1.js +5 -1
- package/dist/versions/v1/models/add-webhook-request.d.ts +5 -6
- package/dist/versions/v1/models/add-webhook-request.js +4 -5
- package/dist/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/versions/v1/models/index.d.ts +1 -0
- package/dist/versions/v1/models/index.js +1 -0
- package/dist/versions/v1/models/note-project.d.ts +23 -0
- package/dist/versions/v1/models/note-project.js +15 -0
- package/dist/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/versions/v1/models/note.d.ts +16 -0
- package/dist/versions/v1/models/user-access.d.ts +3 -2
- package/dist/versions/v1/models/user-access.js +4 -3
- package/dist/versions/v1/models/user-access1.d.ts +3 -2
- package/dist/versions/v1/models/user-access1.js +4 -3
- package/dist/versions/v2/api/activities-api.d.ts +15 -7
- package/dist/versions/v2/api/activities-api.js +12 -7
- package/dist/versions/v2/api/beta-api.d.ts +194 -2532
- package/dist/versions/v2/api/beta-api.js +265 -2930
- package/dist/versions/v2/api/deals-api.d.ts +509 -4
- package/dist/versions/v2/api/deals-api.js +589 -4
- package/dist/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/versions/v2/api/leads-api.js +145 -0
- package/dist/versions/v2/api/organizations-api.d.ts +237 -0
- package/dist/versions/v2/api/organizations-api.js +301 -0
- package/dist/versions/v2/api/persons-api.d.ts +245 -8
- package/dist/versions/v2/api/persons-api.js +309 -8
- package/dist/versions/v2/api/products-api.d.ts +237 -0
- package/dist/versions/v2/api/products-api.js +301 -0
- package/dist/versions/v2/api/users-api.d.ts +103 -0
- package/dist/versions/v2/api/users-api.js +150 -0
- package/dist/versions/v2/api.d.ts +1 -0
- package/dist/versions/v2/api.js +1 -0
- package/dist/versions/v2/base.d.ts +2 -3
- package/dist/versions/v2/configuration.d.ts +2 -2
- package/dist/versions/v2/models/activity-item.d.ts +5 -0
- package/dist/versions/v2/models/activity-item1.d.ts +5 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.js +15 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response.js +15 -0
- package/dist/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
- package/dist/versions/v2/models/add-convert-lead-to-deal-response.js +15 -0
- package/dist/versions/v2/models/add-deal-follower-request.d.ts +23 -0
- package/dist/versions/v2/models/add-deal-follower-request.js +15 -0
- package/dist/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
- package/dist/versions/v2/models/add-follower-response-all-of.js +15 -0
- package/dist/versions/v2/models/add-follower-response.d.ts +18 -0
- package/dist/versions/v2/models/add-follower-response.js +15 -0
- package/dist/versions/v2/models/add-person-request.d.ts +12 -0
- package/dist/versions/v2/models/add-person-request.js +7 -0
- package/dist/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
- package/dist/versions/v2/models/convert-lead-to-deal-request.js +15 -0
- package/dist/versions/v2/models/deal-item.d.ts +5 -0
- package/dist/versions/v2/models/deal-item1.d.ts +5 -0
- package/dist/versions/v2/models/delete-follower-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-follower-response-data.js +15 -0
- package/dist/versions/v2/models/delete-follower-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-follower-response.js +15 -0
- package/dist/versions/v2/models/follower-changelog-item.d.ts +38 -0
- package/dist/versions/v2/models/follower-changelog-item.js +15 -0
- package/dist/versions/v2/models/follower-item.d.ts +28 -0
- package/dist/versions/v2/models/follower-item.js +15 -0
- package/dist/versions/v2/models/follower-item1.d.ts +28 -0
- package/dist/versions/v2/models/follower-item1.js +15 -0
- package/dist/versions/v2/models/get-convert-response.d.ts +43 -0
- package/dist/versions/v2/models/get-convert-response.js +15 -0
- package/dist/versions/v2/models/get-convert-response1-data.d.ts +46 -0
- package/dist/versions/v2/models/get-convert-response1-data.js +23 -0
- package/dist/versions/v2/models/get-convert-response1.d.ts +34 -0
- package/dist/versions/v2/models/get-convert-response1.js +15 -0
- package/dist/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-follower-changelogs-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
- package/dist/versions/v2/models/get-follower-changelogs-response.js +15 -0
- package/dist/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-followers-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-followers-response.d.ts +18 -0
- package/dist/versions/v2/models/get-followers-response.js +15 -0
- package/dist/versions/v2/models/index.d.ts +19 -0
- package/dist/versions/v2/models/index.js +19 -0
- package/dist/versions/v2/models/update-person-request.d.ts +12 -0
- package/dist/versions/v2/models/update-person-request.js +7 -0
- package/package.json +1 -1
@@ -39,7 +39,7 @@ const base_1 = require("../base");
|
|
39
39
|
const WebhooksApiAxiosParamCreator = function (configuration) {
|
40
40
|
return {
|
41
41
|
/**
|
42
|
-
* 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, `
|
42
|
+
* 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, `create.deal` for any newly added deals, `delete.persons` for any deleted persons, etc. See <a href=\"https://pipedrive.readme.io/docs/guide-for-webhooks-v2?ref=api_reference\" target=\"_blank\" rel=\"noopener noreferrer\">the guide for Webhooks</a> for more details.
|
43
43
|
* @summary Create a new Webhook
|
44
44
|
* @param {AddWebhookRequest} [AddWebhookRequest]
|
45
45
|
|
@@ -146,7 +146,7 @@ const WebhooksApiFp = function (configuration) {
|
|
146
146
|
const localVarAxiosParamCreator = (0, exports.WebhooksApiAxiosParamCreator)(configuration);
|
147
147
|
return {
|
148
148
|
/**
|
149
|
-
* 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, `
|
149
|
+
* 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, `create.deal` for any newly added deals, `delete.persons` for any deleted persons, etc. See <a href=\"https://pipedrive.readme.io/docs/guide-for-webhooks-v2?ref=api_reference\" target=\"_blank\" rel=\"noopener noreferrer\">the guide for Webhooks</a> for more details.
|
150
150
|
* @summary Create a new Webhook
|
151
151
|
* @param {AddWebhookRequest} [AddWebhookRequest]
|
152
152
|
|
@@ -194,7 +194,7 @@ const WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
194
194
|
const localVarFp = (0, exports.WebhooksApiFp)(configuration);
|
195
195
|
return {
|
196
196
|
/**
|
197
|
-
* 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, `
|
197
|
+
* 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, `create.deal` for any newly added deals, `delete.persons` for any deleted persons, etc. See <a href=\"https://pipedrive.readme.io/docs/guide-for-webhooks-v2?ref=api_reference\" target=\"_blank\" rel=\"noopener noreferrer\">the guide for Webhooks</a> for more details.
|
198
198
|
* @summary Create a new Webhook
|
199
199
|
* @param {WebhooksApiAddWebhookRequest} requestParameters Request parameters.
|
200
200
|
|
@@ -233,7 +233,7 @@ exports.WebhooksApiFactory = WebhooksApiFactory;
|
|
233
233
|
*/
|
234
234
|
class WebhooksApi extends base_1.BaseAPI {
|
235
235
|
/**
|
236
|
-
* 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, `
|
236
|
+
* 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, `create.deal` for any newly added deals, `delete.persons` for any deleted persons, etc. See <a href=\"https://pipedrive.readme.io/docs/guide-for-webhooks-v2?ref=api_reference\" target=\"_blank\" rel=\"noopener noreferrer\">the guide for Webhooks</a> for more details.
|
237
237
|
* @summary Create a new Webhook
|
238
238
|
* @param {WebhooksApiAddWebhookRequest} requestParameters Request parameters.
|
239
239
|
|
@@ -10,8 +10,7 @@
|
|
10
10
|
* Do not edit the class manually.
|
11
11
|
*/
|
12
12
|
import type { Configuration } from './configuration';
|
13
|
-
import type { AxiosError, AxiosResponse, AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';
|
14
|
-
import axios from 'axios';
|
13
|
+
import type { AxiosError, AxiosResponse, AxiosRequestConfig, InternalAxiosRequestConfig, AxiosInstance } from 'axios';
|
15
14
|
export declare const BASE_PATH: string;
|
16
15
|
/**
|
17
16
|
*
|
@@ -43,7 +42,7 @@ export declare const errorInterceptor: (error: AxiosError) => Promise<never>;
|
|
43
42
|
export declare class BaseAPI {
|
44
43
|
protected configuration: Configuration | undefined;
|
45
44
|
protected basePath: string;
|
46
|
-
protected axios:
|
45
|
+
protected axios: AxiosInstance;
|
47
46
|
constructor(configuration: Configuration);
|
48
47
|
}
|
49
48
|
/**
|
@@ -9,7 +9,7 @@
|
|
9
9
|
* https://openapi-generator.tech
|
10
10
|
* Do not edit the class manually.
|
11
11
|
*/
|
12
|
-
import
|
12
|
+
import { AxiosResponse } from "axios";
|
13
13
|
export type TokenResponse = {
|
14
14
|
access_token: string;
|
15
15
|
refresh_token: string;
|
@@ -54,7 +54,7 @@ export declare class OAuth2Configuration {
|
|
54
54
|
* Revoke Refresh Token aka marking an app uninstalled or revoke the Access Token.
|
55
55
|
* @param {String} tokenTypeHint values can be: 'access_token' or 'refresh_token'.
|
56
56
|
*/
|
57
|
-
revokeToken(tokenTypeHint?: 'access_token' | 'refresh_token'): Promise<
|
57
|
+
revokeToken(tokenTypeHint?: 'access_token' | 'refresh_token'): Promise<AxiosResponse<any, any>>;
|
58
58
|
private validateParam;
|
59
59
|
}
|
60
60
|
export interface ConfigurationParameters {
|
@@ -21,23 +21,28 @@ export interface AddNoteRequestAllOf {
|
|
21
21
|
*/
|
22
22
|
'content': string;
|
23
23
|
/**
|
24
|
-
* 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.
|
24
|
+
* The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id/project_id`) is specified.
|
25
25
|
* @type {string}
|
26
26
|
*/
|
27
27
|
'lead_id'?: string;
|
28
28
|
/**
|
29
|
-
* 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.
|
29
|
+
* The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id/project_id`) is specified.
|
30
30
|
* @type {number}
|
31
31
|
*/
|
32
32
|
'deal_id'?: number;
|
33
33
|
/**
|
34
|
-
* 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.
|
34
|
+
* The ID of the person this note will be attached to. This property is required unless one of (`deal_id/lead_id/org_id/project_id`) is specified.
|
35
35
|
* @type {number}
|
36
36
|
*/
|
37
37
|
'person_id'?: number;
|
38
38
|
/**
|
39
|
-
* 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.
|
39
|
+
* The ID of the organization this note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id/project_id`) is specified.
|
40
40
|
* @type {number}
|
41
41
|
*/
|
42
42
|
'org_id'?: number;
|
43
|
+
/**
|
44
|
+
* The ID of the project the note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id/org_id`) is specified.
|
45
|
+
* @type {number}
|
46
|
+
*/
|
47
|
+
'project_id'?: number;
|
43
48
|
}
|
@@ -45,6 +45,11 @@ export interface AddNoteRequestAllOf1 {
|
|
45
45
|
* @type {number}
|
46
46
|
*/
|
47
47
|
'pinned_to_person_flag'?: AddNoteRequestAllOf1PinnedToPersonFlagConst;
|
48
|
+
/**
|
49
|
+
*
|
50
|
+
* @type {number}
|
51
|
+
*/
|
52
|
+
'pinned_to_project_flag'?: AddNoteRequestAllOf1PinnedToProjectFlagConst;
|
48
53
|
}
|
49
54
|
export declare const AddNoteRequestAllOf1PinnedToLeadFlagConst: {
|
50
55
|
readonly NUMBER_0: 0;
|
@@ -66,3 +71,8 @@ export declare const AddNoteRequestAllOf1PinnedToPersonFlagConst: {
|
|
66
71
|
readonly NUMBER_1: 1;
|
67
72
|
};
|
68
73
|
export type AddNoteRequestAllOf1PinnedToPersonFlagConst = typeof AddNoteRequestAllOf1PinnedToPersonFlagConst[keyof typeof AddNoteRequestAllOf1PinnedToPersonFlagConst];
|
74
|
+
export declare const AddNoteRequestAllOf1PinnedToProjectFlagConst: {
|
75
|
+
readonly NUMBER_0: 0;
|
76
|
+
readonly NUMBER_1: 1;
|
77
|
+
};
|
78
|
+
export type AddNoteRequestAllOf1PinnedToProjectFlagConst = typeof AddNoteRequestAllOf1PinnedToProjectFlagConst[keyof typeof AddNoteRequestAllOf1PinnedToProjectFlagConst];
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* Do not edit the class manually.
|
14
14
|
*/
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
-
exports.AddNoteRequestAllOf1PinnedToPersonFlagConst = exports.AddNoteRequestAllOf1PinnedToOrganizationFlagConst = exports.AddNoteRequestAllOf1PinnedToDealFlagConst = exports.AddNoteRequestAllOf1PinnedToLeadFlagConst = void 0;
|
16
|
+
exports.AddNoteRequestAllOf1PinnedToProjectFlagConst = exports.AddNoteRequestAllOf1PinnedToPersonFlagConst = exports.AddNoteRequestAllOf1PinnedToOrganizationFlagConst = exports.AddNoteRequestAllOf1PinnedToDealFlagConst = exports.AddNoteRequestAllOf1PinnedToLeadFlagConst = void 0;
|
17
17
|
exports.AddNoteRequestAllOf1PinnedToLeadFlagConst = {
|
18
18
|
NUMBER_0: 0,
|
19
19
|
NUMBER_1: 1
|
@@ -30,3 +30,7 @@ exports.AddNoteRequestAllOf1PinnedToPersonFlagConst = {
|
|
30
30
|
NUMBER_0: 0,
|
31
31
|
NUMBER_1: 1
|
32
32
|
};
|
33
|
+
exports.AddNoteRequestAllOf1PinnedToProjectFlagConst = {
|
34
|
+
NUMBER_0: 0,
|
35
|
+
NUMBER_1: 1
|
36
|
+
};
|
@@ -46,23 +46,22 @@ export interface AddWebhookRequest {
|
|
46
46
|
*/
|
47
47
|
'http_auth_password'?: string;
|
48
48
|
/**
|
49
|
-
* The webhook\'s version. NB! Webhooks v2
|
49
|
+
* The webhook\'s version. NB! Webhooks v2 is the default from March 17th, 2025. See <a href=\"https://developers.pipedrive.com/changelog/post/breaking-change-webhooks-v2-will-become-the-new-default-version\" target=\"_blank\" rel=\"noopener noreferrer\">this Changelog post</a> for more details.
|
50
50
|
* @type {string}
|
51
51
|
*/
|
52
52
|
'version'?: AddWebhookRequestVersionConst;
|
53
53
|
}
|
54
54
|
export declare const AddWebhookRequestEventActionConst: {
|
55
|
-
readonly
|
56
|
-
readonly
|
57
|
-
readonly
|
58
|
-
readonly deleted: "deleted";
|
55
|
+
readonly create: "create";
|
56
|
+
readonly change: "change";
|
57
|
+
readonly delete: "delete";
|
59
58
|
readonly Star: "*";
|
60
59
|
};
|
61
60
|
export type AddWebhookRequestEventActionConst = typeof AddWebhookRequestEventActionConst[keyof typeof AddWebhookRequestEventActionConst];
|
62
61
|
export declare const AddWebhookRequestEventObjectConst: {
|
63
62
|
readonly activity: "activity";
|
64
|
-
readonly activityType: "activityType";
|
65
63
|
readonly deal: "deal";
|
64
|
+
readonly lead: "lead";
|
66
65
|
readonly note: "note";
|
67
66
|
readonly organization: "organization";
|
68
67
|
readonly person: "person";
|
@@ -15,16 +15,15 @@
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
16
|
exports.AddWebhookRequestVersionConst = exports.AddWebhookRequestEventObjectConst = exports.AddWebhookRequestEventActionConst = void 0;
|
17
17
|
exports.AddWebhookRequestEventActionConst = {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
deleted: 'deleted',
|
18
|
+
create: 'create',
|
19
|
+
change: 'change',
|
20
|
+
delete: 'delete',
|
22
21
|
Star: '*'
|
23
22
|
};
|
24
23
|
exports.AddWebhookRequestEventObjectConst = {
|
25
24
|
activity: 'activity',
|
26
|
-
activityType: 'activityType',
|
27
25
|
deal: 'deal',
|
26
|
+
lead: 'lead',
|
28
27
|
note: 'note',
|
29
28
|
organization: 'organization',
|
30
29
|
person: 'person',
|
@@ -619,6 +619,7 @@ export * from './note';
|
|
619
619
|
export * from './note-deal';
|
620
620
|
export * from './note-organization';
|
621
621
|
export * from './note-person';
|
622
|
+
export * from './note-project';
|
622
623
|
export * from './note-request';
|
623
624
|
export * from './note-request-all-of';
|
624
625
|
export * from './note-request-all-of1';
|
@@ -635,6 +635,7 @@ __exportStar(require("./note"), exports);
|
|
635
635
|
__exportStar(require("./note-deal"), exports);
|
636
636
|
__exportStar(require("./note-organization"), exports);
|
637
637
|
__exportStar(require("./note-person"), exports);
|
638
|
+
__exportStar(require("./note-project"), exports);
|
638
639
|
__exportStar(require("./note-request"), exports);
|
639
640
|
__exportStar(require("./note-request-all-of"), exports);
|
640
641
|
__exportStar(require("./note-request-all-of1"), exports);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Pipedrive API v1
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
/**
|
13
|
+
* The project the note is attached to
|
14
|
+
* @export
|
15
|
+
* @interface NoteProject
|
16
|
+
*/
|
17
|
+
export interface NoteProject {
|
18
|
+
/**
|
19
|
+
* The title of the project the note is attached to
|
20
|
+
* @type {string}
|
21
|
+
*/
|
22
|
+
'title'?: string;
|
23
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* Pipedrive API v1
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
9
|
+
*
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
@@ -12,6 +12,7 @@
|
|
12
12
|
import { NoteDeal } from './note-deal';
|
13
13
|
import { NoteOrganization } from './note-organization';
|
14
14
|
import { NotePerson } from './note-person';
|
15
|
+
import { NoteProject } from './note-project';
|
15
16
|
import { NoteUser } from './note-user';
|
16
17
|
/**
|
17
18
|
*
|
@@ -80,6 +81,16 @@ export interface Note {
|
|
80
81
|
*/
|
81
82
|
'person_id'?: number;
|
82
83
|
/**
|
84
|
+
* The ID of the project the note is attached to
|
85
|
+
* @type {number}
|
86
|
+
*/
|
87
|
+
'project_id'?: number;
|
88
|
+
/**
|
89
|
+
*
|
90
|
+
* @type {NoteProject}
|
91
|
+
*/
|
92
|
+
'project'?: NoteProject;
|
93
|
+
/**
|
83
94
|
* If true, the results are filtered by note to deal pinning state
|
84
95
|
* @type {boolean}
|
85
96
|
*/
|
@@ -95,6 +106,11 @@ export interface Note {
|
|
95
106
|
*/
|
96
107
|
'pinned_to_person_flag'?: boolean;
|
97
108
|
/**
|
109
|
+
* If true, the results are filtered by note to project pinning state
|
110
|
+
* @type {boolean}
|
111
|
+
*/
|
112
|
+
'pinned_to_project_flag'?: boolean;
|
113
|
+
/**
|
98
114
|
* The last updated date and time of the note
|
99
115
|
* @type {string}
|
100
116
|
*/
|
@@ -32,10 +32,11 @@ export interface UserAccess {
|
|
32
32
|
'permission_set_id'?: string;
|
33
33
|
}
|
34
34
|
export declare const UserAccessAppConst: {
|
35
|
+
readonly global: "global";
|
35
36
|
readonly sales: "sales";
|
36
|
-
readonly projects: "projects";
|
37
37
|
readonly campaigns: "campaigns";
|
38
|
-
readonly
|
38
|
+
readonly projects: "projects";
|
39
39
|
readonly account_settings: "account_settings";
|
40
|
+
readonly partnership: "partnership";
|
40
41
|
};
|
41
42
|
export type UserAccessAppConst = typeof UserAccessAppConst[keyof typeof UserAccessAppConst];
|
@@ -15,9 +15,10 @@
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
16
|
exports.UserAccessAppConst = void 0;
|
17
17
|
exports.UserAccessAppConst = {
|
18
|
+
global: 'global',
|
18
19
|
sales: 'sales',
|
19
|
-
projects: 'projects',
|
20
20
|
campaigns: 'campaigns',
|
21
|
-
|
22
|
-
account_settings: 'account_settings'
|
21
|
+
projects: 'projects',
|
22
|
+
account_settings: 'account_settings',
|
23
|
+
partnership: 'partnership'
|
23
24
|
};
|
@@ -32,10 +32,11 @@ export interface UserAccess1 {
|
|
32
32
|
'permission_set_id'?: string;
|
33
33
|
}
|
34
34
|
export declare const UserAccess1AppConst: {
|
35
|
+
readonly global: "global";
|
35
36
|
readonly sales: "sales";
|
36
|
-
readonly projects: "projects";
|
37
37
|
readonly campaigns: "campaigns";
|
38
|
-
readonly
|
38
|
+
readonly projects: "projects";
|
39
39
|
readonly account_settings: "account_settings";
|
40
|
+
readonly partnership: "partnership";
|
40
41
|
};
|
41
42
|
export type UserAccess1AppConst = typeof UserAccess1AppConst[keyof typeof UserAccess1AppConst];
|
@@ -15,9 +15,10 @@
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
16
|
exports.UserAccess1AppConst = void 0;
|
17
17
|
exports.UserAccess1AppConst = {
|
18
|
+
global: 'global',
|
18
19
|
sales: 'sales',
|
19
|
-
projects: 'projects',
|
20
20
|
campaigns: 'campaigns',
|
21
|
-
|
22
|
-
account_settings: 'account_settings'
|
21
|
+
projects: 'projects',
|
22
|
+
account_settings: 'account_settings',
|
23
|
+
partnership: 'partnership'
|
23
24
|
};
|
@@ -47,9 +47,10 @@ export declare const ActivitiesApiAxiosParamCreator: (configuration?: Configurat
|
|
47
47
|
* @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
|
48
48
|
* @param {number} [person_id] If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored.
|
49
49
|
* @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
50
|
+
* @param {boolean} [done] If supplied, only activities with specified \'done\' flag value are returned
|
50
51
|
* @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.
|
51
52
|
* @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.
|
52
|
-
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
53
|
+
* @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `due_date`.
|
53
54
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
54
55
|
* @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
|
55
56
|
* @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.
|
@@ -57,7 +58,7 @@ export declare const ActivitiesApiAxiosParamCreator: (configuration?: Configurat
|
|
57
58
|
|
58
59
|
* @throws {RequiredError}
|
59
60
|
*/
|
60
|
-
getActivities: (filter_id?: number, ids?: string, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_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<RequestArgs>;
|
61
|
+
getActivities: (filter_id?: number, ids?: string, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: 'attendees', limit?: number, cursor?: string) => Promise<RequestArgs>;
|
61
62
|
/**
|
62
63
|
* Returns the details of a specific activity.
|
63
64
|
* @summary Get details of an activity
|
@@ -108,9 +109,10 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
|
|
108
109
|
* @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
|
109
110
|
* @param {number} [person_id] If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored.
|
110
111
|
* @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
112
|
+
* @param {boolean} [done] If supplied, only activities with specified \'done\' flag value are returned
|
111
113
|
* @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.
|
112
114
|
* @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.
|
113
|
-
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
115
|
+
* @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `due_date`.
|
114
116
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
115
117
|
* @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
|
116
118
|
* @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.
|
@@ -118,7 +120,7 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
|
|
118
120
|
|
119
121
|
* @throws {RequiredError}
|
120
122
|
*/
|
121
|
-
getActivities(filter_id?: number, ids?: string, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_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<GetActivitiesResponse>>;
|
123
|
+
getActivities(filter_id?: number, ids?: string, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: 'attendees', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivitiesResponse>>;
|
122
124
|
/**
|
123
125
|
* Returns the details of a specific activity.
|
124
126
|
* @summary Get details of an activity
|
@@ -258,6 +260,12 @@ export interface ActivitiesApiGetActivitiesRequest {
|
|
258
260
|
* @memberof ActivitiesApiGetActivities
|
259
261
|
*/
|
260
262
|
readonly org_id?: number;
|
263
|
+
/**
|
264
|
+
* If supplied, only activities with specified \'done\' flag value are returned
|
265
|
+
* @type {boolean}
|
266
|
+
* @memberof ActivitiesApiGetActivities
|
267
|
+
*/
|
268
|
+
readonly done?: boolean;
|
261
269
|
/**
|
262
270
|
* 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.
|
263
271
|
* @type {string}
|
@@ -271,11 +279,11 @@ export interface ActivitiesApiGetActivitiesRequest {
|
|
271
279
|
*/
|
272
280
|
readonly updated_until?: string;
|
273
281
|
/**
|
274
|
-
* The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
275
|
-
* @type {'id' | 'update_time' | 'add_time'}
|
282
|
+
* The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `due_date`.
|
283
|
+
* @type {'id' | 'update_time' | 'add_time' | 'due_date'}
|
276
284
|
* @memberof ActivitiesApiGetActivities
|
277
285
|
*/
|
278
|
-
readonly sort_by?: 'id' | 'update_time' | 'add_time';
|
286
|
+
readonly sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date';
|
279
287
|
/**
|
280
288
|
* The sorting direction. Supported values: `asc`, `desc`.
|
281
289
|
* @type {'asc' | 'desc'}
|
@@ -115,9 +115,10 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
115
115
|
* @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
|
116
116
|
* @param {number} [person_id] If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored.
|
117
117
|
* @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
118
|
+
* @param {boolean} [done] If supplied, only activities with specified \'done\' flag value are returned
|
118
119
|
* @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.
|
119
120
|
* @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.
|
120
|
-
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
121
|
+
* @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `due_date`.
|
121
122
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
122
123
|
* @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
|
123
124
|
* @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.
|
@@ -125,7 +126,7 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
125
126
|
|
126
127
|
* @throws {RequiredError}
|
127
128
|
*/
|
128
|
-
getActivities: (filter_id, ids, owner_id, deal_id, lead_id, person_id, org_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
129
|
+
getActivities: (filter_id, ids, owner_id, deal_id, lead_id, person_id, org_id, done, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
129
130
|
const localVarPath = `/activities`;
|
130
131
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
131
132
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -162,6 +163,9 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
162
163
|
if (org_id !== undefined) {
|
163
164
|
localVarQueryParameter['org_id'] = org_id;
|
164
165
|
}
|
166
|
+
if (done !== undefined) {
|
167
|
+
localVarQueryParameter['done'] = done;
|
168
|
+
}
|
165
169
|
if (updated_since !== undefined) {
|
166
170
|
localVarQueryParameter['updated_since'] = updated_since;
|
167
171
|
}
|
@@ -312,9 +316,10 @@ const ActivitiesApiFp = function (configuration) {
|
|
312
316
|
* @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
|
313
317
|
* @param {number} [person_id] If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored.
|
314
318
|
* @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
319
|
+
* @param {boolean} [done] If supplied, only activities with specified \'done\' flag value are returned
|
315
320
|
* @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.
|
316
321
|
* @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.
|
317
|
-
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
322
|
+
* @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `due_date`.
|
318
323
|
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
319
324
|
* @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
|
320
325
|
* @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.
|
@@ -322,9 +327,9 @@ const ActivitiesApiFp = function (configuration) {
|
|
322
327
|
|
323
328
|
* @throws {RequiredError}
|
324
329
|
*/
|
325
|
-
getActivities(filter_id, ids, owner_id, deal_id, lead_id, person_id, org_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor) {
|
330
|
+
getActivities(filter_id, ids, owner_id, deal_id, lead_id, person_id, org_id, done, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor) {
|
326
331
|
return __awaiter(this, void 0, void 0, function* () {
|
327
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getActivities(filter_id, ids, owner_id, deal_id, lead_id, person_id, org_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor);
|
332
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getActivities(filter_id, ids, owner_id, deal_id, lead_id, person_id, org_id, done, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor);
|
328
333
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
329
334
|
});
|
330
335
|
},
|
@@ -394,7 +399,7 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
|
|
394
399
|
* @throws {RequiredError}
|
395
400
|
*/
|
396
401
|
getActivities(requestParameters = {}) {
|
397
|
-
return localVarFp.getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.deal_id, requestParameters.lead_id, requestParameters.person_id, requestParameters.org_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));
|
402
|
+
return localVarFp.getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.deal_id, requestParameters.lead_id, requestParameters.person_id, requestParameters.org_id, requestParameters.done, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
398
403
|
},
|
399
404
|
/**
|
400
405
|
* Returns the details of a specific activity.
|
@@ -457,7 +462,7 @@ class ActivitiesApi extends base_1.BaseAPI {
|
|
457
462
|
* @memberof ActivitiesApi
|
458
463
|
*/
|
459
464
|
getActivities(requestParameters = {}) {
|
460
|
-
return (0, exports.ActivitiesApiFp)(this.configuration).getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.deal_id, requestParameters.lead_id, requestParameters.person_id, requestParameters.org_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));
|
465
|
+
return (0, exports.ActivitiesApiFp)(this.configuration).getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.deal_id, requestParameters.lead_id, requestParameters.person_id, requestParameters.org_id, requestParameters.done, 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));
|
461
466
|
}
|
462
467
|
/**
|
463
468
|
* Returns the details of a specific activity.
|