pipedrive 25.0.0 → 27.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.
Files changed (213) hide show
  1. package/dist/esm/versions/v1/api/activities-api.d.ts +40 -40
  2. package/dist/esm/versions/v1/api/activities-api.js +47 -47
  3. package/dist/esm/versions/v1/api/activity-fields-api.js +1 -1
  4. package/dist/esm/versions/v1/api/activity-types-api.js +5 -5
  5. package/dist/esm/versions/v1/api/billing-api.js +1 -1
  6. package/dist/esm/versions/v1/api/call-logs-api.js +5 -5
  7. package/dist/esm/versions/v1/api/channels-api.js +4 -4
  8. package/dist/esm/versions/v1/api/currencies-api.js +1 -1
  9. package/dist/esm/versions/v1/api/deal-fields-api.js +6 -6
  10. package/dist/esm/versions/v1/api/deals-api.d.ts +410 -88
  11. package/dist/esm/versions/v1/api/deals-api.js +447 -118
  12. package/dist/esm/versions/v1/api/files-api.js +8 -8
  13. package/dist/esm/versions/v1/api/filters-api.js +7 -7
  14. package/dist/esm/versions/v1/api/goals-api.js +5 -5
  15. package/dist/esm/versions/v1/api/item-search-api.d.ts +8 -8
  16. package/dist/esm/versions/v1/api/item-search-api.js +10 -10
  17. package/dist/esm/versions/v1/api/lead-labels-api.js +4 -4
  18. package/dist/esm/versions/v1/api/lead-sources-api.js +1 -1
  19. package/dist/esm/versions/v1/api/leads-api.d.ts +100 -14
  20. package/dist/esm/versions/v1/api/leads-api.js +114 -21
  21. package/dist/esm/versions/v1/api/legacy-teams-api.js +8 -8
  22. package/dist/esm/versions/v1/api/mailbox-api.js +6 -6
  23. package/dist/esm/versions/v1/api/meetings-api.js +2 -2
  24. package/dist/esm/versions/v1/api/note-fields-api.js +1 -1
  25. package/dist/esm/versions/v1/api/notes-api.d.ts +18 -2
  26. package/dist/esm/versions/v1/api/notes-api.js +25 -15
  27. package/dist/esm/versions/v1/api/organization-fields-api.js +6 -6
  28. package/dist/esm/versions/v1/api/organization-relationships-api.js +5 -5
  29. package/dist/esm/versions/v1/api/organizations-api.d.ts +68 -68
  30. package/dist/esm/versions/v1/api/organizations-api.js +88 -88
  31. package/dist/esm/versions/v1/api/permission-sets-api.js +3 -3
  32. package/dist/esm/versions/v1/api/person-fields-api.js +6 -6
  33. package/dist/esm/versions/v1/api/persons-api.d.ts +56 -56
  34. package/dist/esm/versions/v1/api/persons-api.js +78 -78
  35. package/dist/esm/versions/v1/api/pipelines-api.d.ts +28 -28
  36. package/dist/esm/versions/v1/api/pipelines-api.js +36 -36
  37. package/dist/esm/versions/v1/api/product-fields-api.js +6 -6
  38. package/dist/esm/versions/v1/api/products-api.d.ts +24 -24
  39. package/dist/esm/versions/v1/api/products-api.js +36 -36
  40. package/dist/esm/versions/v1/api/project-templates-api.js +4 -4
  41. package/dist/esm/versions/v1/api/projects-api.js +14 -14
  42. package/dist/esm/versions/v1/api/recents-api.js +1 -1
  43. package/dist/esm/versions/v1/api/roles-api.js +12 -12
  44. package/dist/esm/versions/v1/api/stages-api.d.ts +36 -36
  45. package/dist/esm/versions/v1/api/stages-api.js +43 -43
  46. package/dist/esm/versions/v1/api/subscriptions-api.js +9 -9
  47. package/dist/esm/versions/v1/api/tasks-api.js +5 -5
  48. package/dist/esm/versions/v1/api/user-connections-api.js +1 -1
  49. package/dist/esm/versions/v1/api/user-settings-api.js +1 -1
  50. package/dist/esm/versions/v1/api/users-api.js +10 -10
  51. package/dist/esm/versions/v1/api/webhooks-api.js +3 -3
  52. package/dist/esm/versions/v1/base.d.ts +2 -3
  53. package/dist/esm/versions/v1/configuration.d.ts +2 -2
  54. package/dist/esm/versions/v1/models/add-note-request-all-of.d.ts +9 -4
  55. package/dist/esm/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
  56. package/dist/esm/versions/v1/models/add-note-request-all-of1.js +4 -0
  57. package/dist/esm/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
  58. package/dist/esm/versions/v1/models/index.d.ts +1 -0
  59. package/dist/esm/versions/v1/models/index.js +1 -0
  60. package/dist/esm/versions/v1/models/note-project.d.ts +23 -0
  61. package/dist/esm/versions/v1/models/note-project.js +14 -0
  62. package/dist/esm/versions/v1/models/note-request-all-of1.d.ts +5 -0
  63. package/dist/esm/versions/v1/models/note.d.ts +16 -0
  64. package/dist/esm/versions/v2/api/activities-api.d.ts +15 -7
  65. package/dist/esm/versions/v2/api/activities-api.js +17 -12
  66. package/dist/esm/versions/v2/api/beta-api.d.ts +212 -0
  67. package/dist/esm/versions/v2/api/beta-api.js +290 -4
  68. package/dist/esm/versions/v2/api/deals-api.d.ts +272 -4
  69. package/dist/esm/versions/v2/api/deals-api.js +311 -27
  70. package/dist/esm/versions/v2/api/item-search-api.js +2 -2
  71. package/dist/esm/versions/v2/api/leads-api.d.ts +111 -0
  72. package/dist/esm/versions/v2/api/leads-api.js +147 -2
  73. package/dist/esm/versions/v2/api/organizations-api.js +10 -10
  74. package/dist/esm/versions/v2/api/persons-api.d.ts +8 -8
  75. package/dist/esm/versions/v2/api/persons-api.js +18 -18
  76. package/dist/esm/versions/v2/api/pipelines-api.js +5 -5
  77. package/dist/esm/versions/v2/api/products-api.js +15 -15
  78. package/dist/esm/versions/v2/api/stages-api.js +5 -5
  79. package/dist/esm/versions/v2/api/users-api.js +1 -1
  80. package/dist/esm/versions/v2/base.d.ts +2 -3
  81. package/dist/esm/versions/v2/configuration.d.ts +2 -2
  82. package/dist/esm/versions/v2/models/activity-item.d.ts +5 -0
  83. package/dist/esm/versions/v2/models/activity-item1.d.ts +5 -0
  84. package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
  85. package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.js +14 -0
  86. package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
  87. package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.js +14 -0
  88. package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
  89. package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.js +14 -0
  90. package/dist/esm/versions/v2/models/add-person-request.d.ts +12 -0
  91. package/dist/esm/versions/v2/models/add-person-request.js +6 -1
  92. package/dist/esm/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
  93. package/dist/esm/versions/v2/models/convert-lead-to-deal-request.js +14 -0
  94. package/dist/esm/versions/v2/models/deal-item.d.ts +5 -0
  95. package/dist/esm/versions/v2/models/deal-item1.d.ts +5 -0
  96. package/dist/esm/versions/v2/models/get-convert-response.d.ts +43 -0
  97. package/dist/esm/versions/v2/models/get-convert-response.js +14 -0
  98. package/dist/esm/versions/v2/models/get-convert-response1-data.d.ts +46 -0
  99. package/dist/esm/versions/v2/models/get-convert-response1-data.js +20 -0
  100. package/dist/esm/versions/v2/models/get-convert-response1.d.ts +34 -0
  101. package/dist/esm/versions/v2/models/get-convert-response1.js +14 -0
  102. package/dist/esm/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
  103. package/dist/esm/versions/v2/models/index.d.ts +7 -0
  104. package/dist/esm/versions/v2/models/index.js +7 -0
  105. package/dist/esm/versions/v2/models/update-person-request.d.ts +12 -0
  106. package/dist/esm/versions/v2/models/update-person-request.js +6 -1
  107. package/dist/versions/v1/api/activities-api.d.ts +40 -40
  108. package/dist/versions/v1/api/activities-api.js +47 -47
  109. package/dist/versions/v1/api/activity-fields-api.js +1 -1
  110. package/dist/versions/v1/api/activity-types-api.js +5 -5
  111. package/dist/versions/v1/api/billing-api.js +1 -1
  112. package/dist/versions/v1/api/call-logs-api.js +5 -5
  113. package/dist/versions/v1/api/channels-api.js +4 -4
  114. package/dist/versions/v1/api/currencies-api.js +1 -1
  115. package/dist/versions/v1/api/deal-fields-api.js +6 -6
  116. package/dist/versions/v1/api/deals-api.d.ts +410 -88
  117. package/dist/versions/v1/api/deals-api.js +447 -118
  118. package/dist/versions/v1/api/files-api.js +8 -8
  119. package/dist/versions/v1/api/filters-api.js +7 -7
  120. package/dist/versions/v1/api/goals-api.js +5 -5
  121. package/dist/versions/v1/api/item-search-api.d.ts +8 -8
  122. package/dist/versions/v1/api/item-search-api.js +10 -10
  123. package/dist/versions/v1/api/lead-labels-api.js +4 -4
  124. package/dist/versions/v1/api/lead-sources-api.js +1 -1
  125. package/dist/versions/v1/api/leads-api.d.ts +100 -14
  126. package/dist/versions/v1/api/leads-api.js +114 -21
  127. package/dist/versions/v1/api/legacy-teams-api.js +8 -8
  128. package/dist/versions/v1/api/mailbox-api.js +6 -6
  129. package/dist/versions/v1/api/meetings-api.js +2 -2
  130. package/dist/versions/v1/api/note-fields-api.js +1 -1
  131. package/dist/versions/v1/api/notes-api.d.ts +18 -2
  132. package/dist/versions/v1/api/notes-api.js +25 -15
  133. package/dist/versions/v1/api/organization-fields-api.js +6 -6
  134. package/dist/versions/v1/api/organization-relationships-api.js +5 -5
  135. package/dist/versions/v1/api/organizations-api.d.ts +68 -68
  136. package/dist/versions/v1/api/organizations-api.js +88 -88
  137. package/dist/versions/v1/api/permission-sets-api.js +3 -3
  138. package/dist/versions/v1/api/person-fields-api.js +6 -6
  139. package/dist/versions/v1/api/persons-api.d.ts +56 -56
  140. package/dist/versions/v1/api/persons-api.js +78 -78
  141. package/dist/versions/v1/api/pipelines-api.d.ts +28 -28
  142. package/dist/versions/v1/api/pipelines-api.js +36 -36
  143. package/dist/versions/v1/api/product-fields-api.js +6 -6
  144. package/dist/versions/v1/api/products-api.d.ts +24 -24
  145. package/dist/versions/v1/api/products-api.js +36 -36
  146. package/dist/versions/v1/api/project-templates-api.js +4 -4
  147. package/dist/versions/v1/api/projects-api.js +14 -14
  148. package/dist/versions/v1/api/recents-api.js +1 -1
  149. package/dist/versions/v1/api/roles-api.js +12 -12
  150. package/dist/versions/v1/api/stages-api.d.ts +36 -36
  151. package/dist/versions/v1/api/stages-api.js +43 -43
  152. package/dist/versions/v1/api/subscriptions-api.js +9 -9
  153. package/dist/versions/v1/api/tasks-api.js +5 -5
  154. package/dist/versions/v1/api/user-connections-api.js +1 -1
  155. package/dist/versions/v1/api/user-settings-api.js +1 -1
  156. package/dist/versions/v1/api/users-api.js +10 -10
  157. package/dist/versions/v1/api/webhooks-api.js +3 -3
  158. package/dist/versions/v1/base.d.ts +2 -3
  159. package/dist/versions/v1/configuration.d.ts +2 -2
  160. package/dist/versions/v1/models/add-note-request-all-of.d.ts +9 -4
  161. package/dist/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
  162. package/dist/versions/v1/models/add-note-request-all-of1.js +5 -1
  163. package/dist/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
  164. package/dist/versions/v1/models/index.d.ts +1 -0
  165. package/dist/versions/v1/models/index.js +1 -0
  166. package/dist/versions/v1/models/note-project.d.ts +23 -0
  167. package/dist/versions/v1/models/note-project.js +15 -0
  168. package/dist/versions/v1/models/note-request-all-of1.d.ts +5 -0
  169. package/dist/versions/v1/models/note.d.ts +16 -0
  170. package/dist/versions/v2/api/activities-api.d.ts +15 -7
  171. package/dist/versions/v2/api/activities-api.js +17 -12
  172. package/dist/versions/v2/api/beta-api.d.ts +212 -0
  173. package/dist/versions/v2/api/beta-api.js +290 -4
  174. package/dist/versions/v2/api/deals-api.d.ts +272 -4
  175. package/dist/versions/v2/api/deals-api.js +311 -27
  176. package/dist/versions/v2/api/item-search-api.js +2 -2
  177. package/dist/versions/v2/api/leads-api.d.ts +111 -0
  178. package/dist/versions/v2/api/leads-api.js +146 -1
  179. package/dist/versions/v2/api/organizations-api.js +10 -10
  180. package/dist/versions/v2/api/persons-api.d.ts +8 -8
  181. package/dist/versions/v2/api/persons-api.js +18 -18
  182. package/dist/versions/v2/api/pipelines-api.js +5 -5
  183. package/dist/versions/v2/api/products-api.js +15 -15
  184. package/dist/versions/v2/api/stages-api.js +5 -5
  185. package/dist/versions/v2/api/users-api.js +1 -1
  186. package/dist/versions/v2/base.d.ts +2 -3
  187. package/dist/versions/v2/configuration.d.ts +2 -2
  188. package/dist/versions/v2/models/activity-item.d.ts +5 -0
  189. package/dist/versions/v2/models/activity-item1.d.ts +5 -0
  190. package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
  191. package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.js +15 -0
  192. package/dist/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
  193. package/dist/versions/v2/models/add-convert-deal-to-lead-response.js +15 -0
  194. package/dist/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
  195. package/dist/versions/v2/models/add-convert-lead-to-deal-response.js +15 -0
  196. package/dist/versions/v2/models/add-person-request.d.ts +12 -0
  197. package/dist/versions/v2/models/add-person-request.js +7 -0
  198. package/dist/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
  199. package/dist/versions/v2/models/convert-lead-to-deal-request.js +15 -0
  200. package/dist/versions/v2/models/deal-item.d.ts +5 -0
  201. package/dist/versions/v2/models/deal-item1.d.ts +5 -0
  202. package/dist/versions/v2/models/get-convert-response.d.ts +43 -0
  203. package/dist/versions/v2/models/get-convert-response.js +15 -0
  204. package/dist/versions/v2/models/get-convert-response1-data.d.ts +46 -0
  205. package/dist/versions/v2/models/get-convert-response1-data.js +23 -0
  206. package/dist/versions/v2/models/get-convert-response1.d.ts +34 -0
  207. package/dist/versions/v2/models/get-convert-response1.js +15 -0
  208. package/dist/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
  209. package/dist/versions/v2/models/index.d.ts +7 -0
  210. package/dist/versions/v2/models/index.js +7 -0
  211. package/dist/versions/v2/models/update-person-request.d.ts +12 -0
  212. package/dist/versions/v2/models/update-person-request.js +7 -0
  213. package/package.json +1 -1
