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
@@ -60,7 +60,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
60
60
  const localVarQueryParameter = {};
61
61
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
62
62
  // authentication api_key required
63
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
63
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
64
64
  // authentication oauth2 required
65
65
  // oauth required
66
66
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -129,7 +129,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
129
129
  const localVarQueryParameter = {};
130
130
  const localVarFormParams = new URLSearchParams();
131
131
  // authentication api_key required
132
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
132
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
133
133
  // authentication oauth2 required
134
134
  // oauth required
135
135
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -180,7 +180,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
180
180
  const localVarHeaderParameter = {};
181
181
  const localVarQueryParameter = {};
182
182
  // authentication api_key required
183
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
183
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
184
184
  // authentication oauth2 required
185
185
  // oauth required
186
186
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -214,7 +214,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
214
214
  const localVarHeaderParameter = {};
215
215
  const localVarQueryParameter = {};
216
216
  // authentication api_key required
217
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
217
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
218
218
  // authentication oauth2 required
219
219
  // oauth required
220
220
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -248,7 +248,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
248
248
  const localVarHeaderParameter = {};
249
249
  const localVarQueryParameter = {};
250
250
  // authentication api_key required
251
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
251
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
252
252
  // authentication oauth2 required
253
253
  // oauth required
254
254
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -281,7 +281,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
281
281
  const localVarHeaderParameter = {};
282
282
  const localVarQueryParameter = {};
283
283
  // authentication api_key required
284
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
284
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
285
285
  // authentication oauth2 required
286
286
  // oauth required
287
287
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -333,7 +333,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
333
333
  const localVarQueryParameter = {};
334
334
  const localVarFormParams = new URLSearchParams();
335
335
  // authentication api_key required
336
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
336
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
337
337
  // authentication oauth2 required
338
338
  // oauth required
339
339
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -384,7 +384,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
384
384
  const localVarQueryParameter = {};
385
385
  const localVarFormParams = new URLSearchParams();
386
386
  // authentication api_key required
387
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
387
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
388
388
  // authentication oauth2 required
389
389
  // oauth required
