pipedrive 24.1.0 → 24.2.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.
Files changed (79) hide show
  1. package/dist/esm/versions/v1/models/additional-data.d.ts +38 -0
  2. package/dist/esm/versions/v1/models/additional-data.js +14 -0
  3. package/dist/esm/versions/v1/models/base-webhook.d.ts +2 -1
  4. package/dist/esm/versions/v1/models/base-webhook.js +2 -1
  5. package/dist/esm/versions/v1/models/get-notes-response-additional-data.d.ts +3 -3
  6. package/dist/esm/versions/v1/models/index.d.ts +1 -1
  7. package/dist/esm/versions/v1/models/index.js +1 -1
  8. package/dist/esm/versions/v2/api/activities-api.d.ts +34 -2
  9. package/dist/esm/versions/v2/api/activities-api.js +25 -5
  10. package/dist/esm/versions/v2/api/beta-api.d.ts +288 -2
  11. package/dist/esm/versions/v2/api/beta-api.js +337 -5
  12. package/dist/esm/versions/v2/api/deals-api.d.ts +254 -0
  13. package/dist/esm/versions/v2/api/deals-api.js +312 -0
  14. package/dist/esm/versions/v2/models/add-ainstallment-response.d.ts +29 -0
  15. package/dist/esm/versions/v2/models/add-ainstallment-response.js +14 -0
  16. package/dist/esm/versions/v2/models/add-installment-request-body.d.ts +33 -0
  17. package/dist/esm/versions/v2/models/add-installment-request-body.js +14 -0
  18. package/dist/esm/versions/v2/models/delete-installment-response-data.d.ts +23 -0
  19. package/dist/esm/versions/v2/models/delete-installment-response-data.js +14 -0
  20. package/dist/esm/versions/v2/models/delete-installment-response.d.ts +29 -0
  21. package/dist/esm/versions/v2/models/delete-installment-response.js +14 -0
  22. package/dist/esm/versions/v2/models/get-activities-response-all-of-additional-data.d.ts +23 -0
  23. package/dist/esm/versions/v2/models/get-activities-response-all-of-additional-data.js +14 -0
  24. package/dist/esm/versions/v2/models/get-activities-response-all-of.d.ts +6 -0
  25. package/dist/esm/versions/v2/models/get-deals-response-all-of.d.ts +6 -0
  26. package/dist/esm/versions/v2/models/get-installments-response-data-inner.d.ts +43 -0
  27. package/dist/esm/versions/v2/models/get-installments-response-data-inner.js +14 -0
  28. package/dist/esm/versions/v2/models/get-installments-response.d.ts +29 -0
  29. package/dist/esm/versions/v2/models/get-installments-response.js +14 -0
  30. package/dist/esm/versions/v2/models/get-organizations-response-all-of.d.ts +6 -0
  31. package/dist/esm/versions/v2/models/get-persons-response-all-of.d.ts +6 -0
  32. package/dist/esm/versions/v2/models/get-pipelines-response-all-of.d.ts +6 -0
  33. package/dist/esm/versions/v2/models/get-stages-response.d.ts +6 -0
  34. package/dist/esm/versions/v2/models/index.d.ts +9 -0
  35. package/dist/esm/versions/v2/models/index.js +9 -0
  36. package/dist/esm/versions/v2/models/update-installment-request-body.d.ts +33 -0
  37. package/dist/esm/versions/v2/models/update-installment-request-body.js +14 -0
  38. package/dist/esm/versions/v2/models/update-installment-response.d.ts +29 -0
  39. package/dist/esm/versions/v2/models/update-installment-response.js +14 -0
  40. package/dist/versions/v1/models/additional-data.d.ts +38 -0
  41. package/dist/versions/v1/models/additional-data.js +15 -0
  42. package/dist/versions/v1/models/base-webhook.d.ts +2 -1
  43. package/dist/versions/v1/models/base-webhook.js +2 -1
  44. package/dist/versions/v1/models/get-notes-response-additional-data.d.ts +3 -3
  45. package/dist/versions/v1/models/index.d.ts +1 -1
  46. package/dist/versions/v1/models/index.js +1 -1
  47. package/dist/versions/v2/api/activities-api.d.ts +34 -2
  48. package/dist/versions/v2/api/activities-api.js +25 -5
  49. package/dist/versions/v2/api/beta-api.d.ts +288 -2
  50. package/dist/versions/v2/api/beta-api.js +337 -5
  51. package/dist/versions/v2/api/deals-api.d.ts +254 -0
  52. package/dist/versions/v2/api/deals-api.js +312 -0
  53. package/dist/versions/v2/models/add-ainstallment-response.d.ts +29 -0
  54. package/dist/versions/v2/models/add-ainstallment-response.js +15 -0
  55. package/dist/versions/v2/models/add-installment-request-body.d.ts +33 -0
  56. package/dist/versions/v2/models/add-installment-request-body.js +15 -0
  57. package/dist/versions/v2/models/delete-installment-response-data.d.ts +23 -0
  58. package/dist/versions/v2/models/delete-installment-response-data.js +15 -0
  59. package/dist/versions/v2/models/delete-installment-response.d.ts +29 -0
  60. package/dist/versions/v2/models/delete-installment-response.js +15 -0
  61. package/dist/versions/v2/models/get-activities-response-all-of-additional-data.d.ts +23 -0
  62. package/dist/versions/v2/models/get-activities-response-all-of-additional-data.js +15 -0
  63. package/dist/versions/v2/models/get-activities-response-all-of.d.ts +6 -0
  64. package/dist/versions/v2/models/get-deals-response-all-of.d.ts +6 -0
  65. package/dist/versions/v2/models/get-installments-response-data-inner.d.ts +43 -0
  66. package/dist/versions/v2/models/get-installments-response-data-inner.js +15 -0
  67. package/dist/versions/v2/models/get-installments-response.d.ts +29 -0
  68. package/dist/versions/v2/models/get-installments-response.js +15 -0
  69. package/dist/versions/v2/models/get-organizations-response-all-of.d.ts +6 -0
  70. package/dist/versions/v2/models/get-persons-response-all-of.d.ts +6 -0
  71. package/dist/versions/v2/models/get-pipelines-response-all-of.d.ts +6 -0
  72. package/dist/versions/v2/models/get-stages-response.d.ts +6 -0
  73. package/dist/versions/v2/models/index.d.ts +9 -0
  74. package/dist/versions/v2/models/index.js +9 -0
  75. package/dist/versions/v2/models/update-installment-request-body.d.ts +33 -0
  76. package/dist/versions/v2/models/update-installment-request-body.js +15 -0
  77. package/dist/versions/v2/models/update-installment-response.d.ts +29 -0
  78. package/dist/versions/v2/models/update-installment-response.js +15 -0
  79. package/package.json +1 -1