@@ -66,7 +66,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
66
66
  const localVarQueryParameter = {};
67
67
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
68
68
  // authentication api_key required
69
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
69
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
70
70
  // authentication oauth2 required
71
71
  // oauth required
72
72
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -135,7 +135,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
135
135
  const localVarQueryParameter = {};
136
136
  const localVarFormParams = new URLSearchParams();
137
137
  // authentication api_key required
138
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
138
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
139
139
  // authentication oauth2 required
140
140
  // oauth required
141
141
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -186,7 +186,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
186
186
  const localVarHeaderParameter = {};
187
187
  const localVarQueryParameter = {};
188
188
  // authentication api_key required
189
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
189
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
190
190
  // authentication oauth2 required
191
191
  // oauth required
192
192
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -220,7 +220,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
220
220
  const localVarHeaderParameter = {};
221
221
  const localVarQueryParameter = {};
222
222
  // authentication api_key required
223
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
223
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
224
224
  // authentication oauth2 required
225
225
  // oauth required
226
226
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -254,7 +254,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
254
254
  const localVarHeaderParameter = {};
255
255
  const localVarQueryParameter = {};
256
256
  // authentication api_key required
257
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
257
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
258
258
  // authentication oauth2 required
259
259
  // oauth required
260
260
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -287,7 +287,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
287
287
  const localVarHeaderParameter = {};
