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
@@ -42,7 +42,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
42
42
  * Adds a new stage, returns the ID upon success.
43
43
  * @summary Add a new stage
44
44
  * @param {AddStageRequest} [AddStageRequest]
45
-
45
+ * @deprecated
46
46
  * @throws {RequiredError}
47
47
  */
48
48
  addStage: (AddStageRequest) => __awaiter(this, void 0, void 0, function* () {
@@ -57,7 +57,7 @@ const StagesApiAxiosParamCreator = 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", ["admin"], configuration);
@@ -75,7 +75,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
75
75
  * Marks a stage as deleted.
76
76
  * @summary Delete a stage
77
77
  * @param {number} id The ID of the stage
78
-
78
+ * @deprecated
79
79
  * @throws {RequiredError}
80
80
  */
81
81
  deleteStage: (id) => __awaiter(this, void 0, void 0, function* () {
@@ -93,7 +93,7 @@ const StagesApiAxiosParamCreator = 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", ["admin"], configuration);
@@ -106,10 +106,10 @@ const StagesApiAxiosParamCreator = function (configuration) {
106
106
  };
107
107
  }),
108
108
  /**
109
- * Marks multiple stages as deleted.
109
+ * Marks multiple stages as deleted. <br>This endpoint has been deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Stages#deleteStage\" target=\"_blank\" rel=\"noopener noreferrer\">DELETE /api/v2/stages/{id}</a> instead.
110
110
  * @summary Delete multiple stages in bulk
111
111
  * @param {string} ids The comma-separated stage IDs to delete
112
-
112
+ * @deprecated
113
113
  * @throws {RequiredError}
114
114
  */
115
115
  deleteStages: (ids) => __awaiter(this, void 0, void 0, function* () {
@@ -126,7 +126,7 @@ const StagesApiAxiosParamCreator = 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", ["admin"], configuration);
@@ -146,7 +146,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
146
146
  * @summary Get one stage
147
147
  * @param {number} id The ID of the stage
148
148
  * @param {0 | 1} [everyone] If &#x60;everyone&#x3D;1&#x60; is provided, deals summary will return deals owned by every user
149
-
149
+ * @deprecated
150
150
  * @throws {RequiredError}
151
151
  */
152
152
  getStage: (id, everyone) => __awaiter(this, void 0, void 0, function* () {
@@ -164,7 +164,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
164
164
  const localVarHeaderParameter = {};
165
165
  const localVarQueryParameter = {};
166
166
  // authentication api_key required
167
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
167
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
168
168
  // authentication oauth2 required
169
169
  // oauth required
170
170
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration);
@@ -180,7 +180,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
180
180
  };
181
181
  }),
182
182
  /**
183
- * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned.
183
+ * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. <br>This endpoint has been deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDeals\" target=\"_blank\" rel=\"noopener noreferrer\">GET /api/v2/deals?stage_id={id}</a> instead.
184
184
  * @summary Get deals in a stage
185
185
  * @param {number} id The ID of the stage
186
186
  * @param {number} [filter_id] If supplied, only deals matching the given filter will be returned
@@ -188,7 +188,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
188
188
  * @param {0 | 1} [everyone] If supplied, &#x60;filter_id&#x60; and &#x60;user_id&#x60; will not be considered – instead, deals owned by everyone will be returned
189
189
  * @param {number} [start] Pagination start
190
190
  * @param {number} [limit] Items shown per page
191
-
191
+ * @deprecated
192
192
  * @throws {RequiredError}
193
193
  */
194
194
  getStageDeals: (id, filter_id, user_id, everyone, start, limit) => __awaiter(this, void 0, void 0, function* () {
@@ -206,7 +206,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
206
206
  const localVarHeaderParameter = {};
207
207
  const localVarQueryParameter = {};
208
208
  // authentication api_key required
209
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
209
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
210
210
  // authentication oauth2 required
211
211
  // oauth required
212
212
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
@@ -239,7 +239,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
239
239
  * @param {number} [pipeline_id] The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched.
240
240
  * @param {number} [start] Pagination start
241
241
  * @param {number} [limit] Items shown per page
242
-
242
+ * @deprecated
243
243
  * @throws {RequiredError}
244
244
  */
245
245
  getStages: (pipeline_id, start, limit) => __awaiter(this, void 0, void 0, function* () {
@@ -254,7 +254,7 @@ const StagesApiAxiosParamCreator = 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", "admin"], configuration);
@@ -280,7 +280,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
280
280
  * @summary Update stage details
281
281
  * @param {number} id The ID of the stage
282
282
  * @param {UpdateStageRequest} [UpdateStageRequest]
283
-
283
+ * @deprecated
284
284
  * @throws {RequiredError}
285
285
  */
286
286
  updateStage: (id, UpdateStageRequest) => __awaiter(this, void 0, void 0, function* () {
@@ -298,7 +298,7 @@ const StagesApiAxiosParamCreator = function (configuration) {
298
298
  const localVarHeaderParameter = {};
299
299
  const localVarQueryParameter = {};
300
300
  // authentication api_key required
301
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
301
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
302
302
  // authentication oauth2 required
303
303
  // oauth required
304
304
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["admin"], configuration);
@@ -326,7 +326,7 @@ const StagesApiFp = function (configuration) {
326
326
  * Adds a new stage, returns the ID upon success.
327
327
  * @summary Add a new stage
328
328
  * @param {AddStageRequest} [AddStageRequest]
329
-
329
+ * @deprecated
330
330
  * @throws {RequiredError}
331
331
  */
332
332
  addStage(AddStageRequest) {
@@ -339,7 +339,7 @@ const StagesApiFp = function (configuration) {
339
339
  * Marks a stage as deleted.
340
340
  * @summary Delete a stage
341
341
  * @param {number} id The ID of the stage
342
-
342
+ * @deprecated
343
343
  * @throws {RequiredError}
344
344
  */
345
345
  deleteStage(id) {
@@ -349,10 +349,10 @@ const StagesApiFp = function (configuration) {
349
349
  });
350
350
  },
351
351
  /**
352
- * Marks multiple stages as deleted.
352
+ * Marks multiple stages as deleted. <br>This endpoint has been deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Stages#deleteStage\" target=\"_blank\" rel=\"noopener noreferrer\">DELETE /api/v2/stages/{id}</a> instead.
353
353
  * @summary Delete multiple stages in bulk
354
354
  * @param {string} ids The comma-separated stage IDs to delete
355
-
355
+ * @deprecated
356
356
  * @throws {RequiredError}
357
357
  */
358
358
  deleteStages(ids) {
@@ -366,7 +366,7 @@ const StagesApiFp = function (configuration) {
366
366
  * @summary Get one stage
367
367
  * @param {number} id The ID of the stage
368
368
  * @param {0 | 1} [everyone] If &#x60;everyone&#x3D;1&#x60; is provided, deals summary will return deals owned by every user
369
-
369
+ * @deprecated
370
370
  * @throws {RequiredError}
371
371
  */
372
372
  getStage(id, everyone) {
@@ -376,7 +376,7 @@ const StagesApiFp = function (configuration) {
376
376
  });
377
377
  },
378
378
  /**
379
- * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned.
379
+ * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. <br>This endpoint has been deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDeals\" target=\"_blank\" rel=\"noopener noreferrer\">GET /api/v2/deals?stage_id={id}</a> instead.
380
380
  * @summary Get deals in a stage
381
381
  * @param {number} id The ID of the stage
382
382
  * @param {number} [filter_id] If supplied, only deals matching the given filter will be returned
@@ -384,7 +384,7 @@ const StagesApiFp = function (configuration) {
384
384
  * @param {0 | 1} [everyone] If supplied, &#x60;filter_id&#x60; and &#x60;user_id&#x60; will not be considered – instead, deals owned by everyone will be returned
385
385
  * @param {number} [start] Pagination start
386
386
  * @param {number} [limit] Items shown per page
387
-
387
+ * @deprecated
388
388
  * @throws {RequiredError}
389
389
  */
390
390
  getStageDeals(id, filter_id, user_id, everyone, start, limit) {
@@ -399,7 +399,7 @@ const StagesApiFp = function (configuration) {
399
399
  * @param {number} [pipeline_id] The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched.
400
400
  * @param {number} [start] Pagination start
401
401
  * @param {number} [limit] Items shown per page
402
-
402
+ * @deprecated
403
403
  * @throws {RequiredError}
404
404
  */
405
405
  getStages(pipeline_id, start, limit) {
@@ -413,7 +413,7 @@ const StagesApiFp = function (configuration) {
413
413
  * @summary Update stage details
414
414
  * @param {number} id The ID of the stage
415
415
  * @param {UpdateStageRequest} [UpdateStageRequest]
416
-
416
+ * @deprecated
417
417
  * @throws {RequiredError}
418
418
  */
419
419
  updateStage(id, UpdateStageRequest) {
@@ -436,7 +436,7 @@ const StagesApiFactory = function (configuration, basePath, axios) {
436
436
  * Adds a new stage, returns the ID upon success.
437
437
  * @summary Add a new stage
438
438
  * @param {StagesApiAddStageRequest} requestParameters Request parameters.
439
-
439
+ * @deprecated
440
440
  * @throws {RequiredError}
441
441
  */
442
442
  addStage(requestParameters = {}) {
@@ -446,17 +446,17 @@ const StagesApiFactory = function (configuration, basePath, axios) {
446
446
  * Marks a stage as deleted.
447
447
  * @summary Delete a stage
448
448
  * @param {StagesApiDeleteStageRequest} requestParameters Request parameters.
449
-
449
+ * @deprecated
450
450
  * @throws {RequiredError}
451
451
  */
452
452
  deleteStage(requestParameters) {
453
453
  return localVarFp.deleteStage(requestParameters.id).then((request) => request(axios, basePath));
454
454
  },
455
455
  /**
456
- * Marks multiple stages as deleted.
456
+ * Marks multiple stages as deleted. <br>This endpoint has been deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Stages#deleteStage\" target=\"_blank\" rel=\"noopener noreferrer\">DELETE /api/v2/stages/{id}</a> instead.
457
457
  * @summary Delete multiple stages in bulk
458
458
  * @param {StagesApiDeleteStagesRequest} requestParameters Request parameters.
459
-
459
+ * @deprecated
460
460
  * @throws {RequiredError}
461
461
  */
462
462
  deleteStages(requestParameters) {
@@ -466,17 +466,17 @@ const StagesApiFactory = function (configuration, basePath, axios) {
466
466
  * Returns data about a specific stage.
467
467
  * @summary Get one stage
468
468
  * @param {StagesApiGetStageRequest} requestParameters Request parameters.
469
-
469
+ * @deprecated
470
470
  * @throws {RequiredError}
471
471
  */
472
472
  getStage(requestParameters) {
473
473
  return localVarFp.getStage(requestParameters.id, requestParameters.everyone).then((request) => request(axios, basePath));
474
474
  },
475
475
  /**
476
- * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned.
476
+ * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. <br>This endpoint has been deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDeals\" target=\"_blank\" rel=\"noopener noreferrer\">GET /api/v2/deals?stage_id={id}</a> instead.
477
477
  * @summary Get deals in a stage
478
478
  * @param {StagesApiGetStageDealsRequest} requestParameters Request parameters.
479
-
479
+ * @deprecated
480
480
  * @throws {RequiredError}
481
481
  */
482
482
  getStageDeals(requestParameters) {
@@ -486,7 +486,7 @@ const StagesApiFactory = function (configuration, basePath, axios) {
486
486
  * Returns data about all stages.
487
487
  * @summary Get all stages
488
488
  * @param {StagesApiGetStagesRequest} requestParameters Request parameters.
489
-
489
+ * @deprecated
490
490
  * @throws {RequiredError}
491
491
  */
492
492
  getStages(requestParameters = {}) {
@@ -496,7 +496,7 @@ const StagesApiFactory = function (configuration, basePath, axios) {
496
496
  * Updates the properties of a stage.
497
497
  * @summary Update stage details
498
498
  * @param {StagesApiUpdateStageRequest} requestParameters Request parameters.
499
-
499
+ * @deprecated
500
500
  * @throws {RequiredError}
501
501
  */
502
502
  updateStage(requestParameters) {
@@ -516,7 +516,7 @@ class StagesApi extends base_1.BaseAPI {
516
516
  * Adds a new stage, returns the ID upon success.
517
517
  * @summary Add a new stage
518
518
  * @param {StagesApiAddStageRequest} requestParameters Request parameters.
519
-
519
+ * @deprecated
520
520
  * @throws {RequiredError}
521
521
  * @memberof StagesApi
522
522
  */
@@ -527,7 +527,7 @@ class StagesApi extends base_1.BaseAPI {
527
527
  * Marks a stage as deleted.
528
528
  * @summary Delete a stage
529
529
  * @param {StagesApiDeleteStageRequest} requestParameters Request parameters.
530
-
530
+ * @deprecated
531
531
  * @throws {RequiredError}
532
532
  * @memberof StagesApi
533
533
  */
@@ -535,10 +535,10 @@ class StagesApi extends base_1.BaseAPI {
535
535
  return (0, exports.StagesApiFp)(this.configuration).deleteStage(requestParameters.id).then((request) => request(this.axios, this.basePath));
536
536
  }
537
537
  /**
538
- * Marks multiple stages as deleted.
538
+ * Marks multiple stages as deleted. <br>This endpoint has been deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Stages#deleteStage\" target=\"_blank\" rel=\"noopener noreferrer\">DELETE /api/v2/stages/{id}</a> instead.
539
539
  * @summary Delete multiple stages in bulk
540
540
  * @param {StagesApiDeleteStagesRequest} requestParameters Request parameters.
541
-
541
+ * @deprecated
542
542
  * @throws {RequiredError}
543
543
  * @memberof StagesApi
544
544
  */
@@ -549,7 +549,7 @@ class StagesApi extends base_1.BaseAPI {
549
549
  * Returns data about a specific stage.
550
550
  * @summary Get one stage
551
551
  * @param {StagesApiGetStageRequest} requestParameters Request parameters.
552
-
552
+ * @deprecated
553
553
  * @throws {RequiredError}
554
554
  * @memberof StagesApi
555
555
  */
@@ -557,10 +557,10 @@ class StagesApi extends base_1.BaseAPI {
557
557
  return (0, exports.StagesApiFp)(this.configuration).getStage(requestParameters.id, requestParameters.everyone).then((request) => request(this.axios, this.basePath));
558
558
  }
559
559
  /**
560
- * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned.
560
+ * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. <br>This endpoint has been deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDeals\" target=\"_blank\" rel=\"noopener noreferrer\">GET /api/v2/deals?stage_id={id}</a> instead.
561
561
  * @summary Get deals in a stage
562
562
  * @param {StagesApiGetStageDealsRequest} requestParameters Request parameters.
563
-
563
+ * @deprecated
564
564
  * @throws {RequiredError}
565
565
  * @memberof StagesApi
566
566
  */
@@ -571,7 +571,7 @@ class StagesApi extends base_1.BaseAPI {
571
571
  * Returns data about all stages.
572
572
  * @summary Get all stages
573
573
  * @param {StagesApiGetStagesRequest} requestParameters Request parameters.
574
-
574
+ * @deprecated
575
575
  * @throws {RequiredError}
576
576
  * @memberof StagesApi
577
577
  */
@@ -582,7 +582,7 @@ class StagesApi extends base_1.BaseAPI {
582
582
  * Updates the properties of a stage.
583
583
  * @summary Update stage details
584
584
  * @param {StagesApiUpdateStageRequest} requestParameters Request parameters.
585
-
585
+ * @deprecated
586
586
  * @throws {RequiredError}
587
587
  * @memberof StagesApi
588
588
  */
@@ -57,7 +57,7 @@ const SubscriptionsApiAxiosParamCreator = 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"], configuration);
@@ -90,7 +90,7 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
90
90
  const localVarHeaderParameter = {};
91
91
  const localVarQueryParameter = {};
92
92
  // authentication api_key required
93
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
93
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
94
94
  // authentication oauth2 required
95
95
  // oauth required
96
96
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full"], configuration);
@@ -127,7 +127,7 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
127
127
  const localVarHeaderParameter = {};
128
128
  const localVarQueryParameter = {};
129
129
  // authentication api_key required
130
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
130
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
131
131
  // authentication oauth2 required
132
132
  // oauth required
133
133
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full"], configuration);
@@ -163,7 +163,7 @@ const SubscriptionsApiAxiosParamCreator = 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:full"], configuration);
@@ -197,7 +197,7 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
197
197
  const localVarHeaderParameter = {};
198
198
  const localVarQueryParameter = {};
199
199
  // authentication api_key required
200
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
200
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
201
201
  // authentication oauth2 required
202
202
  // oauth required
203
203
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
@@ -231,7 +231,7 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
231
231
  const localVarHeaderParameter = {};
232
232
  const localVarQueryParameter = {};
233
233
  // authentication api_key required
234
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
234
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
235
235
  // authentication oauth2 required
236
236
  // oauth required
237
237
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
@@ -265,7 +265,7 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
265
265
  const localVarHeaderParameter = {};
266
266
  const localVarQueryParameter = {};
267
267
  // authentication api_key required
268
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
268
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
269
269
  // authentication oauth2 required
270
270
  // oauth required
271
271
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
@@ -300,7 +300,7 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
300
300
  const localVarHeaderParameter = {};
301
301
  const localVarQueryParameter = {};
302
302
  // authentication api_key required
303
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
303
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
304
304
  // authentication oauth2 required
305
305
  // oauth required
306
306
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full"], configuration);
@@ -337,7 +337,7 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
337
337
  const localVarHeaderParameter = {};
338
338
  const localVarQueryParameter = {};
339
339
  // authentication api_key required
340
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
340
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
341
341
  // authentication oauth2 required
342
342
  // oauth required
343
343
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full"], configuration);
@@ -57,7 +57,7 @@ const TasksApiAxiosParamCreator = 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", ["projects:full"], configuration);
@@ -93,7 +93,7 @@ const TasksApiAxiosParamCreator = 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", ["projects:full"], configuration);
@@ -127,7 +127,7 @@ const TasksApiAxiosParamCreator = function (configuration) {
127
127
  const localVarHeaderParameter = {};
128
128
  const localVarQueryParameter = {};
129
129
  // authentication api_key required
130
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
130
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
131
131
  // authentication oauth2 required
132
132
  // oauth required
133
133
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration);
@@ -163,7 +163,7 @@ const TasksApiAxiosParamCreator = 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", ["projects:read", "projects:full"], configuration);
@@ -216,7 +216,7 @@ const TasksApiAxiosParamCreator = function (configuration) {
216
216
  const localVarHeaderParameter = {};
217
217
  const localVarQueryParameter = {};
218
218
  // authentication api_key required
219
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
219
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
220
220
  // authentication oauth2 required
221
221
  // oauth required
222
222
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
@@ -56,7 +56,7 @@ const UserConnectionsApiAxiosParamCreator = 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", ["base"], configuration);
@@ -56,7 +56,7 @@ const UserSettingsApiAxiosParamCreator = 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", ["base"], configuration);
@@ -57,7 +57,7 @@ const UsersApiAxiosParamCreator = 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", ["admin"], configuration);
@@ -93,7 +93,7 @@ const UsersApiAxiosParamCreator = 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", ["users:read"], configuration);
@@ -129,7 +129,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
129
129
  const localVarHeaderParameter = {};
130
130
  const localVarQueryParameter = {};
131
131
  // authentication api_key required
132
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
132
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
133
133
  // authentication oauth2 required
134
134
  // oauth required
135
135
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["base"], configuration);
@@ -163,7 +163,7 @@ const UsersApiAxiosParamCreator = 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", ["users:read"], configuration);
@@ -197,7 +197,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
197
197
  const localVarHeaderParameter = {};
198
198
  const localVarQueryParameter = {};
199
199
  // authentication api_key required
200
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
200
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
201
201
  // authentication oauth2 required
202
202
  // oauth required
203
203
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["users:read"], configuration);
@@ -231,7 +231,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
231
231
  const localVarHeaderParameter = {};
232
232
  const localVarQueryParameter = {};
233
233
  // authentication api_key required
234
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
234
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
235
235
  // authentication oauth2 required
236
236
  // oauth required
237
237
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["users:read"], configuration);
@@ -267,7 +267,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
267
267
  const localVarHeaderParameter = {};
268
268
  const localVarQueryParameter = {};
269
269
  // authentication api_key required
270
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
270
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
271
271
  // authentication oauth2 required
272
272
  // oauth required
273
273
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["users:read"], configuration);
@@ -307,7 +307,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
307
307
  const localVarHeaderParameter = {};
308
308
  const localVarQueryParameter = {};
309
309
  // authentication api_key required
310
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
310
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
311
311
  // authentication oauth2 required
312
312
  // oauth required
313
313
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["users:read"], configuration);
@@ -337,7 +337,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
337
337
  const localVarHeaderParameter = {};
338
338
  const localVarQueryParameter = {};
339
339
  // authentication api_key required
340
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
340
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
341
341
  // authentication oauth2 required
342
342
  // oauth required
343
343
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["users:read"], configuration);
@@ -372,7 +372,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
372
372
  const localVarHeaderParameter = {};
373
373
  const localVarQueryParameter = {};
374
374
  // authentication api_key required
375
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
375
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
376
376
  // authentication oauth2 required
377
377
  // oauth required
378
378
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["admin"], configuration);
@@ -57,7 +57,7 @@ const WebhooksApiAxiosParamCreator = 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", ["admin"], configuration);
@@ -93,7 +93,7 @@ const WebhooksApiAxiosParamCreator = 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", ["admin"], configuration);
@@ -123,7 +123,7 @@ const WebhooksApiAxiosParamCreator = 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", ["admin"], configuration);
@@ -10,8 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from './configuration';
13
- import type { AxiosError, AxiosResponse, AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';
14
- import axios from 'axios';
13
+ import type { AxiosError, AxiosResponse, AxiosRequestConfig, InternalAxiosRequestConfig, AxiosInstance } from 'axios';
15
14
  export declare const BASE_PATH: string;
16
15
  /**
17
16
  *
@@ -43,7 +42,7 @@ export declare const errorInterceptor: (error: AxiosError) => Promise<never>;
43
42
  export declare class BaseAPI {
44
43
  protected configuration: Configuration | undefined;
45
44
  protected basePath: string;
46
- protected axios: axios.AxiosInstance;
45
+ protected axios: AxiosInstance;
47
46
  constructor(configuration: Configuration);
48
47
  }
49
48
  /**
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import axios from "axios";
12
+ import { AxiosResponse } from "axios";
13
13
  export type TokenResponse = {
14
14
  access_token: string;
15
15
  refresh_token: string;
@@ -54,7 +54,7 @@ export declare class OAuth2Configuration {
54
54
  * Revoke Refresh Token aka marking an app uninstalled or revoke the Access Token.
55
55
  * @param {String} tokenTypeHint values can be: 'access_token' or 'refresh_token'.
56
56
  */
57
- revokeToken(tokenTypeHint?: 'access_token' | 'refresh_token'): Promise<axios.AxiosResponse<any, any>>;
57
+ revokeToken(tokenTypeHint?: 'access_token' | 'refresh_token'): Promise<AxiosResponse<any, any>>;
58
58
  private validateParam;
59
59
  }
60
60
  export interface ConfigurationParameters {