@@ -12,18 +12,21 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosInstance } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { AddAInstallmentResponse } from '../models';
15
16
  import { AddActivityRequest } from '../models';
16
17
  import { AddAdditionalDiscountRequestBody } from '../models';
17
18
  import { AddAdditionalDiscountResponse } from '../models';
18
19
  import { AddDealProductRequest } from '../models';
19
20
  import { AddDealProductResponse } from '../models';
20
21
  import { AddDealRequest } from '../models';
22
+ import { AddInstallmentRequestBody } from '../models';
21
23
  import { AddOrganizationRequest } from '../models';
22
24
  import { AddPersonRequest } from '../models';
23
25
  import { DeleteActivityResponse } from '../models';
24
26
  import { DeleteAdditionalDiscountResponse } from '../models';
25
27
  import { DeleteDealProductResponse } from '../models';
26
28
  import { DeleteDealResponse } from '../models';
29
+ import { DeleteInstallmentResponse } from '../models';
27
30
  import { DeleteOrganizationResponse } from '../models';
28
31
  import { DeletePersonResponse } from '../models';
29
32
  import { GetActivitiesResponse } from '../models';
@@ -31,6 +34,7 @@ import { GetAdditionalDiscountsResponse } from '../models';
31
34
  import { GetDealSearchResponse } from '../models';
32
35
  import { GetDealsProductsResponse } from '../models';