288
288
  const localVarQueryParameter = {};
289
289
  // authentication api_key required
290
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
290
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
291
291
  // authentication oauth2 required
292
292
  // oauth required
293
293
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -339,7 +339,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
339
339
  const localVarQueryParameter = {};
340
340
  const localVarFormParams = new URLSearchParams();
341
341
  // authentication api_key required
342
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
342
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
343
343
  // authentication oauth2 required
344
344
  // oauth required
345
345
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -390,7 +390,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
390
390
  const localVarQueryParameter = {};
391
391
  const localVarFormParams = new URLSearchParams();
392
392
  // authentication api_key required
393
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
393
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
394
394
  // authentication oauth2 required
395
395
  // oauth required
396
396
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -57,7 +57,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
57
57
  const localVarHeaderParameter = {};
58
58
  const localVarQueryParameter = {};
59
59
  // authentication api_key required
60
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
60
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
61
61
  // authentication oauth2 required
62
62
  // oauth required
63
63
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -93,7 +93,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
93
93
  const localVarHeaderParameter = {};
94
94
  const localVarQueryParameter = {};
95
95
  // authentication api_key required
96
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
96
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
97
97
  // authentication oauth2 required
98
98
  // oauth required
99
99
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -126,7 +126,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
126
126
  const localVarHeaderParameter = {};
