pipedrive 22.3.1-rc.2 → 22.3.1-rc.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/CHANGELOG.md +17 -4
  2. package/README.md +29 -24
  3. package/api/activities-api.ts +1 -24
  4. package/api/activity-fields-api.ts +1 -24
  5. package/api/activity-types-api.ts +1 -21
  6. package/api/billing-api.ts +1 -24
  7. package/api/call-logs-api.ts +1 -24
  8. package/api/channels-api.ts +1 -24
  9. package/api/currencies-api.ts +1 -24
  10. package/api/deal-fields-api.ts +1 -24
  11. package/api/deals-api.ts +1 -24
  12. package/api/files-api.ts +1 -24
  13. package/api/filters-api.ts +1 -24
  14. package/api/goals-api.ts +1 -24
  15. package/api/item-search-api.ts +1 -24
  16. package/api/lead-labels-api.ts +1 -21
  17. package/api/lead-sources-api.ts +1 -24
  18. package/api/leads-api.ts +1 -24
  19. package/api/legacy-teams-api.ts +1 -24
  20. package/api/mailbox-api.ts +1 -24
  21. package/api/note-fields-api.ts +1 -24
  22. package/api/notes-api.ts +1 -21
  23. package/api/organization-fields-api.ts +1 -24
  24. package/api/organization-relationships-api.ts +1 -24
  25. package/api/organizations-api.ts +1 -24
  26. package/api/permission-sets-api.ts +1 -24
  27. package/api/person-fields-api.ts +1 -21
  28. package/api/persons-api.ts +1 -24
  29. package/api/pipelines-api.ts +1 -24
  30. package/api/product-fields-api.ts +1 -24
  31. package/api/products-api.ts +1 -24
  32. package/api/project-templates-api.ts +1 -24
  33. package/api/projects-api.ts +1 -24
  34. package/api/recents-api.ts +1 -24
  35. package/api/roles-api.ts +1 -24
  36. package/api/stages-api.ts +1 -24
  37. package/api/subscriptions-api.ts +1 -24
  38. package/api/tasks-api.ts +1 -24
  39. package/api/user-connections-api.ts +1 -24
  40. package/api/user-settings-api.ts +1 -24
  41. package/api/users-api.ts +1 -24
  42. package/api/webhooks-api.ts +1 -21
  43. package/base.ts +31 -0
  44. package/common.ts +0 -1
  45. package/configuration.ts +11 -2
  46. package/dist/api/activities-api.js +7 -30
  47. package/dist/api/activity-fields-api.js +1 -24
  48. package/dist/api/activity-types-api.js +0 -20
  49. package/dist/api/billing-api.js +1 -24
  50. package/dist/api/call-logs-api.js +5 -28
  51. package/dist/api/channels-api.js +4 -27
  52. package/dist/api/currencies-api.js +1 -24
  53. package/dist/api/deal-fields-api.js +6 -29
  54. package/dist/api/deals-api.js +28 -51
  55. package/dist/api/files-api.js +11 -34
  56. package/dist/api/filters-api.js +7 -30
  57. package/dist/api/goals-api.js +5 -28
  58. package/dist/api/item-search-api.js +2 -25
  59. package/dist/api/lead-labels-api.js +0 -20
  60. package/dist/api/lead-sources-api.js +1 -24
  61. package/dist/api/leads-api.js +7 -30
  62. package/dist/api/legacy-teams-api.js +8 -31
  63. package/dist/api/mailbox-api.js +7 -30
  64. package/dist/api/note-fields-api.js +1 -24
  65. package/dist/api/notes-api.js +0 -20
  66. package/dist/api/organization-fields-api.js +6 -29
  67. package/dist/api/organization-relationships-api.js +5 -28
  68. package/dist/api/organizations-api.js +19 -42
  69. package/dist/api/permission-sets-api.js +3 -26
  70. package/dist/api/person-fields-api.js +0 -20
  71. package/dist/api/persons-api.js +21 -44
  72. package/dist/api/pipelines-api.js +8 -31
  73. package/dist/api/product-fields-api.js +6 -29
  74. package/dist/api/products-api.js +12 -35
  75. package/dist/api/project-templates-api.js +4 -27
  76. package/dist/api/projects-api.js +14 -37
  77. package/dist/api/recents-api.js +1 -24
  78. package/dist/api/roles-api.js +12 -35
  79. package/dist/api/stages-api.js +7 -30
  80. package/dist/api/subscriptions-api.js +9 -32
  81. package/dist/api/tasks-api.js +5 -28
  82. package/dist/api/user-connections-api.js +1 -24
  83. package/dist/api/user-settings-api.js +1 -24
  84. package/dist/api/users-api.js +10 -33
  85. package/dist/api/webhooks-api.js +0 -20
  86. package/dist/base.js +26 -0
  87. package/dist/common.d.ts +0 -1
  88. package/dist/common.js +1 -2
  89. package/dist/configuration.d.ts +1 -0
  90. package/dist/configuration.js +8 -2
  91. package/dist/esm/api/activities-api.js +0 -23
  92. package/dist/esm/api/activity-fields-api.js +0 -23
  93. package/dist/esm/api/activity-types-api.js +0 -20
  94. package/dist/esm/api/billing-api.js +0 -23
  95. package/dist/esm/api/call-logs-api.js +0 -23
  96. package/dist/esm/api/channels-api.js +0 -23
  97. package/dist/esm/api/currencies-api.js +0 -23
  98. package/dist/esm/api/deal-fields-api.js +0 -23
  99. package/dist/esm/api/deals-api.js +0 -23
  100. package/dist/esm/api/files-api.js +0 -23
  101. package/dist/esm/api/filters-api.js +0 -23
  102. package/dist/esm/api/goals-api.js +0 -23
  103. package/dist/esm/api/item-search-api.js +0 -23
  104. package/dist/esm/api/lead-labels-api.js +0 -20
  105. package/dist/esm/api/lead-sources-api.js +0 -23
  106. package/dist/esm/api/leads-api.js +0 -23
  107. package/dist/esm/api/legacy-teams-api.js +0 -23
  108. package/dist/esm/api/mailbox-api.js +0 -23
  109. package/dist/esm/api/note-fields-api.js +0 -23
  110. package/dist/esm/api/notes-api.js +0 -20
  111. package/dist/esm/api/organization-fields-api.js +0 -23
  112. package/dist/esm/api/organization-relationships-api.js +0 -23
  113. package/dist/esm/api/organizations-api.js +0 -23
  114. package/dist/esm/api/permission-sets-api.js +0 -23
  115. package/dist/esm/api/person-fields-api.js +0 -20
  116. package/dist/esm/api/persons-api.js +0 -23
  117. package/dist/esm/api/pipelines-api.js +0 -23
  118. package/dist/esm/api/product-fields-api.js +0 -23
  119. package/dist/esm/api/products-api.js +0 -23
  120. package/dist/esm/api/project-templates-api.js +0 -23
  121. package/dist/esm/api/projects-api.js +0 -23
  122. package/dist/esm/api/recents-api.js +0 -23
  123. package/dist/esm/api/roles-api.js +0 -23
  124. package/dist/esm/api/stages-api.js +0 -23
  125. package/dist/esm/api/subscriptions-api.js +0 -23
  126. package/dist/esm/api/tasks-api.js +0 -23
  127. package/dist/esm/api/user-connections-api.js +0 -23
  128. package/dist/esm/api/user-settings-api.js +0 -23
  129. package/dist/esm/api/users-api.js +0 -23
  130. package/dist/esm/api/webhooks-api.js +0 -20
  131. package/dist/esm/base.js +26 -0
  132. package/dist/esm/common.d.ts +0 -1
  133. package/dist/esm/common.js +0 -1
  134. package/dist/esm/configuration.d.ts +1 -0
  135. package/dist/esm/configuration.js +8 -2
  136. package/docs/AddWebhookRequest.md +1 -1
  137. package/docs/BasicDeal.md +3 -0
  138. package/docs/CallLogObject.md +2 -1
  139. package/docs/DealParticipantsChangelog.md +12 -0
  140. package/docs/DealsApi.md +74 -8
  141. package/docs/FiltersApi.md +4 -1
  142. package/docs/GetDeal.md +1 -1
  143. package/docs/GetDealRelatedObjects.md +11 -0
  144. package/docs/GetDealsRelatedObjects.md +3 -3
  145. package/docs/ItemSearchApi.md +2 -2
  146. package/docs/LeadsApi.md +4 -1
  147. package/docs/MailboxApi.md +2 -2
  148. package/docs/MeetingsApi.md +118 -0
  149. package/docs/NewDeal.md +3 -0
  150. package/docs/OrganizationsApi.md +10 -4
  151. package/docs/ParticipantsChangelog.md +11 -0
  152. package/docs/ParticipantsChangelogItem.md +12 -0
  153. package/docs/PersonsApi.md +14 -5
  154. package/docs/PostDealParticipants.md +1 -1
  155. package/docs/PostDealParticipantsRelatedObjects.md +10 -0
  156. package/docs/ProductsApi.md +2 -2
  157. package/docs/RecentsApi.md +2 -2
  158. package/docs/ResponseCallLogObject.md +2 -1
  159. package/docs/UpdateDealRequest.md +3 -0
  160. package/docs/UserProviderLinkCreateRequest.md +12 -0
  161. package/docs/UserProviderLinkErrorResponse.md +10 -0
  162. package/docs/UserProviderLinkSuccessResponse.md +10 -0
  163. package/docs/UserProviderLinkSuccessResponseData.md +9 -0
  164. package/docs/UsersApi.md +2 -2
  165. package/migration.md +309 -0
  166. package/package.json +3 -3
  167. package/src/api/MeetingsApi.js +181 -0
  168. package/src/model/GetDealRelatedObjects.js +101 -0
  169. package/src/model/PostDealParticipantsRelatedObjects.js +90 -0
  170. package/src/model/UserProviderLinkCreateRequest.js +120 -0
  171. package/src/model/UserProviderLinkErrorResponse.js +90 -0
  172. package/src/model/UserProviderLinkSuccessResponse.js +90 -0
  173. package/src/model/UserProviderLinkSuccessResponseData.js +79 -0
  174. package/test/functional/access-token.test.js +5 -5
  175. package/test/functional/authorisation.test.js +5 -8