33
36
  import { GetDealsResponse } from '../models';
37
+ import { GetInstallmentsResponse } from '../models';
34
38
  import { GetItemSearchFieldResponse } from '../models';
35
39
  import { GetItemSearchResponse } from '../models';
36
40
  import { GetLeadSearchResponse } from '../models';
@@ -42,6 +46,8 @@ import { UpdateAdditionalDiscountRequestBody } from '../models';
42
46
  import { UpdateAdditionalDiscountResponse } from '../models';
43
47
  import { UpdateDealProductRequest } from '../models';
44
48
  import { UpdateDealRequest } from '../models';
49
+ import { UpdateInstallmentRequestBody } from '../models';
50
+ import { UpdateInstallmentResponse } from '../models';
45
51
  import { UpdateOrganizationRequest } from '../models';
46
52
  import { UpdatePersonRequest } from '../models';
47
53
  import { UpsertActivityResponse } from '../models';
@@ -128,6 +134,15 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
128
134
  * @throws {RequiredError}
129
135
  */
130
136
  deleteDealProduct: (id: number, product_attachment_id: number) => Promise<RequestArgs>;
137
+ /**
138
+ * Removes an installment from a deal. Only available in Advanced and above plans.
139
+ * @summary Delete an installment from a deal
140
+ * @param {number} id The ID of the deal
141
+ * @param {number} installment_id The ID of the installment
142
+
143
+ * @throws {RequiredError}
144
+ */
145
+ deleteInstallment: (id: number, installment_id: number) => Promise<RequestArgs>;
131
146
  /**
132
147
  * Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
133
148
  * @summary Delete a organization
@@ -150,6 +165,10 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
150
165
  * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
151
166
  * @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.
152
167
  * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
168
+ * @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
169
+ * @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
170
+ * @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.
171
+ * @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
153
172
  * @param {string} [updated_since] If set, only activities with an &#x60;update_time&#x60; later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
154
173
  * @param {string} [updated_until] If set, only activities with an &#x60;update_time&#x60; earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
155
174
  * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;update_time&#x60;, &#x60;add_time&#x60;.
@@ -160,7 +179,7 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
160
179
 
161
180
  * @throws {RequiredError}
162
181
  */
163
- 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<RequestArgs>;
182
+ 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>;
164
183
  /**
165
184
  * Returns the details of a specific activity.
166
185
  * @summary Get details of an activity
@@ -235,6 +254,18 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
235
254
  * @throws {RequiredError}
236
255
  */