127
127
  const localVarQueryParameter = {};
128
128
  // authentication api_key required
129
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
129
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
130
130
  // authentication oauth2 required
131
131
  // oauth required
132
132
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -163,7 +163,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
163
163
  const localVarHeaderParameter = {};
164
164
  const localVarQueryParameter = {};
165
165
  // authentication api_key required
166
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
166
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
167
167
  // authentication oauth2 required
168
168
  // oauth required
169
169
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -193,7 +193,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
193
193
  const localVarHeaderParameter = {};
194
194
  const localVarQueryParameter = {};
195
195
  // authentication api_key required
196
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
196
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
197
197
  // authentication oauth2 required
198
198
  // oauth required
199
199
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -224,7 +224,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
224
224
  const localVarHeaderParameter = {};
225
225
  const localVarQueryParameter = {};
226
226
  // authentication api_key required
227
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
227
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
228
228
  // authentication oauth2 required
229
229
  // oauth required
230
230
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -262,7 +262,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
262
262
  const localVarHeaderParameter = {};
263
263
  const localVarQueryParameter = {};
264
264
  // authentication api_key required
265
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
265
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
266
266
  // authentication oauth2 required
267
267
  // oauth required
268
268
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -57,7 +57,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
57
57
  const localVarHeaderParameter = {};
58
58
  const localVarQueryParameter = {};
59
59
  // authentication api_key required
60
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
60
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
61
61
  // authentication oauth2 required
62
62
  // oauth required