package/CHANGELOG.md CHANGED
@@ -8,6 +8,19 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [22.3.1-rc.4] - 2024-02-12
12
+
13
+ ## [22.3.1-rc.3] - 2024-01-08
14
+ - Add TypeScript Support
15
+
16
+ ## [22.5.0] - 2024-02-02
17
+ ### Added
18
+ - Added documentation for new endpoint `/deals/{id}/participantsChangelog`.
19
+
20
+ ## [22.4.0] - 2024-01-05
21
+ ### Added
22
+ - Added documentation for `/meetings/userProviderLinks` endpoints
23
+
11
24
  ## [22.3.1-rc.2] - 2023-12-22
12
25
 
13
26
  ## [22.3.1-rc.1] - 2023-12-22
@@ -592,10 +605,10 @@ structure
592
605
  * Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
593
606
  * Fixed typo in lead example response (`crrency` to `currency`)
594
607
 
595
- [Unreleased]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.2...HEAD
596
- [22.3.1-rc.2]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.1...v22.3.1-rc.2
597
- [22.3.1-rc.1]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.0...v22.3.1-rc.1
598
- [22.3.1-rc.0]: https://github.com/pipedrive/api-docs/compare/v22.3.0...v22.3.1-rc.0
608
+ [Unreleased]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.4...HEAD
609
+ [22.3.1-rc.4]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.3...v22.3.1-rc.4
610
+ [22.3.1-rc.3]: https://github.com/pipedrive/api-docs/compare/v22.4.0...v22.3.1-rc.3
611
+ [22.4.0]: https://github.com/pipedrive/api-docs/compare/v22.3.0...v22.4.0
599
612
  [22.3.0]: https://github.com/pipedrive/api-docs/compare/v22.2.0...v22.3.0