237
256
  getDealsProducts: (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc') => Promise<RequestArgs>;
257
+ /**
258
+ * Lists installments attached to a list of deals. Only available in Advanced and above plans.
259
+ * @summary List installments added to a list of deals
260
+ * @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
261
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
262
+ * @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.
263
+ * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
264
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
265
+
266
+ * @throws {RequiredError}
267
+ */
268
+ getInstallments: (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc') => Promise<RequestArgs>;
238
269
  /**
239
270
  * Returns the details of a specific organization.
240
271
  * @summary Get details of a organization
@@ -301,6 +332,15 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
301
332
  * @throws {RequiredError}
302
333
  */
303
334
  postAdditionalDiscount: (id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody) => Promise<RequestArgs>;
335
+ /**
336
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
337
+ * @summary Add an installment to a deal
338
+ * @param {number} id The ID of the deal
339
+ * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
340
+
341
+ * @throws {RequiredError}
342
+ */
343
+ postInstallment: (id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody) => Promise<RequestArgs>;
304
344
  /**
305
345
  * 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.
306
346
  * @summary Search deals
@@ -424,6 +464,16 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
424
464
  * @throws {RequiredError}
425
465
  */
426
466
  updateDealProduct: (id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest) => Promise<RequestArgs>;
467
+ /**
468
+ * Edits an installment added to a deal. Only available in Advanced and above plans.
469
+ * @summary Update an installment added to a deal
470
+ * @param {number} id The ID of the deal
471
+ * @param {number} installment_id The ID of the installment
472
+ * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
473
+
474
+ * @throws {RequiredError}
475
+ */
476
+ updateInstallment: (id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody) => Promise<RequestArgs>;
427
477
  /**
428
478
  * Updates the properties of a organization.
429
479
  * @summary Update a organization
@@ -523,6 +573,15 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
523
573
  * @throws {RequiredError}
524
574
  */
525
575
  deleteDealProduct(id: number, product_attachment_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteDealProductResponse>>;
576
+ /**
577
+ * Removes an installment from a deal. Only available in Advanced and above plans.
578
+ * @summary Delete an installment from a deal
579
+ * @param {number} id The ID of the deal
580
+ * @param {number} installment_id The ID of the installment
581
+
582
+ * @throws {RequiredError}
583
+ */
584
+ deleteInstallment(id: number, installment_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteInstallmentResponse>>;
526
585
  /**
527
586
  * Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
528
587
  * @summary Delete a organization
@@ -545,6 +604,10 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
545
604
  * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
546
605
  * @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.
547
606
  * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
607
+ * @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
608
+ * @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
609
+ * @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.
610
+ * @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
548
611
  * @param {string} [updated_since] If set, only activities with an &#x60;update_time&#x60; later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
549
612
  * @param {string} [updated_until] If set, only activities with an &#x60;update_time&#x60; earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
550
613
  * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;update_time&#x60;, &#x60;add_time&#x60;.
@@ -555,7 +618,7 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
555
618
 
556
619
  * @throws {RequiredError}
557
620
  */
558
- 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<GetActivitiesResponse>>;
621
+ 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>>;
559
622
  /**
560
623
  * Returns the details of a specific activity.
561
624
  * @summary Get details of an activity
@@ -630,6 +693,18 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
630
693
  * @throws {RequiredError}
631
694
  */
632
695
  getDealsProducts(deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsProductsResponse>>;
696
+ /**
697
+ * Lists installments attached to a list of deals. Only available in Advanced and above plans.
698
+ * @summary List installments added to a list of deals
699
+ * @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
700
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
701
+ * @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.
702
+ * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
703
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
704
+
705
+ * @throws {RequiredError}
706
+ */
707
+ getInstallments(deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetInstallmentsResponse>>;
633
708
  /**
634
709
  * Returns the details of a specific organization.
635
710
  * @summary Get details of a organization
@@ -696,6 +771,15 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
696
771
  * @throws {RequiredError}
697
772
  */
698
773
  postAdditionalDiscount(id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddAdditionalDiscountResponse>>;
774
+ /**
775
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
776
+ * @summary Add an installment to a deal
777
+ * @param {number} id The ID of the deal
778
+ * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
779
+
780
+ * @throws {RequiredError}
781
+ */
782
+ postInstallment(id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddAInstallmentResponse>>;
699
783
  /**
700
784
  * 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.
701
785
  * @summary Search deals
@@ -819,6 +903,16 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
819
903
  * @throws {RequiredError}
820
904
  */
821
905
  updateDealProduct(id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddDealProductResponse>>;
906
+ /**
907
+ * Edits an installment added to a deal. Only available in Advanced and above plans.
908
+ * @summary Update an installment added to a deal
909
+ * @param {number} id The ID of the deal
910
+ * @param {number} installment_id The ID of the installment
911
+ * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
912
+
913
+ * @throws {RequiredError}
914
+ */
915
+ updateInstallment(id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpdateInstallmentResponse>>;
822
916
  /**
823
917
  * Updates the properties of a organization.
824
918
  * @summary Update a organization
@@ -915,6 +1009,14 @@ export declare const BetaApiFactory: (configuration?: Configuration, basePath?:
915
1009
  * @throws {RequiredError}
916
1010
  */
917
1011
  deleteDealProduct(requestParameters: BetaApiDeleteDealProductRequest): Promise<DeleteDealProductResponse>;
1012
+ /**
1013
+ * Removes an installment from a deal. Only available in Advanced and above plans.
1014
+ * @summary Delete an installment from a deal
1015
+ * @param {BetaApiDeleteInstallmentRequest} requestParameters Request parameters.
1016
+
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ deleteInstallment(requestParameters: BetaApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
918
1020
  /**
919
1021
  * Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
920
1022
  * @summary Delete a organization
@@ -987,6 +1089,14 @@ export declare const BetaApiFactory: (configuration?: Configuration, basePath?:
987
1089
  * @throws {RequiredError}
988
1090
  */
989
1091
  getDealsProducts(requestParameters: BetaApiGetDealsProductsRequest): Promise<GetDealsProductsResponse>;
1092
+ /**
1093
+ * Lists installments attached to a list of deals. Only available in Advanced and above plans.
1094
+ * @summary List installments added to a list of deals
1095
+ * @param {BetaApiGetInstallmentsRequest} requestParameters Request parameters.
1096
+
1097
+ * @throws {RequiredError}
1098
+ */
1099
+ getInstallments(requestParameters: BetaApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
990
1100
  /**
991
1101
  * Returns the details of a specific organization.
992
1102
  * @summary Get details of a organization
@@ -1027,6 +1137,14 @@ export declare const BetaApiFactory: (configuration?: Configuration, basePath?:
1027
1137
  * @throws {RequiredError}
1028
1138
  */
1029
1139
  postAdditionalDiscount(requestParameters: BetaApiPostAdditionalDiscountRequest): Promise<AddAdditionalDiscountResponse>;
1140
+ /**
1141
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
1142
+ * @summary Add an installment to a deal
1143
+ * @param {BetaApiPostInstallmentRequest} requestParameters Request parameters.
1144
+
1145
+ * @throws {RequiredError}
1146
+ */
1147
+ postInstallment(requestParameters: BetaApiPostInstallmentRequest): Promise<AddAInstallmentResponse>;
1030
1148
  /**
1031
1149
  * 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.
1032
1150
  * @summary Search deals
@@ -1107,6 +1225,14 @@ export declare const BetaApiFactory: (configuration?: Configuration, basePath?:
1107
1225
  * @throws {RequiredError}
1108
1226
  */
1109
1227
  updateDealProduct(requestParameters: BetaApiUpdateDealProductRequest): Promise<AddDealProductResponse>;
1228
+ /**
1229
+ * Edits an installment added to a deal. Only available in Advanced and above plans.
1230
+ * @summary Update an installment added to a deal
1231
+ * @param {BetaApiUpdateInstallmentRequest} requestParameters Request parameters.
1232
+
1233
+ * @throws {RequiredError}
1234
+ */
1235
+ updateInstallment(requestParameters: BetaApiUpdateInstallmentRequest): Promise<UpdateInstallmentResponse>;
1110
1236
  /**
1111
1237
  * Updates the properties of a organization.
1112
1238
  * @summary Update a organization
@@ -1259,6 +1385,25 @@ export interface BetaApiDeleteDealProductRequest {
1259
1385
  */
1260
1386
  readonly product_attachment_id: number;
1261
1387
  }
1388
+ /**
1389
+ * Request parameters for deleteInstallment operation in BetaApi.
1390
+ * @export
1391
+ * @interface BetaApiDeleteInstallmentRequest
1392
+ */
1393
+ export interface BetaApiDeleteInstallmentRequest {
1394
+ /**
1395
+ * The ID of the deal
1396
+ * @type {number}
1397
+ * @memberof BetaApiDeleteInstallment
1398
+ */
1399
+ readonly id: number;
1400
+ /**
1401
+ * The ID of the installment
1402
+ * @type {number}
1403
+ * @memberof BetaApiDeleteInstallment
1404
+ */
1405
+ readonly installment_id: number;
1406
+ }
1262
1407
  /**
1263
1408
  * Request parameters for deleteOrganization operation in BetaApi.
1264
1409
  * @export
@@ -1309,6 +1454,30 @@ export interface BetaApiGetActivitiesRequest {
1309
1454
  * @memberof BetaApiGetActivities
1310
1455
  */
1311
1456
  readonly owner_id?: number;
1457
+ /**
1458
+ * If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
1459
+ * @type {number}
1460
+ * @memberof BetaApiGetActivities
1461
+ */
1462
+ readonly deal_id?: number;
1463
+ /**
1464
+ * If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
1465
+ * @type {string}
1466
+ * @memberof BetaApiGetActivities
1467
+ */
1468
+ readonly lead_id?: string;
1469
+ /**
1470
+ * If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored.
1471
+ * @type {number}
1472
+ * @memberof BetaApiGetActivities
1473
+ */
1474
+ readonly person_id?: number;
1475
+ /**
1476
+ * If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
1477
+ * @type {number}
1478
+ * @memberof BetaApiGetActivities
1479
+ */
1480
+ readonly org_id?: number;
1312
1481
  /**
1313
1482
  * If set, only activities with an &#x60;update_time&#x60; later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
1314
1483
  * @type {string}
@@ -1586,6 +1755,43 @@ export interface BetaApiGetDealsProductsRequest {
1586
1755
  */
1587
1756
  readonly sort_direction?: 'asc' | 'desc';
1588
1757
  }
1758
+ /**
1759
+ * Request parameters for getInstallments operation in BetaApi.
1760
+ * @export
1761
+ * @interface BetaApiGetInstallmentsRequest
1762
+ */
1763
+ export interface BetaApiGetInstallmentsRequest {
1764
+ /**
1765
+ * An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
1766
+ * @type {Array<number>}
1767
+ * @memberof BetaApiGetInstallments
1768
+ */
1769
+ readonly deal_ids: Array<number>;
1770
+ /**
1771
+ * For pagination, the marker (an opaque string value) representing the first item on the next page
1772
+ * @type {string}
1773
+ * @memberof BetaApiGetInstallments
1774
+ */
1775
+ readonly cursor?: string;
1776
+ /**
1777
+ * 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.
1778
+ * @type {number}
1779
+ * @memberof BetaApiGetInstallments
1780
+ */
1781
+ readonly limit?: number;
1782
+ /**
1783
+ * The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
1784
+ * @type {'id' | 'billing_date' | 'deal_id'}
1785
+ * @memberof BetaApiGetInstallments
1786
+ */
1787
+ readonly sort_by?: 'id' | 'billing_date' | 'deal_id';
1788
+ /**
1789
+ * The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
1790
+ * @type {'asc' | 'desc'}
1791
+ * @memberof BetaApiGetInstallments
1792
+ */
1793
+ readonly sort_direction?: 'asc' | 'desc';
1794
+ }
1589
1795
  /**
1590
1796
  * Request parameters for getOrganization operation in BetaApi.
1591
1797
  * @export
@@ -1807,6 +2013,25 @@ export interface BetaApiPostAdditionalDiscountRequest {
1807
2013
  */
1808
2014
  readonly AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody;
1809
2015
  }
2016
+ /**
2017
+ * Request parameters for postInstallment operation in BetaApi.
2018
+ * @export
2019
+ * @interface BetaApiPostInstallmentRequest
2020
+ */
2021
+ export interface BetaApiPostInstallmentRequest {
2022
+ /**
2023
+ * The ID of the deal
2024
+ * @type {number}
2025
+ * @memberof BetaApiPostInstallment
2026
+ */
2027
+ readonly id: number;
2028
+ /**
2029
+ *
2030
+ * @type {AddInstallmentRequestBody}
2031
+ * @memberof BetaApiPostInstallment
2032
+ */
2033
+ readonly AddInstallmentRequestBody?: AddInstallmentRequestBody;
2034
+ }
1810
2035
  /**
1811
2036
  * Request parameters for searchDeals operation in BetaApi.
1812
2037
  * @export
@@ -2195,6 +2420,31 @@ export interface BetaApiUpdateDealProductRequest {
2195
2420
  */
2196
2421
  readonly UpdateDealProductRequest?: UpdateDealProductRequest;
2197
2422
  }
2423
+ /**
2424
+ * Request parameters for updateInstallment operation in BetaApi.
2425
+ * @export
2426
+ * @interface BetaApiUpdateInstallmentRequest
2427
+ */
2428
+ export interface BetaApiUpdateInstallmentRequest {
2429
+ /**
2430
+ * The ID of the deal
2431
+ * @type {number}
2432
+ * @memberof BetaApiUpdateInstallment
2433
+ */
2434
+ readonly id: number;
2435
+ /**
2436
+ * The ID of the installment
2437
+ * @type {number}
2438
+ * @memberof BetaApiUpdateInstallment
2439
+ */
2440
+ readonly installment_id: number;
2441
+ /**
2442
+ *
2443
+ * @type {UpdateInstallmentRequestBody}
2444
+ * @memberof BetaApiUpdateInstallment
2445
+ */
2446
+ readonly UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody;
2447
+ }
2198
2448
  /**
2199
2449
  * Request parameters for updateOrganization operation in BetaApi.
2200
2450
  * @export
@@ -2321,6 +2571,15 @@ export declare class BetaApi extends BaseAPI {
2321
2571
  * @memberof BetaApi
2322
2572
  */
2323
2573
  deleteDealProduct(requestParameters: BetaApiDeleteDealProductRequest): Promise<DeleteDealProductResponse>;
2574
+ /**
2575
+ * Removes an installment from a deal. Only available in Advanced and above plans.
2576
+ * @summary Delete an installment from a deal
2577
+ * @param {BetaApiDeleteInstallmentRequest} requestParameters Request parameters.
2578
+
2579
+ * @throws {RequiredError}
2580
+ * @memberof BetaApi
2581
+ */
2582
+ deleteInstallment(requestParameters: BetaApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
2324
2583
  /**
2325
2584
  * Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
2326
2585
  * @summary Delete a organization
@@ -2402,6 +2661,15 @@ export declare class BetaApi extends BaseAPI {
2402
2661
  * @memberof BetaApi
2403
2662
  */
2404
2663
  getDealsProducts(requestParameters: BetaApiGetDealsProductsRequest): Promise<GetDealsProductsResponse>;
2664
+ /**
2665
+ * Lists installments attached to a list of deals. Only available in Advanced and above plans.
2666
+ * @summary List installments added to a list of deals
2667
+ * @param {BetaApiGetInstallmentsRequest} requestParameters Request parameters.
2668
+
2669
+ * @throws {RequiredError}
2670
+ * @memberof BetaApi
2671
+ */
2672
+ getInstallments(requestParameters: BetaApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
2405
2673
  /**
2406
2674
  * Returns the details of a specific organization.
2407
2675
  * @summary Get details of a organization
@@ -2447,6 +2715,15 @@ export declare class BetaApi extends BaseAPI {
2447
2715
  * @memberof BetaApi
2448
2716
  */
2449
2717
  postAdditionalDiscount(requestParameters: BetaApiPostAdditionalDiscountRequest): Promise<AddAdditionalDiscountResponse>;
2718
+ /**
2719
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
2720
+ * @summary Add an installment to a deal
2721
+ * @param {BetaApiPostInstallmentRequest} requestParameters Request parameters.
2722
+
2723
+ * @throws {RequiredError}
2724
+ * @memberof BetaApi
2725
+ */
2726
+ postInstallment(requestParameters: BetaApiPostInstallmentRequest): Promise<AddAInstallmentResponse>;
2450
2727
  /**
2451
2728
  * 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.
2452
2729
  * @summary Search deals
@@ -2537,6 +2814,15 @@ export declare class BetaApi extends BaseAPI {
2537
2814
  * @memberof BetaApi
2538
2815
  */
2539
2816
  updateDealProduct(requestParameters: BetaApiUpdateDealProductRequest): Promise<AddDealProductResponse>;
2817
+ /**
2818
+ * Edits an installment added to a deal. Only available in Advanced and above plans.
2819
+ * @summary Update an installment added to a deal
2820
+ * @param {BetaApiUpdateInstallmentRequest} requestParameters Request parameters.
2821
+
2822
+ * @throws {RequiredError}
2823
+ * @memberof BetaApi
2824
+ */
2825
+ updateInstallment(requestParameters: BetaApiUpdateInstallmentRequest): Promise<UpdateInstallmentResponse>;
2540
2826
  /**
2541
2827
  * Updates the properties of a organization.
2542
2828
  * @summary Update a organization