390
390
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -51,7 +51,7 @@ export const FiltersApiAxiosParamCreator = function (configuration) {
51
51
  const localVarHeaderParameter = {};
52
52
  const localVarQueryParameter = {};
53
53
  // authentication api_key required
54
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
54
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
55
55
  // authentication oauth2 required
56
56
  // oauth required
57
57
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -87,7 +87,7 @@ export const FiltersApiAxiosParamCreator = function (configuration) {
87
87
  const localVarHeaderParameter = {};
88
88
  const localVarQueryParameter = {};
89
89
  // authentication api_key required
90
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
90
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
91
91
  // authentication oauth2 required
92
92
  // oauth required
93
93
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -120,7 +120,7 @@ export const FiltersApiAxiosParamCreator = function (configuration) {
120
120
  const localVarHeaderParameter = {};
121
121
  const localVarQueryParameter = {};
122
122
  // authentication api_key required
123
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
123
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
124
124
  // authentication oauth2 required
125
125
  // oauth required
126
126
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -157,7 +157,7 @@ export const FiltersApiAxiosParamCreator = function (configuration) {
157
157
  const localVarHeaderParameter = {};
158
158
  const localVarQueryParameter = {};
159
159
  // authentication api_key required
160
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
160
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
161
161
  // authentication oauth2 required
162
162
  // oauth required
163
163
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -187,7 +187,7 @@ export const FiltersApiAxiosParamCreator = function (configuration) {
187
187
  const localVarHeaderParameter = {};
188
188
  const localVarQueryParameter = {};
189
189
  // authentication api_key required
190
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
190
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
191
191
  // authentication oauth2 required
192
192
  // oauth required
193
193
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -218,7 +218,7 @@ export const FiltersApiAxiosParamCreator = function (configuration) {
218
218
  const localVarHeaderParameter = {};
219
219
  const localVarQueryParameter = {};
220
220
  // authentication api_key required
221
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
221
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
222
222
  // authentication oauth2 required
223
223
  // oauth required
224
224
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
@@ -256,7 +256,7 @@ export const FiltersApiAxiosParamCreator = function (configuration) {
256
256
  const localVarHeaderParameter = {};
257
257
  const localVarQueryParameter = {};
258
258
  // authentication api_key required
259
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
259
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
260
260
  // authentication oauth2 required
261
261
  // oauth required
262
262
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
@@ -51,7 +51,7 @@ export const GoalsApiAxiosParamCreator = function (configuration) {
51
51
  const localVarHeaderParameter = {};
52
52
  const localVarQueryParameter = {};
53
53
  // authentication api_key required
54
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
54
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
55
55
  // authentication oauth2 required
56
56
  // oauth required
57
57
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["goals:full"], configuration);
@@ -87,7 +87,7 @@ export const GoalsApiAxiosParamCreator = function (configuration) {
87
87
  const localVarHeaderParameter = {};
88
88
  const localVarQueryParameter = {};
89
89
  // authentication api_key required
90
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
90
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
91
91
  // authentication oauth2 required
92
92
  // oauth required
93
93
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["goals:full"], configuration);
@@ -127,7 +127,7 @@ export const GoalsApiAxiosParamCreator = function (configuration) {
127
127
  const localVarHeaderParameter = {};
128
128
  const localVarQueryParameter = {};
129
129
  // authentication api_key required
130
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
130
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
131
131
  // authentication oauth2 required
132
132
  // oauth required
133
133
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["goals:read", "goals:full"], configuration);
@@ -180,7 +180,7 @@ export const GoalsApiAxiosParamCreator = function (configuration) {
180
180
  const localVarHeaderParameter = {};
181
181
  const localVarQueryParameter = {};
182
182
  // authentication api_key required
183
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
183
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
184
184
  // authentication oauth2 required
185
185
  // oauth required
186
186
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["goals:read", "goals:full"], configuration);
@@ -258,7 +258,7 @@ export const GoalsApiAxiosParamCreator = function (configuration) {
258
258
  const localVarHeaderParameter = {};
259
259
  const localVarQueryParameter = {};
260
260
  // authentication api_key required
261
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
261
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
262
262
  // authentication oauth2 required
263
263
  // oauth required
264
264
  yield 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
  */
@@ -43,7 +43,7 @@ export const ItemSearchApiAxiosParamCreator = function (configuration) {
43
43
  * @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.
44
44
  * @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.
45
45
  * @param {number} [limit] Items shown per page
46
-
46
+ * @deprecated
47
47
  * @throws {RequiredError}
48
48
  */
49
49
  searchItem: (term, item_types, fields, search_for_related_items, exact_match, include_fields, start, limit) => __awaiter(this, void 0, void 0, function* () {
@@ -60,7 +60,7 @@ export const ItemSearchApiAxiosParamCreator = function (configuration) {
60
60
  const localVarHeaderParameter = {};
61
61
  const localVarQueryParameter = {};
62
62
  // authentication api_key required
63
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
63
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
64
64
  // authentication oauth2 required
65
65
  // oauth required
66
66
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration);
@@ -106,7 +106,7 @@ export const ItemSearchApiAxiosParamCreator = function (configuration) {
106
106
  * @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.
107
107
  * @param {number} [start] Pagination start
108
108
  * @param {number} [limit] Items shown per page
109
-
109
+ * @deprecated
110
110
  * @throws {RequiredError}
111
111
  */
112
112
  searchItemByField: (term, field_type, field_key, exact_match, return_item_ids, start, limit) => __awaiter(this, void 0, void 0, function* () {
@@ -127,7 +127,7 @@ export const ItemSearchApiAxiosParamCreator = function (configuration) {
127
127
  const localVarHeaderParameter = {};
128
128
  const localVarQueryParameter = {};
129
129
  // authentication api_key required
130
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
130
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
131
131
  // authentication oauth2 required
132
132
  // oauth required
133
133
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration);
@@ -180,7 +180,7 @@ export const ItemSearchApiFp = function (configuration) {
180
180
  * @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.
181
181
  * @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.
182
182
  * @param {number} [limit] Items shown per page
183
-
183
+ * @deprecated
184
184
  * @throws {RequiredError}
185
185
  */
186
186
  searchItem(term, item_types, fields, search_for_related_items, exact_match, include_fields, start, limit) {
@@ -199,7 +199,7 @@ export const ItemSearchApiFp = function (configuration) {
199
199
  * @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.
200
200
  * @param {number} [start] Pagination start
201
201
  * @param {number} [limit] Items shown per page
202
-
202
+ * @deprecated
203
203
  * @throws {RequiredError}
204
204
  */
205
205
  searchItemByField(term, field_type, field_key, exact_match, return_item_ids, start, limit) {
@@ -221,7 +221,7 @@ export const ItemSearchApiFactory = function (configuration, basePath, axios) {
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
  */
227
227
  searchItem(requestParameters) {
@@ -231,7 +231,7 @@ export const ItemSearchApiFactory = function (configuration, basePath, axios) {
231
231
  * 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).
232
232
  * @summary Perform a search using a specific field from an item type
233
233
  * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
234
-
234
+ * @deprecated
235
235
  * @throws {RequiredError}
236
236
  */
237
237
  searchItemByField(requestParameters) {
@@ -250,7 +250,7 @@ export class ItemSearchApi extends BaseAPI {
250
250
  * Performs a search from your choice of item types and fields.
251
251
  * @summary Perform a search from multiple item types
252
252
  * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters.
253
-
253
+ * @deprecated
254
254
  * @throws {RequiredError}
255
255
  * @memberof ItemSearchApi
256
256
  */
@@ -261,7 +261,7 @@ export class ItemSearchApi extends BaseAPI {
261
261
  * 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).
262
262
  * @summary Perform a search using a specific field from an item type
263
263
  * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
264
-
264
+ * @deprecated
265
265
  * @throws {RequiredError}
266
266
  * @memberof ItemSearchApi
267
267
  */
@@ -51,7 +51,7 @@ export const LeadLabelsApiAxiosParamCreator = function (configuration) {
51
51
  const localVarHeaderParameter = {};
52
52
  const localVarQueryParameter = {};
53
53
  // authentication api_key required
54
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
54
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
55
55
  // authentication oauth2 required
56
56
  // oauth required
57
57
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration);
@@ -87,7 +87,7 @@ export const LeadLabelsApiAxiosParamCreator = function (configuration) {
87
87
  const localVarHeaderParameter = {};
88
88
  const localVarQueryParameter = {};
89
89
  // authentication api_key required
90
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
90
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
91
91
  // authentication oauth2 required
92
92
  // oauth required
93
93
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration);
@@ -117,7 +117,7 @@ export const LeadLabelsApiAxiosParamCreator = function (configuration) {
117
117
  const localVarHeaderParameter = {};
118
118
  const localVarQueryParameter = {};
119
119
  // authentication api_key required
120
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
120
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
121
121
  // authentication oauth2 required
122
122
  // oauth required
123
123
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full"], configuration);
@@ -152,7 +152,7 @@ export const LeadLabelsApiAxiosParamCreator = function (configuration) {
152
152
  const localVarHeaderParameter = {};
153
153
  const localVarQueryParameter = {};
154
154
  // authentication api_key required
155
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
155
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
156
156
  // authentication oauth2 required
157
157
  // oauth required
158
158
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration);
@@ -50,7 +50,7 @@ export const LeadSourcesApiAxiosParamCreator = function (configuration) {
50
50
  const localVarHeaderParameter = {};
51
51
  const localVarQueryParameter = {};
52
52
  // authentication api_key required
53
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
53
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
54
54
  // authentication oauth2 required
55
55
  // oauth required
56
56
  yield 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