600
613
  [22.2.0]: https://github.com/pipedrive/api-docs/compare/v22.1.0...v22.2.0
601
614
  [22.1.0]: https://github.com/pipedrive/api-docs/compare/v22.0.2...v22.1.0
package/README.md CHANGED
@@ -27,7 +27,7 @@ import { Configuration, DealsApi } from "pipedrive";
27
27
 
28
28
  const app = express();
29
29
 
30
- const PORT = 1800;
30
+ const PORT = 3000;
31
31
 
32
32
  // Configure Client with API key authorization
33
33
  const apiConfig = new Configuration({
@@ -41,7 +41,7 @@ app.listen(PORT, () => {
41
41
  app.get("/", async (req, res) => {
42
42
  const dealsApi = new DealsApi(apiConfig);
43
43
  const response = await dealsApi.getDeals();
44
- const { data: deals } = response.data;
44
+ const { data: deals } = response;
45
45
 
46
46
  res.send(deals);
47
47
  });
@@ -68,7 +68,7 @@ import { OAuth2Configuration, Configuration } from 'pipedrive';
68
68
  const oauth2 = new OAuth2Configuration({
69
69
  clientId: "clientId", // OAuth 2 Client ID
70
70
  clientSecret: "clientSecret", // OAuth 2 Client Secret
71
- redirectUri: 'redirectUri'; // OAuth 2 Redirection endpoint or Callback Uri
71
+ redirectUri: 'redirectUri' // OAuth 2 Redirection endpoint or Callback Uri
72
72
  });
73
73
 
74
74
  const apiConfig = new Configuration({
@@ -183,9 +183,9 @@ It then redirects back to the base endpoint for calling endpoints from the SDK.
183
183
  ```typescript
184
184
 
185
185
  import express from "express";
186
- import cookieParse from "cookie-parser";
187
- import cookeSession from "cookie-session";
188
186
  import { Configuration, DealsApi, OAuth2Configuration } from "pipedrive";
187
+ import cookieParser from "cookie-parser";
188
+ import cookieSession from "cookie-session";
189
189
 
190
190
  const app = express();
191
191
 
@@ -195,26 +195,21 @@ app.use(cookieSession({
195
195
  keys: ["key1"]
196
196
  }));
197
197
 
198
- const PORT = 1800;
198
+ const PORT = 3000;
199
199
 
200
200
 
201
201
  const oauth2 = new OAuth2Configuration({
202
- clientId: "clientId", // OAuth 2 Client ID
203
- clientSecret: "clientSecret", // OAuth 2 Client Secret
204
- redirectUri: 'redirectUri'; // OAuth 2 Redirection endpoint or Callback Uri
205
- });
206
-
207
- const apiConfig = new Configuration({
208
- accessToken: oauth2.getAccessToken,
209
- basePath: oauth2.basePath,
202
+ clientId: "clientId", // OAuth 2 Client ID
203
+ clientSecret: "clientSecret", // OAuth 2 Client Secret
204
+ redirectUri: 'redirectUri' // OAuth 2 Redirection endpoint or Callback Uri
210
205
  });
211
206
 
212
-
213
207
  app.listen(PORT, () => {
214
- console.log(`Listening on port ${PORT}`);
208
+ console.log(`Listening on port ${PORT}`);
215
209
  });
216
210
 
217
211
  app.get('/', async (req, res) => {
212
+ try {
218
213
  // method will handle return null if token is not available in the session
219
214
  const token = oauth2.updateToken(req.session?.accessToken);
220
215
 
@@ -232,19 +227,29 @@ app.get('/', async (req, res) => {
232
227
  // token is already set in the session
233
228
  // now make API calls as required
234
229
  // client will automatically refresh the token when it expires and call the token update callback
235
- const api = new DealsApi(apiClient);
230
+ const dealsApi = new DealsApi(apiConfig)
231
+
236
232
  const response = await dealsApi.getDeals();
237
- const { data: deals } = response.data;
233
+ const { data: deals } = response;
238
234
 
239
- res.send(deals);
235
+ return res.send(deals);
236
+ } catch (error){
237
+ console.error(error)
238
+ return res.status(500).send(error)
239
+ }
240
240
  });
241
241
 
242
242
  app.get('/callback', async (req, res) => {
243
- const authCode = req.query.code;
244
- const newAccessToken = await oauth2.authorize(authCode);
245
-
246
- req.session.accessToken = newAccessToken;
247
- res.redirect("/");
243
+ try {
244
+ const authCode = req.query.code as string;
245
+ const newAccessToken = await oauth2.authorize(authCode);
246
+
247
+ req.session.accessToken = newAccessToken;
248
+ return res.redirect("/");
249
+ }catch (error) {
250
+ console.error(error)
251
+ return res.status(500).send(error)
252
+ }
248
253
  });
249
254
 
250
255
  ```
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -418,32 +415,12 @@ export const ActivitiesApiAxiosParamCreator = function (configuration?: Configur
418
415
  }
419
416
  };
420
417
 
418
+
421
419
  /**
422
420
  * ActivitiesApi - functional programming interface
423
421
  * @export
424
422
  */
425
423
  export const ActivitiesApiFp = function(configuration?: Configuration) {
426
-
427
- /**
428
- * Axios interceptor to add the SDK version as a User-Agent header
429
- * */
430
- globalAxios.interceptors.request.use(function (config) {
431
- const version = require("../../package.json").version;
432
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
433
- return config;
434
- });
435
-
436
- /**
437
- * Axios response interceptor to modify response structure
438
- */
439
- globalAxios.interceptors.response.use(function (response) {
440
- return response.hasOwnProperty('success') ? response : response.data;
441
- }, function (error) {
442
- if(error?.response?.data) {
443
- return Promise.reject(error.response.data);
444
- }
445
- return Promise.reject(error);
446
- });
447
424
  const localVarAxiosParamCreator = ActivitiesApiAxiosParamCreator(configuration)
448
425
  return {
449
426
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -72,32 +69,12 @@ export const ActivityFieldsApiAxiosParamCreator = function (configuration?: Conf
72
69
  }
73
70
  };
74
71
 
72
+
75
73
  /**
76
74
  * ActivityFieldsApi - functional programming interface
77
75
  * @export
78
76
  */
79
77
  export const ActivityFieldsApiFp = function(configuration?: Configuration) {
80
-
81
- /**
82
- * Axios interceptor to add the SDK version as a User-Agent header
83
- * */
84
- globalAxios.interceptors.request.use(function (config) {
85
- const version = require("../../package.json").version;
86
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
87
- return config;
88
- });
89
-
90
- /**
91
- * Axios response interceptor to modify response structure
92
- */
93
- globalAxios.interceptors.response.use(function (response) {
94
- return response.hasOwnProperty('success') ? response : response.data;
95
- }, function (error) {
96
- if(error?.response?.data) {
97
- return Promise.reject(error.response.data);
98
- }
99
- return Promise.reject(error);
100
- });
101
78
  const localVarAxiosParamCreator = ActivityFieldsApiAxiosParamCreator(configuration)
102
79
  return {
103
80
  /**
@@ -248,32 +248,12 @@ export const ActivityTypesApiAxiosParamCreator = function (configuration?: Confi
248
248
  }
249
249
  };
250
250
 
251
+
251
252
  /**
252
253
  * ActivityTypesApi - functional programming interface
253
254
  * @export
254
255
  */
255
256
  export const ActivityTypesApiFp = function(configuration?: Configuration) {
256
-
257
- /**
258
- * Axios interceptor to add the SDK version as a User-Agent header
259
- * */
260
- globalAxios.interceptors.request.use(function (config) {
261
- const version = require("../../package.json").version;
262
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
263
- return config;
264
- });
265
-
266
- /**
267
- * Axios response interceptor to modify response structure
268
- */
269
- globalAxios.interceptors.response.use(function (response) {
270
- return response.hasOwnProperty('success') ? response : response.data;
271
- }, function (error) {
272
- if(error?.response?.data) {
273
- return Promise.reject(error.response.data);
274
- }
275
- return Promise.reject(error);
276
- });
277
257
  const localVarAxiosParamCreator = ActivityTypesApiAxiosParamCreator(configuration)
278
258
  return {
279
259
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -72,32 +69,12 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
72
69
  }
73
70
  };
74
71
 
72
+
75
73
  /**
76
74
  * BillingApi - functional programming interface
77
75
  * @export
78
76
  */
79
77
  export const BillingApiFp = function(configuration?: Configuration) {
80
-
81
- /**
82
- * Axios interceptor to add the SDK version as a User-Agent header
83
- * */
84
- globalAxios.interceptors.request.use(function (config) {
85
- const version = require("../../package.json").version;
86
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
87
- return config;
88
- });
89
-
90
- /**
91
- * Axios response interceptor to modify response structure
92
- */
93
- globalAxios.interceptors.response.use(function (response) {
94
- return response.hasOwnProperty('success') ? response : response.data;
95
- }, function (error) {
96
- if(error?.response?.data) {
97
- return Promise.reject(error.response.data);
98
- }
99
- return Promise.reject(error);
100
- });
101
78
  const localVarAxiosParamCreator = BillingApiAxiosParamCreator(configuration)
102
79
  return {
103
80
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -275,32 +272,12 @@ export const CallLogsApiAxiosParamCreator = function (configuration?: Configurat
275
272
  }
276
273
  };
277
274
 
275
+
278
276
  /**
279
277
  * CallLogsApi - functional programming interface
280
278
  * @export
281
279
  */
282
280
  export const CallLogsApiFp = function(configuration?: Configuration) {
283
-
284
- /**
285
- * Axios interceptor to add the SDK version as a User-Agent header
286
- * */
287
- globalAxios.interceptors.request.use(function (config) {
288
- const version = require("../../package.json").version;
289
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
290
- return config;
291
- });
292
-
293
- /**
294
- * Axios response interceptor to modify response structure
295
- */
296
- globalAxios.interceptors.response.use(function (response) {
297
- return response.hasOwnProperty('success') ? response : response.data;
298
- }, function (error) {
299
- if(error?.response?.data) {
300
- return Promise.reject(error.response.data);
301
- }
302
- return Promise.reject(error);
303
- });
304
281
  const localVarAxiosParamCreator = CallLogsApiAxiosParamCreator(configuration)
305
282
  return {
306
283
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -221,32 +218,12 @@ export const ChannelsApiAxiosParamCreator = function (configuration?: Configurat
221
218
  }
222
219
  };
223
220
 
221
+
224
222
  /**
225
223
  * ChannelsApi - functional programming interface
226
224
  * @export
227
225
  */
228
226
  export const ChannelsApiFp = function(configuration?: Configuration) {
229
-
230
- /**
231
- * Axios interceptor to add the SDK version as a User-Agent header
232
- * */
233
- globalAxios.interceptors.request.use(function (config) {
234
- const version = require("../../package.json").version;
235
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
236
- return config;
237
- });
238
-
239
- /**
240
- * Axios response interceptor to modify response structure
241
- */
242
- globalAxios.interceptors.response.use(function (response) {
243
- return response.hasOwnProperty('success') ? response : response.data;
244
- }, function (error) {
245
- if(error?.response?.data) {
246
- return Promise.reject(error.response.data);
247
- }
248
- return Promise.reject(error);
249
- });
250
227
  const localVarAxiosParamCreator = ChannelsApiAxiosParamCreator(configuration)
251
228
  return {
252
229
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -77,32 +74,12 @@ export const CurrenciesApiAxiosParamCreator = function (configuration?: Configur
77
74
  }
78
75
  };
79
76
 
77
+
80
78
  /**
81
79
  * CurrenciesApi - functional programming interface
82
80
  * @export
83
81
  */
84
82
  export const CurrenciesApiFp = function(configuration?: Configuration) {
85
-
86
- /**
87
- * Axios interceptor to add the SDK version as a User-Agent header
88
- * */
89
- globalAxios.interceptors.request.use(function (config) {
90
- const version = require("../../package.json").version;
91
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
92
- return config;
93
- });
94
-
95
- /**
96
- * Axios response interceptor to modify response structure
97
- */
98
- globalAxios.interceptors.response.use(function (response) {
99
- return response.hasOwnProperty('success') ? response : response.data;
100
- }, function (error) {
101
- if(error?.response?.data) {
102
- return Promise.reject(error.response.data);
103
- }
104
- return Promise.reject(error);
105
- });
106
83
  const localVarAxiosParamCreator = CurrenciesApiAxiosParamCreator(configuration)
107
84
  return {
108
85
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -304,32 +301,12 @@ export const DealFieldsApiAxiosParamCreator = function (configuration?: Configur
304
301
  }
305
302
  };
306
303
 
304
+
307
305
  /**
308
306
  * DealFieldsApi - functional programming interface
309
307
  * @export
310
308
  */
311
309
  export const DealFieldsApiFp = function(configuration?: Configuration) {
312
-
313
- /**
314
- * Axios interceptor to add the SDK version as a User-Agent header
315
- * */
316
- globalAxios.interceptors.request.use(function (config) {
317
- const version = require("../../package.json").version;
318
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
319
- return config;
320
- });
321
-
322
- /**
323
- * Axios response interceptor to modify response structure
324
- */
325
- globalAxios.interceptors.response.use(function (response) {
326
- return response.hasOwnProperty('success') ? response : response.data;
327
- }, function (error) {
328
- if(error?.response?.data) {
329
- return Promise.reject(error.response.data);
330
- }
331
- return Promise.reject(error);
332
- });
333
310
  const localVarAxiosParamCreator = DealFieldsApiAxiosParamCreator(configuration)
334
311
  return {
335
312
  /**
package/api/deals-api.ts CHANGED
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -1571,32 +1568,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
1571
1568
  }
1572
1569
  };
1573
1570
 
1571
+
1574
1572
  /**
1575
1573
  * DealsApi - functional programming interface
1576
1574
  * @export
1577
1575
  */
1578
1576
  export const DealsApiFp = function(configuration?: Configuration) {
1579
-
1580
- /**
1581
- * Axios interceptor to add the SDK version as a User-Agent header
1582
- * */
1583
- globalAxios.interceptors.request.use(function (config) {
1584
- const version = require("../../package.json").version;
1585
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
1586
- return config;
1587
- });
1588
-
1589
- /**
1590
- * Axios response interceptor to modify response structure
1591
- */
1592
- globalAxios.interceptors.response.use(function (response) {
1593
- return response.hasOwnProperty('success') ? response : response.data;
1594
- }, function (error) {
1595
- if(error?.response?.data) {
1596
- return Promise.reject(error.response.data);
1597
- }
1598
- return Promise.reject(error);
1599
- });
1600
1577
  const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration)
1601
1578
  return {
1602
1579
  /**
package/api/files-api.ts CHANGED
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -500,32 +497,12 @@ export const FilesApiAxiosParamCreator = function (configuration?: Configuration
500
497
  }
501
498
  };
502
499
 
500
+
503
501
  /**
504
502
  * FilesApi - functional programming interface
505
503
  * @export
506
504
  */
507
505
  export const FilesApiFp = function(configuration?: Configuration) {
508
-
509
- /**
510
- * Axios interceptor to add the SDK version as a User-Agent header
511
- * */
512
- globalAxios.interceptors.request.use(function (config) {
513
- const version = require("../../package.json").version;
514
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
515
- return config;
516
- });
517
-
518
- /**
519
- * Axios response interceptor to modify response structure
520
- */
521
- globalAxios.interceptors.response.use(function (response) {
522
- return response.hasOwnProperty('success') ? response : response.data;
523
- }, function (error) {
524
- if(error?.response?.data) {
525
- return Promise.reject(error.response.data);
526
- }
527
- return Promise.reject(error);
528
- });
529
506
  const localVarAxiosParamCreator = FilesApiAxiosParamCreator(configuration)
530
507
  return {
531
508
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -338,32 +335,12 @@ export const FiltersApiAxiosParamCreator = function (configuration?: Configurati
338
335
  }
339
336
  };
340
337
 
338
+
341
339
  /**
342
340
  * FiltersApi - functional programming interface
343
341
  * @export
344
342
  */
345
343
  export const FiltersApiFp = function(configuration?: Configuration) {
346
-
347
- /**
348
- * Axios interceptor to add the SDK version as a User-Agent header
349
- * */
350
- globalAxios.interceptors.request.use(function (config) {
351
- const version = require("../../package.json").version;
352
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
353
- return config;
354
- });
355
-
356
- /**
357
- * Axios response interceptor to modify response structure
358
- */
359
- globalAxios.interceptors.response.use(function (response) {
360
- return response.hasOwnProperty('success') ? response : response.data;
361
- }, function (error) {
362
- if(error?.response?.data) {
363
- return Promise.reject(error.response.data);
364
- }
365
- return Promise.reject(error);
366
- });
367
344
  const localVarAxiosParamCreator = FiltersApiAxiosParamCreator(configuration)
368
345
  return {
369
346
  /**
package/api/goals-api.ts CHANGED
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -337,32 +334,12 @@ export const GoalsApiAxiosParamCreator = function (configuration?: Configuration
337
334
  }
338
335
  };
339
336
 
337
+
340
338
  /**
341
339
  * GoalsApi - functional programming interface
342
340
  * @export
343
341
  */
344
342
  export const GoalsApiFp = function(configuration?: Configuration) {
345
-
346
- /**
347
- * Axios interceptor to add the SDK version as a User-Agent header
348
- * */
349
- globalAxios.interceptors.request.use(function (config) {
350
- const version = require("../../package.json").version;
351
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
352
- return config;
353
- });
354
-
355
- /**
356
- * Axios response interceptor to modify response structure
357
- */
358
- globalAxios.interceptors.response.use(function (response) {
359
- return response.hasOwnProperty('success') ? response : response.data;
360
- }, function (error) {
361
- if(error?.response?.data) {
362
- return Promise.reject(error.response.data);
363
- }
364
- return Promise.reject(error);
365
- });
366
343
  const localVarAxiosParamCreator = GoalsApiAxiosParamCreator(configuration)
367
344
  return {
368
345
  /**