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.
- package/dist/esm/versions/v1/api/activities-api.d.ts +40 -40
- package/dist/esm/versions/v1/api/activities-api.js +47 -47
- package/dist/esm/versions/v1/api/activity-fields-api.js +1 -1
- package/dist/esm/versions/v1/api/activity-types-api.js +5 -5
- package/dist/esm/versions/v1/api/billing-api.js +1 -1
- package/dist/esm/versions/v1/api/call-logs-api.js +5 -5
- package/dist/esm/versions/v1/api/channels-api.js +4 -4
- package/dist/esm/versions/v1/api/currencies-api.js +1 -1
- package/dist/esm/versions/v1/api/deal-fields-api.js +6 -6
- package/dist/esm/versions/v1/api/deals-api.d.ts +410 -88
- package/dist/esm/versions/v1/api/deals-api.js +447 -118
- package/dist/esm/versions/v1/api/files-api.js +8 -8
- package/dist/esm/versions/v1/api/filters-api.js +7 -7
- package/dist/esm/versions/v1/api/goals-api.js +5 -5
- package/dist/esm/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/esm/versions/v1/api/item-search-api.js +10 -10
- package/dist/esm/versions/v1/api/lead-labels-api.js +4 -4
- package/dist/esm/versions/v1/api/lead-sources-api.js +1 -1
- package/dist/esm/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/esm/versions/v1/api/leads-api.js +114 -21
- package/dist/esm/versions/v1/api/legacy-teams-api.js +8 -8
- package/dist/esm/versions/v1/api/mailbox-api.js +6 -6
- package/dist/esm/versions/v1/api/meetings-api.js +2 -2
- package/dist/esm/versions/v1/api/note-fields-api.js +1 -1
- package/dist/esm/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/esm/versions/v1/api/notes-api.js +25 -15
- package/dist/esm/versions/v1/api/organization-fields-api.js +6 -6
- package/dist/esm/versions/v1/api/organization-relationships-api.js +5 -5
- package/dist/esm/versions/v1/api/organizations-api.d.ts +68 -68
- package/dist/esm/versions/v1/api/organizations-api.js +88 -88
- package/dist/esm/versions/v1/api/permission-sets-api.js +3 -3
- package/dist/esm/versions/v1/api/person-fields-api.js +6 -6
- package/dist/esm/versions/v1/api/persons-api.d.ts +56 -56
- package/dist/esm/versions/v1/api/persons-api.js +78 -78
- package/dist/esm/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/esm/versions/v1/api/pipelines-api.js +36 -36
- package/dist/esm/versions/v1/api/product-fields-api.js +6 -6
- package/dist/esm/versions/v1/api/products-api.d.ts +24 -24
- package/dist/esm/versions/v1/api/products-api.js +36 -36
- package/dist/esm/versions/v1/api/project-templates-api.js +4 -4
- package/dist/esm/versions/v1/api/projects-api.js +14 -14
- package/dist/esm/versions/v1/api/recents-api.js +1 -1
- package/dist/esm/versions/v1/api/roles-api.js +12 -12
- package/dist/esm/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/esm/versions/v1/api/stages-api.js +43 -43
- package/dist/esm/versions/v1/api/subscriptions-api.js +9 -9
- package/dist/esm/versions/v1/api/tasks-api.js +5 -5
- package/dist/esm/versions/v1/api/user-connections-api.js +1 -1
- package/dist/esm/versions/v1/api/user-settings-api.js +1 -1
- package/dist/esm/versions/v1/api/users-api.js +10 -10
- package/dist/esm/versions/v1/api/webhooks-api.js +3 -3
- package/dist/esm/versions/v1/base.d.ts +2 -3
- package/dist/esm/versions/v1/configuration.d.ts +2 -2
- package/dist/esm/versions/v1/models/add-note-request-all-of.d.ts +9 -4
- package/dist/esm/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/esm/versions/v1/models/add-note-request-all-of1.js +4 -0
- package/dist/esm/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/esm/versions/v1/models/index.d.ts +1 -0
- package/dist/esm/versions/v1/models/index.js +1 -0
- package/dist/esm/versions/v1/models/note-project.d.ts +23 -0
- package/dist/esm/versions/v1/models/note-project.js +14 -0
- package/dist/esm/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/esm/versions/v1/models/note.d.ts +16 -0
- package/dist/esm/versions/v2/api/activities-api.d.ts +15 -7
- package/dist/esm/versions/v2/api/activities-api.js +17 -12
- package/dist/esm/versions/v2/api/beta-api.d.ts +212 -0
- package/dist/esm/versions/v2/api/beta-api.js +290 -4
- package/dist/esm/versions/v2/api/deals-api.d.ts +272 -4
- package/dist/esm/versions/v2/api/deals-api.js +311 -27
- package/dist/esm/versions/v2/api/item-search-api.js +2 -2
- package/dist/esm/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/esm/versions/v2/api/leads-api.js +147 -2
- package/dist/esm/versions/v2/api/organizations-api.js +10 -10
- package/dist/esm/versions/v2/api/persons-api.d.ts +8 -8
- package/dist/esm/versions/v2/api/persons-api.js +18 -18
- package/dist/esm/versions/v2/api/pipelines-api.js +5 -5
- package/dist/esm/versions/v2/api/products-api.js +15 -15
- package/dist/esm/versions/v2/api/stages-api.js +5 -5
- package/dist/esm/versions/v2/api/users-api.js +1 -1
- package/dist/esm/versions/v2/base.d.ts +2 -3
- package/dist/esm/versions/v2/configuration.d.ts +2 -2
- package/dist/esm/versions/v2/models/activity-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/activity-item1.d.ts +5 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.js +14 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.js +14 -0
- package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.js +14 -0
- package/dist/esm/versions/v2/models/add-person-request.d.ts +12 -0
- package/dist/esm/versions/v2/models/add-person-request.js +6 -1
- package/dist/esm/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
- package/dist/esm/versions/v2/models/convert-lead-to-deal-request.js +14 -0
- package/dist/esm/versions/v2/models/deal-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/deal-item1.d.ts +5 -0
- package/dist/esm/versions/v2/models/get-convert-response.d.ts +43 -0
- package/dist/esm/versions/v2/models/get-convert-response.js +14 -0
- package/dist/esm/versions/v2/models/get-convert-response1-data.d.ts +46 -0
- package/dist/esm/versions/v2/models/get-convert-response1-data.js +20 -0
- package/dist/esm/versions/v2/models/get-convert-response1.d.ts +34 -0
- package/dist/esm/versions/v2/models/get-convert-response1.js +14 -0
- package/dist/esm/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/esm/versions/v2/models/index.d.ts +7 -0
- package/dist/esm/versions/v2/models/index.js +7 -0
- package/dist/esm/versions/v2/models/update-person-request.d.ts +12 -0
- package/dist/esm/versions/v2/models/update-person-request.js +6 -1
- package/dist/versions/v1/api/activities-api.d.ts +40 -40
- package/dist/versions/v1/api/activities-api.js +47 -47
- package/dist/versions/v1/api/activity-fields-api.js +1 -1
- package/dist/versions/v1/api/activity-types-api.js +5 -5
- package/dist/versions/v1/api/billing-api.js +1 -1
- package/dist/versions/v1/api/call-logs-api.js +5 -5
- package/dist/versions/v1/api/channels-api.js +4 -4
- package/dist/versions/v1/api/currencies-api.js +1 -1
- package/dist/versions/v1/api/deal-fields-api.js +6 -6
- package/dist/versions/v1/api/deals-api.d.ts +410 -88
- package/dist/versions/v1/api/deals-api.js +447 -118
- package/dist/versions/v1/api/files-api.js +8 -8
- package/dist/versions/v1/api/filters-api.js +7 -7
- package/dist/versions/v1/api/goals-api.js +5 -5
- package/dist/versions/v1/api/item-search-api.d.ts +8 -8
- package/dist/versions/v1/api/item-search-api.js +10 -10
- package/dist/versions/v1/api/lead-labels-api.js +4 -4
- package/dist/versions/v1/api/lead-sources-api.js +1 -1
- package/dist/versions/v1/api/leads-api.d.ts +100 -14
- package/dist/versions/v1/api/leads-api.js +114 -21
- package/dist/versions/v1/api/legacy-teams-api.js +8 -8
- package/dist/versions/v1/api/mailbox-api.js +6 -6
- package/dist/versions/v1/api/meetings-api.js +2 -2
- package/dist/versions/v1/api/note-fields-api.js +1 -1
- package/dist/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/versions/v1/api/notes-api.js +25 -15
- package/dist/versions/v1/api/organization-fields-api.js +6 -6
- package/dist/versions/v1/api/organization-relationships-api.js +5 -5
- package/dist/versions/v1/api/organizations-api.d.ts +68 -68
- package/dist/versions/v1/api/organizations-api.js +88 -88
- package/dist/versions/v1/api/permission-sets-api.js +3 -3
- package/dist/versions/v1/api/person-fields-api.js +6 -6
- package/dist/versions/v1/api/persons-api.d.ts +56 -56
- package/dist/versions/v1/api/persons-api.js +78 -78
- package/dist/versions/v1/api/pipelines-api.d.ts +28 -28
- package/dist/versions/v1/api/pipelines-api.js +36 -36
- package/dist/versions/v1/api/product-fields-api.js +6 -6
- package/dist/versions/v1/api/products-api.d.ts +24 -24
- package/dist/versions/v1/api/products-api.js +36 -36
- package/dist/versions/v1/api/project-templates-api.js +4 -4
- package/dist/versions/v1/api/projects-api.js +14 -14
- package/dist/versions/v1/api/recents-api.js +1 -1
- package/dist/versions/v1/api/roles-api.js +12 -12
- package/dist/versions/v1/api/stages-api.d.ts +36 -36
- package/dist/versions/v1/api/stages-api.js +43 -43
- package/dist/versions/v1/api/subscriptions-api.js +9 -9
- package/dist/versions/v1/api/tasks-api.js +5 -5
- package/dist/versions/v1/api/user-connections-api.js +1 -1
- package/dist/versions/v1/api/user-settings-api.js +1 -1
- package/dist/versions/v1/api/users-api.js +10 -10
- package/dist/versions/v1/api/webhooks-api.js +3 -3
- package/dist/versions/v1/base.d.ts +2 -3
- package/dist/versions/v1/configuration.d.ts +2 -2
- package/dist/versions/v1/models/add-note-request-all-of.d.ts +9 -4
- package/dist/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/versions/v1/models/add-note-request-all-of1.js +5 -1
- package/dist/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/versions/v1/models/index.d.ts +1 -0
- package/dist/versions/v1/models/index.js +1 -0
- package/dist/versions/v1/models/note-project.d.ts +23 -0
- package/dist/versions/v1/models/note-project.js +15 -0
- package/dist/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/versions/v1/models/note.d.ts +16 -0
- package/dist/versions/v2/api/activities-api.d.ts +15 -7
- package/dist/versions/v2/api/activities-api.js +17 -12
- package/dist/versions/v2/api/beta-api.d.ts +212 -0
- package/dist/versions/v2/api/beta-api.js +290 -4
- package/dist/versions/v2/api/deals-api.d.ts +272 -4
- package/dist/versions/v2/api/deals-api.js +311 -27
- package/dist/versions/v2/api/item-search-api.js +2 -2
- package/dist/versions/v2/api/leads-api.d.ts +111 -0
- package/dist/versions/v2/api/leads-api.js +146 -1
- package/dist/versions/v2/api/organizations-api.js +10 -10
- package/dist/versions/v2/api/persons-api.d.ts +8 -8
- package/dist/versions/v2/api/persons-api.js +18 -18
- package/dist/versions/v2/api/pipelines-api.js +5 -5
- package/dist/versions/v2/api/products-api.js +15 -15
- package/dist/versions/v2/api/stages-api.js +5 -5
- package/dist/versions/v2/api/users-api.js +1 -1
- package/dist/versions/v2/base.d.ts +2 -3
- package/dist/versions/v2/configuration.d.ts +2 -2
- package/dist/versions/v2/models/activity-item.d.ts +5 -0
- package/dist/versions/v2/models/activity-item1.d.ts +5 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.js +15 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
- package/dist/versions/v2/models/add-convert-deal-to-lead-response.js +15 -0
- package/dist/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
- package/dist/versions/v2/models/add-convert-lead-to-deal-response.js +15 -0
- package/dist/versions/v2/models/add-person-request.d.ts +12 -0
- package/dist/versions/v2/models/add-person-request.js +7 -0
- package/dist/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
- package/dist/versions/v2/models/convert-lead-to-deal-request.js +15 -0
- package/dist/versions/v2/models/deal-item.d.ts +5 -0
- package/dist/versions/v2/models/deal-item1.d.ts +5 -0
- package/dist/versions/v2/models/get-convert-response.d.ts +43 -0
- package/dist/versions/v2/models/get-convert-response.js +15 -0
- package/dist/versions/v2/models/get-convert-response1-data.d.ts +46 -0
- package/dist/versions/v2/models/get-convert-response1-data.js +23 -0
- package/dist/versions/v2/models/get-convert-response1.d.ts +34 -0
- package/dist/versions/v2/models/get-convert-response1.js +15 -0
- package/dist/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
- package/dist/versions/v2/models/index.d.ts +7 -0
- package/dist/versions/v2/models/index.js +7 -0
- package/dist/versions/v2/models/update-person-request.d.ts +12 -0
- package/dist/versions/v2/models/update-person-request.js +7 -0
- package/package.json +1 -1
@@ -51,7 +51,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
51
51
|
const localVarHeaderParameter = {};
|
52
52
|
const localVarQueryParameter = {};
|
53
53
|
// authentication api_key required
|
54
|
-
yield setApiKeyToObject(
|
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", "contacts:full"], configuration);
|
@@ -88,7 +88,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
88
88
|
const localVarHeaderParameter = {};
|
89
89
|
const localVarQueryParameter = {};
|
90
90
|
// authentication api_key required
|
91
|
-
yield setApiKeyToObject(
|
91
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
92
92
|
// authentication oauth2 required
|
93
93
|
// oauth required
|
94
94
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration);
|
@@ -128,7 +128,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
128
128
|
const localVarHeaderParameter = {};
|
129
129
|
const localVarQueryParameter = {};
|
130
130
|
// authentication api_key required
|
131
|
-
yield setApiKeyToObject(
|
131
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
132
132
|
// authentication oauth2 required
|
133
133
|
// oauth required
|
134
134
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration);
|
@@ -162,7 +162,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
162
162
|
const localVarHeaderParameter = {};
|
163
163
|
const localVarQueryParameter = {};
|
164
164
|
// authentication api_key required
|
165
|
-
yield setApiKeyToObject(
|
165
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
166
166
|
// authentication oauth2 required
|
167
167
|
// oauth required
|
168
168
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration);
|
@@ -200,7 +200,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
200
200
|
const localVarHeaderParameter = {};
|
201
201
|
const localVarQueryParameter = {};
|
202
202
|
// authentication api_key required
|
203
|
-
yield setApiKeyToObject(
|
203
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
204
204
|
// authentication oauth2 required
|
205
205
|
// oauth required
|
206
206
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "contacts:read", "contacts:full"], configuration);
|
@@ -234,7 +234,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
234
234
|
const localVarHeaderParameter = {};
|
235
235
|
const localVarQueryParameter = {};
|
236
236
|
// authentication api_key required
|
237
|
-
yield setApiKeyToObject(
|
237
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
238
238
|
// authentication oauth2 required
|
239
239
|
// oauth required
|
240
240
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "contacts:read", "contacts:full"], configuration);
|
@@ -270,7 +270,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
270
270
|
const localVarHeaderParameter = {};
|
271
271
|
const localVarQueryParameter = {};
|
272
272
|
// authentication api_key required
|
273
|
-
yield setApiKeyToObject(
|
273
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
274
274
|
// authentication oauth2 required
|
275
275
|
// oauth required
|
276
276
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "contacts:read", "contacts:full"], configuration);
|
@@ -296,6 +296,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
296
296
|
* @param {number} [deal_id] The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned.
|
297
297
|
* @param {number} [person_id] The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned.
|
298
298
|
* @param {number} [org_id] The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned.
|
299
|
+
* @param {number} [project_id] The ID of the project which notes to fetch. If omitted, notes about all projects will be returned.
|
299
300
|
* @param {number} [start] Pagination start
|
300
301
|
* @param {number} [limit] Items shown per page
|
301
302
|
* @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`.
|
@@ -305,10 +306,11 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
305
306
|
* @param {0 | 1} [pinned_to_deal_flag] If set, the results are filtered by note to deal pinning state
|
306
307
|
* @param {0 | 1} [pinned_to_organization_flag] If set, the results are filtered by note to organization pinning state
|
307
308
|
* @param {0 | 1} [pinned_to_person_flag] If set, the results are filtered by note to person pinning state
|
309
|
+
* @param {0 | 1} [pinned_to_project_flag] If set, the results are filtered by note to project pinning state
|
308
310
|
|
309
311
|
* @throws {RequiredError}
|
310
312
|
*/
|
311
|
-
getNotes: (user_id, lead_id, deal_id, person_id, org_id, start, limit, sort, start_date, end_date, pinned_to_lead_flag, pinned_to_deal_flag, pinned_to_organization_flag, pinned_to_person_flag) => __awaiter(this, void 0, void 0, function* () {
|
313
|
+
getNotes: (user_id, lead_id, deal_id, person_id, org_id, project_id, start, limit, sort, start_date, end_date, pinned_to_lead_flag, pinned_to_deal_flag, pinned_to_organization_flag, pinned_to_person_flag, pinned_to_project_flag) => __awaiter(this, void 0, void 0, function* () {
|
312
314
|
const localVarPath = `/notes`;
|
313
315
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
314
316
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -320,7 +322,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
320
322
|
const localVarHeaderParameter = {};
|
321
323
|
const localVarQueryParameter = {};
|
322
324
|
// authentication api_key required
|
323
|
-
yield setApiKeyToObject(
|
325
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
324
326
|
// authentication oauth2 required
|
325
327
|
// oauth required
|
326
328
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "contacts:read", "contacts:full"], configuration);
|
@@ -339,6 +341,9 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
339
341
|
if (org_id !== undefined) {
|
340
342
|
localVarQueryParameter['org_id'] = org_id;
|
341
343
|
}
|
344
|
+
if (project_id !== undefined) {
|
345
|
+
localVarQueryParameter['project_id'] = project_id;
|
346
|
+
}
|
342
347
|
if (start !== undefined) {
|
343
348
|
localVarQueryParameter['start'] = start;
|
344
349
|
}
|
@@ -370,6 +375,9 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
370
375
|
if (pinned_to_person_flag !== undefined) {
|
371
376
|
localVarQueryParameter['pinned_to_person_flag'] = pinned_to_person_flag;
|
372
377
|
}
|
378
|
+
if (pinned_to_project_flag !== undefined) {
|
379
|
+
localVarQueryParameter['pinned_to_project_flag'] = pinned_to_project_flag;
|
380
|
+
}
|
373
381
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
374
382
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
375
383
|
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
@@ -405,7 +413,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
405
413
|
const localVarHeaderParameter = {};
|
406
414
|
const localVarQueryParameter = {};
|
407
415
|
// authentication api_key required
|
408
|
-
yield setApiKeyToObject(
|
416
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
409
417
|
// authentication oauth2 required
|
410
418
|
// oauth required
|
411
419
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration);
|
@@ -442,7 +450,7 @@ export const NotesApiAxiosParamCreator = function (configuration) {
|
|
442
450
|
const localVarHeaderParameter = {};
|
443
451
|
const localVarQueryParameter = {};
|
444
452
|
// authentication api_key required
|
445
|
-
yield setApiKeyToObject(
|
453
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
446
454
|
// authentication oauth2 required
|
447
455
|
// oauth required
|
448
456
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration);
|
@@ -569,6 +577,7 @@ export const NotesApiFp = function (configuration) {
|
|
569
577
|
* @param {number} [deal_id] The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned.
|
570
578
|
* @param {number} [person_id] The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned.
|
571
579
|
* @param {number} [org_id] The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned.
|
580
|
+
* @param {number} [project_id] The ID of the project which notes to fetch. If omitted, notes about all projects will be returned.
|
572
581
|
* @param {number} [start] Pagination start
|
573
582
|
* @param {number} [limit] Items shown per page
|
574
583
|
* @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`.
|
@@ -578,12 +587,13 @@ export const NotesApiFp = function (configuration) {
|
|
578
587
|
* @param {0 | 1} [pinned_to_deal_flag] If set, the results are filtered by note to deal pinning state
|
579
588
|
* @param {0 | 1} [pinned_to_organization_flag] If set, the results are filtered by note to organization pinning state
|
580
589
|
* @param {0 | 1} [pinned_to_person_flag] If set, the results are filtered by note to person pinning state
|
590
|
+
* @param {0 | 1} [pinned_to_project_flag] If set, the results are filtered by note to project pinning state
|
581
591
|
|
582
592
|
* @throws {RequiredError}
|
583
593
|
*/
|
584
|
-
getNotes(user_id, lead_id, deal_id, person_id, org_id, start, limit, sort, start_date, end_date, pinned_to_lead_flag, pinned_to_deal_flag, pinned_to_organization_flag, pinned_to_person_flag) {
|
594
|
+
getNotes(user_id, lead_id, deal_id, person_id, org_id, project_id, start, limit, sort, start_date, end_date, pinned_to_lead_flag, pinned_to_deal_flag, pinned_to_organization_flag, pinned_to_person_flag, pinned_to_project_flag) {
|
585
595
|
return __awaiter(this, void 0, void 0, function* () {
|
586
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNotes(user_id, lead_id, deal_id, person_id, org_id, start, limit, sort, start_date, end_date, pinned_to_lead_flag, pinned_to_deal_flag, pinned_to_organization_flag, pinned_to_person_flag);
|
596
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNotes(user_id, lead_id, deal_id, person_id, org_id, project_id, start, limit, sort, start_date, end_date, pinned_to_lead_flag, pinned_to_deal_flag, pinned_to_organization_flag, pinned_to_person_flag, pinned_to_project_flag);
|
587
597
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
588
598
|
});
|
589
599
|
},
|
@@ -703,7 +713,7 @@ export const NotesApiFactory = function (configuration, basePath, axios) {
|
|
703
713
|
* @throws {RequiredError}
|
704
714
|
*/
|
705
715
|
getNotes(requestParameters = {}) {
|
706
|
-
return localVarFp.getNotes(requestParameters.user_id, requestParameters.lead_id, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.start_date, requestParameters.end_date, requestParameters.pinned_to_lead_flag, requestParameters.pinned_to_deal_flag, requestParameters.pinned_to_organization_flag, requestParameters.pinned_to_person_flag).then((request) => request(axios, basePath));
|
716
|
+
return localVarFp.getNotes(requestParameters.user_id, requestParameters.lead_id, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.project_id, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.start_date, requestParameters.end_date, requestParameters.pinned_to_lead_flag, requestParameters.pinned_to_deal_flag, requestParameters.pinned_to_organization_flag, requestParameters.pinned_to_person_flag, requestParameters.pinned_to_project_flag).then((request) => request(axios, basePath));
|
707
717
|
},
|
708
718
|
/**
|
709
719
|
* Updates a comment related to a note.
|
@@ -820,7 +830,7 @@ export class NotesApi extends BaseAPI {
|
|
820
830
|
* @memberof NotesApi
|
821
831
|
*/
|
822
832
|
getNotes(requestParameters = {}) {
|
823
|
-
return NotesApiFp(this.configuration).getNotes(requestParameters.user_id, requestParameters.lead_id, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.start_date, requestParameters.end_date, requestParameters.pinned_to_lead_flag, requestParameters.pinned_to_deal_flag, requestParameters.pinned_to_organization_flag, requestParameters.pinned_to_person_flag).then((request) => request(this.axios, this.basePath));
|
833
|
+
return NotesApiFp(this.configuration).getNotes(requestParameters.user_id, requestParameters.lead_id, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.project_id, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.start_date, requestParameters.end_date, requestParameters.pinned_to_lead_flag, requestParameters.pinned_to_deal_flag, requestParameters.pinned_to_organization_flag, requestParameters.pinned_to_person_flag, requestParameters.pinned_to_project_flag).then((request) => request(this.axios, this.basePath));
|
824
834
|
}
|
825
835
|
/**
|
826
836
|
* Updates a comment related to a note.
|
@@ -51,7 +51,7 @@ export const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
51
51
|
const localVarHeaderParameter = {};
|
52
52
|
const localVarQueryParameter = {};
|
53
53
|
// authentication api_key required
|
54
|
-
yield setApiKeyToObject(
|
54
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
55
55
|
// authentication oauth2 required
|
56
56
|
// oauth required
|
57
57
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
|
@@ -87,7 +87,7 @@ export const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
87
87
|
const localVarHeaderParameter = {};
|
88
88
|
const localVarQueryParameter = {};
|
89
89
|
// authentication api_key required
|
90
|
-
yield setApiKeyToObject(
|
90
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
91
91
|
// authentication oauth2 required
|
92
92
|
// oauth required
|
93
93
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
|
@@ -120,7 +120,7 @@ export const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
120
120
|
const localVarHeaderParameter = {};
|
121
121
|
const localVarQueryParameter = {};
|
122
122
|
// authentication api_key required
|
123
|
-
yield setApiKeyToObject(
|
123
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
124
124
|
// authentication oauth2 required
|
125
125
|
// oauth required
|
126
126
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
|
@@ -157,7 +157,7 @@ export const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
157
157
|
const localVarHeaderParameter = {};
|
158
158
|
const localVarQueryParameter = {};
|
159
159
|
// authentication api_key required
|
160
|
-
yield setApiKeyToObject(
|
160
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
161
161
|
// authentication oauth2 required
|
162
162
|
// oauth required
|
163
163
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "admin"], configuration);
|
@@ -189,7 +189,7 @@ export const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
189
189
|
const localVarHeaderParameter = {};
|
190
190
|
const localVarQueryParameter = {};
|
191
191
|
// authentication api_key required
|
192
|
-
yield setApiKeyToObject(
|
192
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
193
193
|
// authentication oauth2 required
|
194
194
|
// oauth required
|
195
195
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "admin"], configuration);
|
@@ -230,7 +230,7 @@ export const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
|
|
230
230
|
const localVarHeaderParameter = {};
|
231
231
|
const localVarQueryParameter = {};
|
232
232
|
// authentication api_key required
|
233
|
-
yield setApiKeyToObject(
|
233
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
234
234
|
// authentication oauth2 required
|
235
235
|
// oauth required
|
236
236
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
|
@@ -51,7 +51,7 @@ export const OrganizationRelationshipsApiAxiosParamCreator = function (configura
|
|
51
51
|
const localVarHeaderParameter = {};
|
52
52
|
const localVarQueryParameter = {};
|
53
53
|
// authentication api_key required
|
54
|
-
yield setApiKeyToObject(
|
54
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
55
55
|
// authentication oauth2 required
|
56
56
|
// oauth required
|
57
57
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
@@ -87,7 +87,7 @@ export const OrganizationRelationshipsApiAxiosParamCreator = function (configura
|
|
87
87
|
const localVarHeaderParameter = {};
|
88
88
|
const localVarQueryParameter = {};
|
89
89
|
// authentication api_key required
|
90
|
-
yield setApiKeyToObject(
|
90
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
91
91
|
// authentication oauth2 required
|
92
92
|
// oauth required
|
93
93
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|
@@ -122,7 +122,7 @@ export const OrganizationRelationshipsApiAxiosParamCreator = function (configura
|
|
122
122
|
const localVarHeaderParameter = {};
|
123
123
|
const localVarQueryParameter = {};
|
124
124
|
// authentication api_key required
|
125
|
-
yield setApiKeyToObject(
|
125
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
126
126
|
// authentication oauth2 required
|
127
127
|
// oauth required
|
128
128
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
@@ -158,7 +158,7 @@ export const OrganizationRelationshipsApiAxiosParamCreator = function (configura
|
|
158
158
|
const localVarHeaderParameter = {};
|
159
159
|
const localVarQueryParameter = {};
|
160
160
|
// authentication api_key required
|
161
|
-
yield setApiKeyToObject(
|
161
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
162
162
|
// authentication oauth2 required
|
163
163
|
// oauth required
|
164
164
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
|
@@ -196,7 +196,7 @@ export const OrganizationRelationshipsApiAxiosParamCreator = function (configura
|
|
196
196
|
const localVarHeaderParameter = {};
|
197
197
|
const localVarQueryParameter = {};
|
198
198
|
// authentication api_key required
|
199
|
-
yield setApiKeyToObject(
|
199
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
200
200
|
// authentication oauth2 required
|
201
201
|
// oauth required
|
202
202
|
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
|