63
63
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["goals:full"], configuration);
@@ -93,7 +93,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
93
93
  const localVarHeaderParameter = {};
94
94
  const localVarQueryParameter = {};
95
95
  // authentication api_key required
96
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
96
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
97
97
  // authentication oauth2 required
98
98
  // oauth required
99
99
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["goals:full"], configuration);
@@ -133,7 +133,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
133
133
  const localVarHeaderParameter = {};
134
134
  const localVarQueryParameter = {};
135
135
  // authentication api_key required
136
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
136
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
137
137
  // authentication oauth2 required
138
138
  // oauth required
139
139
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["goals:read", "goals:full"], configuration);
@@ -186,7 +186,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
186
186
  const localVarHeaderParameter = {};
187
187
  const localVarQueryParameter = {};
188
188
  // authentication api_key required
189
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
189
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
190
190
  // authentication oauth2 required
191
191
  // oauth required
192
192
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["goals:read", "goals:full"], configuration);
@@ -264,7 +264,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
264
264
  const localVarHeaderParameter = {};
265
265
  const localVarQueryParameter = {};
266
266
  // authentication api_key required
267
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
267
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
268
268
  // authentication oauth2 required
269
269
  // oauth required
270
270
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["goals:full"], configuration);
@@ -30,7 +30,7 @@ export declare const ItemSearchApiAxiosParamCreator: (configuration?: Configurat
30
30
  * @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.
31
31
  * @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.
32
32
  * @param {number} [limit] Items shown per page
33
-
33
+ * @deprecated
34
34
  * @throws {RequiredError}
35
35
  */
36
36
  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<RequestArgs>;
@@ -44,7 +44,7 @@ export declare const ItemSearchApiAxiosParamCreator: (configuration?: Configurat
44
44
  * @param {boolean} [return_item_ids] Whether to return the IDs of the matching items or not. When not set or set to &#x60;0&#x60; or &#x60;false&#x60;, only distinct values of the searched field are returned. When set to &#x60;1&#x60; or &#x60;true&#x60;, the ID of each found item is returned.
45
45
  * @param {number} [start] Pagination start
46
46
  * @param {number} [limit] Items shown per page
47
-
47
+ * @deprecated
48
48
  * @throws {RequiredError}
49
49
  */
50
50
  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<RequestArgs>;
@@ -65,7 +65,7 @@ export declare const ItemSearchApiFp: (configuration?: Configuration) => {
65
65
  * @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.
66
66
  * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using &#x60;search_for_related_items&#x60; parameter.
67
67
  * @param {number} [limit] Items shown per page
68
-
68
+ * @deprecated
69
69
  * @throws {RequiredError}
70
70
  */
71
71
  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<GetItemSearchResponse>>;
@@ -79,7 +79,7 @@ export declare const ItemSearchApiFp: (configuration?: Configuration) => {
79
79
  * @param {boolean} [return_item_ids] Whether to return the IDs of the matching items or not. When not set or set to &#x60;0&#x60; or &#x60;false&#x60;, only distinct values of the searched field are returned. When set to &#x60;1&#x60; or &#x60;true&#x60;, the ID of each found item is returned.
80
80
  * @param {number} [start] Pagination start
81
81
  * @param {number} [limit] Items shown per page
82
-
82
+ * @deprecated
83
83
  * @throws {RequiredError}
84
84
  */
85
85
  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<GetItemSearchFieldResponse>>;
@@ -93,7 +93,7 @@ export declare const ItemSearchApiFactory: (configuration?: Configuration, baseP
93
93
  * Performs a search from your choice of item types and fields.
94
94
  * @summary Perform a search from multiple item types
95
95
  * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters.
96
-
96
+ * @deprecated
97
97
  * @throws {RequiredError}
98
98
  */
99
99
  searchItem(requestParameters: ItemSearchApiSearchItemRequest): Promise<GetItemSearchResponse>;
@@ -101,7 +101,7 @@ export declare const ItemSearchApiFactory: (configuration?: Configuration, baseP
101
101
  * 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).
102
102
  * @summary Perform a search using a specific field from an item type
103
103
  * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
104
-
104
+ * @deprecated
105
105
  * @throws {RequiredError}
106
106
  */
107
107
  searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest): Promise<GetItemSearchFieldResponse>;
@@ -221,7 +221,7 @@ export declare class ItemSearchApi extends BaseAPI {
221
221
  * Performs a search from your choice of item types and fields.
222
222
  * @summary Perform a search from multiple item types
223
223
  * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters.
224
-
224
+ * @deprecated
225
225
  * @throws {RequiredError}
226
226
  * @memberof ItemSearchApi
227
227
  */
@@ -230,7 +230,7 @@ export declare class ItemSearchApi extends BaseAPI {
230
230
  * 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).
231
231
  * @summary Perform a search using a specific field from an item type
232
232
  * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
233
-
233
+ * @deprecated
234
234
  * @throws {RequiredError}
235
235
  * @memberof ItemSearchApi
236
236
  */
@@ -49,7 +49,7 @@ const ItemSearchApiAxiosParamCreator = function (configuration) {
49
49
  * @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.
50
50
  * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using &#x60;search_for_related_items&#x60; parameter.
51
51
  * @param {number} [limit] Items shown per page
52
-
52
+ * @deprecated
53
53
  * @throws {RequiredError}
54
54
  */
55
55
  searchItem: (term, item_types, fields, search_for_related_items, exact_match, include_fields, start, limit) => __awaiter(this, void 0, void 0, function* () {
@@ -66,7 +66,7 @@ const ItemSearchApiAxiosParamCreator = function (configuration) {
66
66
  const localVarHeaderParameter = {};
67
67
  const localVarQueryParameter = {};
68
68
  // authentication api_key required
69
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
69
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
70
70
  // authentication oauth2 required
71
71
  // oauth required
72
72
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["search:read"], configuration);
@@ -112,7 +112,7 @@ const ItemSearchApiAxiosParamCreator = function (configuration) {
112
112
  * @param {boolean} [return_item_ids] Whether to return the IDs of the matching items or not. When not set or set to &#x60;0&#x60; or &#x60;false&#x60;, only distinct values of the searched field are returned. When set to &#x60;1&#x60; or &#x60;true&#x60;, the ID of each found item is returned.
113
113
  * @param {number} [start] Pagination start
114
114
  * @param {number} [limit] Items shown per page
115
-
115
+ * @deprecated
116
116
  * @throws {RequiredError}
117
117
  */
118
118
  searchItemByField: (term, field_type, field_key, exact_match, return_item_ids, start, limit) => __awaiter(this, void 0, void 0, function* () {
@@ -133,7 +133,7 @@ const ItemSearchApiAxiosParamCreator = function (configuration) {
133
133
  const localVarHeaderParameter = {};
134
134
  const localVarQueryParameter = {};
135
135
  // authentication api_key required
136
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
136
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
137
137
  // authentication oauth2 required
138
138
  // oauth required
139
139
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["search:read"], configuration);
@@ -187,7 +187,7 @@ const ItemSearchApiFp = function (configuration) {
187
187
  * @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.
188
188
  * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using &#x60;search_for_related_items&#x60; parameter.
189
189
  * @param {number} [limit] Items shown per page
190
-
190
+ * @deprecated
191
191
  * @throws {RequiredError}
192
192
  */
193
193
  searchItem(term, item_types, fields, search_for_related_items, exact_match, include_fields, start, limit) {
@@ -206,7 +206,7 @@ const ItemSearchApiFp = function (configuration) {
206
206
  * @param {boolean} [return_item_ids] Whether to return the IDs of the matching items or not. When not set or set to &#x60;0&#x60; or &#x60;false&#x60;, only distinct values of the searched field are returned. When set to &#x60;1&#x60; or &#x60;true&#x60;, the ID of each found item is returned.
207
207
  * @param {number} [start] Pagination start
208
208
  * @param {number} [limit] Items shown per page
209
-
209
+ * @deprecated
210
210
  * @throws {RequiredError}
211
211
  */
212
212
  searchItemByField(term, field_type, field_key, exact_match, return_item_ids, start, limit) {
@@ -229,7 +229,7 @@ const ItemSearchApiFactory = function (configuration, basePath, axios) {
229
229
  * Performs a search from your choice of item types and fields.
230
230
  * @summary Perform a search from multiple item types
231
231
  * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters.
232
-
232
+ * @deprecated
233
233
  * @throws {RequiredError}
234
234
  */
235
235
  searchItem(requestParameters) {
@@ -239,7 +239,7 @@ const ItemSearchApiFactory = function (configuration, basePath, axios) {
239
239
  * 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).
240
240
  * @summary Perform a search using a specific field from an item type
241
241
  * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
242
-
242
+ * @deprecated
243
243
  * @throws {RequiredError}
244
244
  */
245
245
  searchItemByField(requestParameters) {
@@ -259,7 +259,7 @@ class ItemSearchApi extends base_1.BaseAPI {
259
259
  * Performs a search from your choice of item types and fields.
260
260
  * @summary Perform a search from multiple item types
261
261
  * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters.
262
-
262
+ * @deprecated
263
263
  * @throws {RequiredError}
264
264
  * @memberof ItemSearchApi
265
265
  */
@@ -270,7 +270,7 @@ class ItemSearchApi extends base_1.BaseAPI {
270
270
  * 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).
271
271
  * @summary Perform a search using a specific field from an item type
272
272
  * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
273
-
273
+ * @deprecated
274
274
  * @throws {RequiredError}
275
275
  * @memberof ItemSearchApi
276
276
  */
@@ -57,7 +57,7 @@ const LeadLabelsApiAxiosParamCreator = function (configuration) {
57
57
  const localVarHeaderParameter = {};
58
58
  const localVarQueryParameter = {};
59
59
  // authentication api_key required
60
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
60
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
61
61
  // authentication oauth2 required
62
62
  // oauth required
63
63
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["leads:full"], configuration);
@@ -93,7 +93,7 @@ const LeadLabelsApiAxiosParamCreator = function (configuration) {
93
93
  const localVarHeaderParameter = {};
94
94
  const localVarQueryParameter = {};
95
95
  // authentication api_key required
96
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
96
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
97
97
  // authentication oauth2 required
98
98
  // oauth required
99
99
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["leads:full"], configuration);
@@ -123,7 +123,7 @@ const LeadLabelsApiAxiosParamCreator = function (configuration) {
123
123
  const localVarHeaderParameter = {};
124
124
  const localVarQueryParameter = {};
125
125
  // authentication api_key required
126
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
126
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
127
127
  // authentication oauth2 required
128
128
  // oauth required
129
129
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full"], configuration);
@@ -158,7 +158,7 @@ const LeadLabelsApiAxiosParamCreator = function (configuration) {
158
158
  const localVarHeaderParameter = {};
159
159
  const localVarQueryParameter = {};
160
160
  // authentication api_key required
161
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
161
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
162
162
  // authentication oauth2 required
163
163
  // oauth required
164
164
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["leads:full"], configuration);
@@ -56,7 +56,7 @@ const LeadSourcesApiAxiosParamCreator = function (configuration) {
56
56
  const localVarHeaderParameter = {};
57
57
  const localVarQueryParameter = {};
58
58
  // authentication api_key required
59
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
59
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
60
60
  // authentication oauth2 required
61
61
  // oauth required
62
62
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full"], configuration);
@@ -40,6 +40,20 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
40
40
  * @throws {RequiredError}
41
41
  */
42
42
  deleteLead: (id: string) => Promise<RequestArgs>;
43
+ /**
44
+ * Returns multiple archived 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.
45
+ * @summary Get all archived leads
46
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
47
+ * @param {number} [start] For pagination, the position that represents the first result for the page
48
+ * @param {number} [owner_id] If supplied, only leads matching the given user will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied.
49
+ * @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied.
50
+ * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
51
+ * @param {number} [filter_id] The ID of the filter to use
52
+ * @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 (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
53
+
54
+ * @throws {RequiredError}
55
+ */
56
+ getArchivedLeads: (limit?: number, start?: number, 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<RequestArgs>;
43
57
  /**
44
58
  * 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.
45
59
  * @summary Get one lead
@@ -57,11 +71,10 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
57
71
  */
58
72
  getLeadUsers: (id: string) => Promise<RequestArgs>;
59
73
  /**
60
- * 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.
74
+ * Returns multiple not archived 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.
61
75
  * @summary Get all leads
62
76
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
63
77
  * @param {number} [start] For pagination, the position that represents the first result for the page
64
- * @param {'archived' | 'not_archived' | 'all'} [archived_status] Filtering based on the archived status of a lead. If not provided, &#x60;All&#x60; is used.
65
78
  * @param {number} [owner_id] If supplied, only leads matching the given user will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied.
66
79
  * @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied.
67
80
  * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
@@ -70,7 +83,7 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
70
83
 
71
84
  * @throws {RequiredError}
72
85
  */
73
- 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<RequestArgs>;
86
+ getLeads: (limit?: number, start?: number, 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<RequestArgs>;
74
87
  /**
75
88
  * 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.
76
89
  * @summary Search leads
@@ -117,6 +130,20 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
117
130
  * @throws {RequiredError}
118
131
  */
119
132
  deleteLead(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadIdResponse>>;
133
+ /**
134
+ * Returns multiple archived 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.
135
+ * @summary Get all archived leads
136
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
137
+ * @param {number} [start] For pagination, the position that represents the first result for the page
138
+ * @param {number} [owner_id] If supplied, only leads matching the given user will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied.
139
+ * @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied.
140
+ * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
141
+ * @param {number} [filter_id] The ID of the filter to use
142
+ * @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 (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
143
+
144
+ * @throws {RequiredError}
145
+ */
146
+ getArchivedLeads(limit?: number, start?: number, 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<GetLeadsResponse>>;
120
147
  /**
121
148
  * 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.
122
149
  * @summary Get one lead
@@ -134,11 +161,10 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
134
161
  */
135
162
  getLeadUsers(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UserIds>>;
136
163
  /**
137
- * 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.
164
+ * Returns multiple not archived 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.
138
165
  * @summary Get all leads
139
166
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
140
167
  * @param {number} [start] For pagination, the position that represents the first result for the page
141
- * @param {'archived' | 'not_archived' | 'all'} [archived_status] Filtering based on the archived status of a lead. If not provided, &#x60;All&#x60; is used.
142
168
  * @param {number} [owner_id] If supplied, only leads matching the given user will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied.
143
169
  * @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied.
144
170
  * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
@@ -147,7 +173,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
147
173
 
148
174
  * @throws {RequiredError}
149
175
  */
150
- 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<GetLeadsResponse>>;
176
+ getLeads(limit?: number, start?: number, 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<GetLeadsResponse>>;
151
177
  /**
152
178
  * 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.
153
179
  * @summary Search leads
@@ -194,6 +220,14 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
194
220
  * @throws {RequiredError}
195
221
  */
196
222
  deleteLead(requestParameters: LeadsApiDeleteLeadRequest): Promise<GetLeadIdResponse>;
223
+ /**
224
+ * Returns multiple archived 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.
225
+ * @summary Get all archived leads
226
+ * @param {LeadsApiGetArchivedLeadsRequest} requestParameters Request parameters.
227
+
228
+ * @throws {RequiredError}
229
+ */
230
+ getArchivedLeads(requestParameters?: LeadsApiGetArchivedLeadsRequest): Promise<GetLeadsResponse>;
197
231
  /**
198
232
  * 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.
199
233
  * @summary Get one lead
@@ -211,7 +245,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
211
245
  */
212
246
  getLeadUsers(requestParameters: LeadsApiGetLeadUsersRequest): Promise<UserIds>;
213
247
  /**
214
- * 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.
248
+ * Returns multiple not archived 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.
215
249
  * @summary Get all leads
216
250
  * @param {LeadsApiGetLeadsRequest} requestParameters Request parameters.
217
251
 
@@ -261,6 +295,55 @@ export interface LeadsApiDeleteLeadRequest {
261
295
  */
262
296
  readonly id: string;
263
297
  }
298
+ /**
299
+ * Request parameters for getArchivedLeads operation in LeadsApi.
300
+ * @export
301
+ * @interface LeadsApiGetArchivedLeadsRequest
302
+ */
303
+ export interface LeadsApiGetArchivedLeadsRequest {
304
+ /**
305
+ * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
306
+ * @type {number}
307
+ * @memberof LeadsApiGetArchivedLeads
308
+ */
309
+ readonly limit?: number;
310
+ /**
311
+ * For pagination, the position that represents the first result for the page
312
+ * @type {number}
313
+ * @memberof LeadsApiGetArchivedLeads
314
+ */
315
+ readonly start?: number;
316
+ /**
317
+ * If supplied, only leads matching the given user will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied.
318
+ * @type {number}
319
+ * @memberof LeadsApiGetArchivedLeads
320
+ */
321
+ readonly owner_id?: number;
322
+ /**
323
+ * If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied.
324
+ * @type {number}
325
+ * @memberof LeadsApiGetArchivedLeads
326
+ */
327
+ readonly person_id?: number;
328
+ /**
329
+ * If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
330
+ * @type {number}
331
+ * @memberof LeadsApiGetArchivedLeads
332
+ */
333
+ readonly organization_id?: number;
334
+ /**
335
+ * The ID of the filter to use
336
+ * @type {number}
337
+ * @memberof LeadsApiGetArchivedLeads
338
+ */
339
+ readonly filter_id?: number;
340
+ /**
341
+ * The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
342
+ * @type {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'}
343
+ * @memberof LeadsApiGetArchivedLeads
344
+ */
345
+ readonly sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time';
346
+ }
264
347
  /**
265
348
  * Request parameters for getLead operation in LeadsApi.
266
349
  * @export
@@ -305,12 +388,6 @@ export interface LeadsApiGetLeadsRequest {
305
388
  * @memberof LeadsApiGetLeads
306
389
  */
307
390
  readonly start?: number;
308
- /**
309
- * Filtering based on the archived status of a lead. If not provided, &#x60;All&#x60; is used.
310
- * @type {'archived' | 'not_archived' | 'all'}
311
- * @memberof LeadsApiGetLeads
312
- */
313
- readonly archived_status?: 'archived' | 'not_archived' | 'all';
314
391
  /**
315
392
  * If supplied, only leads matching the given user will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied.
316
393
  * @type {number}
@@ -441,6 +518,15 @@ export declare class LeadsApi extends BaseAPI {
441
518
  * @memberof LeadsApi
442
519
  */
443
520
  deleteLead(requestParameters: LeadsApiDeleteLeadRequest): Promise<GetLeadIdResponse>;
521
+ /**
522
+ * Returns multiple archived 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.
523
+ * @summary Get all archived leads
524
+ * @param {LeadsApiGetArchivedLeadsRequest} requestParameters Request parameters.
525
+
526
+ * @throws {RequiredError}
527
+ * @memberof LeadsApi
528
+ */
529
+ getArchivedLeads(requestParameters?: LeadsApiGetArchivedLeadsRequest): Promise<GetLeadsResponse>;
444
530
  /**
445
531
  * 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.
446
532
  * @summary Get one lead
@@ -460,7 +546,7 @@ export declare class LeadsApi extends BaseAPI {
460
546
  */
461
547
  getLeadUsers(requestParameters: LeadsApiGetLeadUsersRequest): Promise<UserIds>;
462
548
  /**
463
- * 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.
549
+ * Returns multiple not archived 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.
464
550
  * @summary Get all leads
465
551
  * @param {LeadsApiGetLeadsRequest} requestParameters Request parameters.
466
552