pipedrive 34.0.1 → 35.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/deal-fields-api.d.ts +6 -6
- package/dist/esm/versions/v1/api/deal-fields-api.js +5 -5
- package/dist/esm/versions/v1/api/deals-api.d.ts +6 -6
- package/dist/esm/versions/v1/api/deals-api.js +5 -5
- package/dist/esm/versions/v1/api/filters-api.d.ts +6 -6
- package/dist/esm/versions/v1/api/filters-api.js +5 -5
- package/dist/esm/versions/v1/api/leads-api.d.ts +10 -10
- package/dist/esm/versions/v1/api/leads-api.js +9 -9
- package/dist/esm/versions/v1/api/organization-fields-api.d.ts +6 -6
- package/dist/esm/versions/v1/api/organization-fields-api.js +5 -5
- package/dist/esm/versions/v1/api/organizations-api.d.ts +6 -6
- package/dist/esm/versions/v1/api/organizations-api.js +5 -5
- package/dist/esm/versions/v1/api/person-fields-api.d.ts +6 -6
- package/dist/esm/versions/v1/api/person-fields-api.js +5 -5
- package/dist/esm/versions/v1/api/persons-api.d.ts +6 -6
- package/dist/esm/versions/v1/api/persons-api.js +5 -5
- package/dist/esm/versions/v1/api/product-fields-api.d.ts +6 -6
- package/dist/esm/versions/v1/api/product-fields-api.js +5 -5
- package/dist/esm/versions/v2/api/beta-api.d.ts +6 -6
- package/dist/esm/versions/v2/api/beta-api.js +5 -5
- package/dist/esm/versions/v2/api/deal-products-api.d.ts +6 -6
- package/dist/esm/versions/v2/api/deal-products-api.js +4 -4
- package/dist/esm/versions/v2/api/deals-api.d.ts +26 -26
- package/dist/esm/versions/v2/api/deals-api.js +20 -20
- package/dist/esm/versions/v2/api/item-search-api.d.ts +14 -14
- package/dist/esm/versions/v2/api/item-search-api.js +13 -13
- package/dist/esm/versions/v2/api/leads-api.d.ts +10 -10
- package/dist/esm/versions/v2/api/leads-api.js +9 -9
- package/dist/esm/versions/v2/api/organizations-api.d.ts +6 -6
- package/dist/esm/versions/v2/api/organizations-api.js +4 -4
- package/dist/esm/versions/v2/api/persons-api.d.ts +10 -10
- package/dist/esm/versions/v2/api/persons-api.js +8 -8
- package/dist/esm/versions/v2/api/products-api.d.ts +10 -10
- package/dist/esm/versions/v2/api/products-api.js +8 -8
- package/dist/esm/versions/v2/api/projects-api.d.ts +6 -6
- package/dist/esm/versions/v2/api/projects-api.js +5 -5
- package/dist/versions/v1/api/deal-fields-api.d.ts +6 -6
- package/dist/versions/v1/api/deal-fields-api.js +4 -4
- package/dist/versions/v1/api/deals-api.d.ts +6 -6
- package/dist/versions/v1/api/deals-api.js +4 -4
- package/dist/versions/v1/api/filters-api.d.ts +6 -6
- package/dist/versions/v1/api/filters-api.js +4 -4
- package/dist/versions/v1/api/leads-api.d.ts +10 -10
- package/dist/versions/v1/api/leads-api.js +8 -8
- package/dist/versions/v1/api/organization-fields-api.d.ts +6 -6
- package/dist/versions/v1/api/organization-fields-api.js +4 -4
- package/dist/versions/v1/api/organizations-api.d.ts +6 -6
- package/dist/versions/v1/api/organizations-api.js +4 -4
- package/dist/versions/v1/api/person-fields-api.d.ts +6 -6
- package/dist/versions/v1/api/person-fields-api.js +4 -4
- package/dist/versions/v1/api/persons-api.d.ts +6 -6
- package/dist/versions/v1/api/persons-api.js +4 -4
- package/dist/versions/v1/api/product-fields-api.d.ts +6 -6
- package/dist/versions/v1/api/product-fields-api.js +4 -4
- package/dist/versions/v2/api/beta-api.d.ts +6 -6
- package/dist/versions/v2/api/beta-api.js +4 -4
- package/dist/versions/v2/api/deal-products-api.d.ts +6 -6
- package/dist/versions/v2/api/deal-products-api.js +4 -4
- package/dist/versions/v2/api/deals-api.d.ts +26 -26
- package/dist/versions/v2/api/deals-api.js +20 -20
- package/dist/versions/v2/api/item-search-api.d.ts +14 -14
- package/dist/versions/v2/api/item-search-api.js +12 -12
- package/dist/versions/v2/api/leads-api.d.ts +10 -10
- package/dist/versions/v2/api/leads-api.js +8 -8
- package/dist/versions/v2/api/organizations-api.d.ts +6 -6
- package/dist/versions/v2/api/organizations-api.js +4 -4
- package/dist/versions/v2/api/persons-api.d.ts +10 -10
- package/dist/versions/v2/api/persons-api.js +8 -8
- package/dist/versions/v2/api/products-api.d.ts +10 -10
- package/dist/versions/v2/api/products-api.js +8 -8
- package/dist/versions/v2/api/projects-api.d.ts +6 -6
- package/dist/versions/v2/api/projects-api.js +4 -4
- package/package.json +1 -1
|
@@ -129,16 +129,16 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
129
129
|
* Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found persons can be filtered by organization ID.
|
|
130
130
|
* @summary Search persons
|
|
131
131
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
132
|
-
* @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
132
|
+
* @param {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
133
133
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
134
134
|
* @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000.
|
|
135
|
-
* @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
135
|
+
* @param {Set<'person.picture'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
136
136
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
137
137
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
138
138
|
|
|
139
139
|
* @throws {RequiredError}
|
|
140
140
|
*/
|
|
141
|
-
searchPersons: (term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name'
|
|
141
|
+
searchPersons: (term: string, fields?: Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>, exact_match?: boolean, organization_id?: number, include_fields?: Set<'person.picture'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
|
142
142
|
/**
|
|
143
143
|
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.
|
|
144
144
|
* @summary Update a person
|
|
@@ -254,16 +254,16 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
254
254
|
* Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found persons can be filtered by organization ID.
|
|
255
255
|
* @summary Search persons
|
|
256
256
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
257
|
-
* @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
257
|
+
* @param {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
258
258
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
259
259
|
* @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000.
|
|
260
|
-
* @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
260
|
+
* @param {Set<'person.picture'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
261
261
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
262
262
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
263
263
|
|
|
264
264
|
* @throws {RequiredError}
|
|
265
265
|
*/
|
|
266
|
-
searchPersons(term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name'
|
|
266
|
+
searchPersons(term: string, fields?: Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>, exact_match?: boolean, organization_id?: number, include_fields?: Set<'person.picture'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonSearchResponse>>;
|
|
267
267
|
/**
|
|
268
268
|
* Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.
|
|
269
269
|
* @summary Update a person
|
|
@@ -643,10 +643,10 @@ export interface PersonsApiSearchPersonsRequest {
|
|
|
643
643
|
readonly term: string;
|
|
644
644
|
/**
|
|
645
645
|
* A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
646
|
-
* @type {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'}
|
|
646
|
+
* @type {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>}
|
|
647
647
|
* @memberof PersonsApiSearchPersons
|
|
648
648
|
*/
|
|
649
|
-
readonly fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name'
|
|
649
|
+
readonly fields?: Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>;
|
|
650
650
|
/**
|
|
651
651
|
* When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
652
652
|
* @type {boolean}
|
|
@@ -661,10 +661,10 @@ export interface PersonsApiSearchPersonsRequest {
|
|
|
661
661
|
readonly organization_id?: number;
|
|
662
662
|
/**
|
|
663
663
|
* Supports including optional fields in the results which are not provided by default
|
|
664
|
-
* @type {'person.picture'}
|
|
664
|
+
* @type {Set<'person.picture'>}
|
|
665
665
|
* @memberof PersonsApiSearchPersons
|
|
666
666
|
*/
|
|
667
|
-
readonly include_fields?: 'person.picture'
|
|
667
|
+
readonly include_fields?: Set<'person.picture'>;
|
|
668
668
|
/**
|
|
669
669
|
* For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
670
670
|
* @type {number}
|
|
@@ -436,10 +436,10 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
436
436
|
* Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found persons can be filtered by organization ID.
|
|
437
437
|
* @summary Search persons
|
|
438
438
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
439
|
-
* @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
439
|
+
* @param {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
440
440
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
441
441
|
* @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000.
|
|
442
|
-
* @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
442
|
+
* @param {Set<'person.picture'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
443
443
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
444
444
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
445
445
|
|
|
@@ -466,8 +466,8 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
466
466
|
if (term !== undefined) {
|
|
467
467
|
localVarQueryParameter['term'] = term;
|
|
468
468
|
}
|
|
469
|
-
if (fields
|
|
470
|
-
localVarQueryParameter['fields'] = fields;
|
|
469
|
+
if (fields) {
|
|
470
|
+
localVarQueryParameter['fields'] = Array.from(fields).join(COLLECTION_FORMATS.csv);
|
|
471
471
|
}
|
|
472
472
|
if (exact_match !== undefined) {
|
|
473
473
|
localVarQueryParameter['exact_match'] = exact_match;
|
|
@@ -475,8 +475,8 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
475
475
|
if (organization_id !== undefined) {
|
|
476
476
|
localVarQueryParameter['organization_id'] = organization_id;
|
|
477
477
|
}
|
|
478
|
-
if (include_fields
|
|
479
|
-
localVarQueryParameter['include_fields'] = include_fields;
|
|
478
|
+
if (include_fields) {
|
|
479
|
+
localVarQueryParameter['include_fields'] = Array.from(include_fields).join(COLLECTION_FORMATS.csv);
|
|
480
480
|
}
|
|
481
481
|
if (limit !== undefined) {
|
|
482
482
|
localVarQueryParameter['limit'] = limit;
|
|
@@ -683,10 +683,10 @@ export const PersonsApiFp = function (configuration) {
|
|
|
683
683
|
* Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found persons can be filtered by organization ID.
|
|
684
684
|
* @summary Search persons
|
|
685
685
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
686
|
-
* @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
686
|
+
* @param {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
687
687
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
688
688
|
* @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000.
|
|
689
|
-
* @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
689
|
+
* @param {Set<'person.picture'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
690
690
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
691
691
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
692
692
|
|
|
@@ -172,15 +172,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
172
172
|
* Searches all products by name, code and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope.
|
|
173
173
|
* @summary Search products
|
|
174
174
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
175
|
-
* @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
175
|
+
* @param {Set<'code' | 'custom_fields' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
176
176
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
177
|
-
* @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
177
|
+
* @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
178
178
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
179
179
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
180
180
|
|
|
181
181
|
* @throws {RequiredError}
|
|
182
182
|
*/
|
|
183
|
-
searchProducts: (term: string, fields?: 'code' | 'custom_fields' | 'name'
|
|
183
|
+
searchProducts: (term: string, fields?: Set<'code' | 'custom_fields' | 'name'>, exact_match?: boolean, include_fields?: Set<'product.price'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
|
184
184
|
/**
|
|
185
185
|
* Updates product data.
|
|
186
186
|
* @summary Update a product
|
|
@@ -358,15 +358,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
358
358
|
* Searches all products by name, code and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope.
|
|
359
359
|
* @summary Search products
|
|
360
360
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
361
|
-
* @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
361
|
+
* @param {Set<'code' | 'custom_fields' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
362
362
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
363
|
-
* @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
363
|
+
* @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
364
364
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
365
365
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
366
366
|
|
|
367
367
|
* @throws {RequiredError}
|
|
368
368
|
*/
|
|
369
|
-
searchProducts(term: string, fields?: 'code' | 'custom_fields' | 'name'
|
|
369
|
+
searchProducts(term: string, fields?: Set<'code' | 'custom_fields' | 'name'>, exact_match?: boolean, include_fields?: Set<'product.price'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductSearchResponse>>;
|
|
370
370
|
/**
|
|
371
371
|
* Updates product data.
|
|
372
372
|
* @summary Update a product
|
|
@@ -867,10 +867,10 @@ export interface ProductsApiSearchProductsRequest {
|
|
|
867
867
|
readonly term: string;
|
|
868
868
|
/**
|
|
869
869
|
* A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
870
|
-
* @type {'code' | 'custom_fields' | 'name'}
|
|
870
|
+
* @type {Set<'code' | 'custom_fields' | 'name'>}
|
|
871
871
|
* @memberof ProductsApiSearchProducts
|
|
872
872
|
*/
|
|
873
|
-
readonly fields?: 'code' | 'custom_fields' | 'name'
|
|
873
|
+
readonly fields?: Set<'code' | 'custom_fields' | 'name'>;
|
|
874
874
|
/**
|
|
875
875
|
* When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
876
876
|
* @type {boolean}
|
|
@@ -879,10 +879,10 @@ export interface ProductsApiSearchProductsRequest {
|
|
|
879
879
|
readonly exact_match?: boolean;
|
|
880
880
|
/**
|
|
881
881
|
* Supports including optional fields in the results which are not provided by default
|
|
882
|
-
* @type {'product.price'}
|
|
882
|
+
* @type {Set<'product.price'>}
|
|
883
883
|
* @memberof ProductsApiSearchProducts
|
|
884
884
|
*/
|
|
885
|
-
readonly include_fields?: 'product.price'
|
|
885
|
+
readonly include_fields?: Set<'product.price'>;
|
|
886
886
|
/**
|
|
887
887
|
* For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
888
888
|
* @type {number}
|
|
@@ -581,9 +581,9 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
581
581
|
* Searches all products by name, code and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope.
|
|
582
582
|
* @summary Search products
|
|
583
583
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
584
|
-
* @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
584
|
+
* @param {Set<'code' | 'custom_fields' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
585
585
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
586
|
-
* @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
586
|
+
* @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
587
587
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
588
588
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
589
589
|
|
|
@@ -610,14 +610,14 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
610
610
|
if (term !== undefined) {
|
|
611
611
|
localVarQueryParameter['term'] = term;
|
|
612
612
|
}
|
|
613
|
-
if (fields
|
|
614
|
-
localVarQueryParameter['fields'] = fields;
|
|
613
|
+
if (fields) {
|
|
614
|
+
localVarQueryParameter['fields'] = Array.from(fields).join(COLLECTION_FORMATS.csv);
|
|
615
615
|
}
|
|
616
616
|
if (exact_match !== undefined) {
|
|
617
617
|
localVarQueryParameter['exact_match'] = exact_match;
|
|
618
618
|
}
|
|
619
|
-
if (include_fields
|
|
620
|
-
localVarQueryParameter['include_fields'] = include_fields;
|
|
619
|
+
if (include_fields) {
|
|
620
|
+
localVarQueryParameter['include_fields'] = Array.from(include_fields).join(COLLECTION_FORMATS.csv);
|
|
621
621
|
}
|
|
622
622
|
if (limit !== undefined) {
|
|
623
623
|
localVarQueryParameter['limit'] = limit;
|
|
@@ -1010,9 +1010,9 @@ export const ProductsApiFp = function (configuration) {
|
|
|
1010
1010
|
* Searches all products by name, code and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope.
|
|
1011
1011
|
* @summary Search products
|
|
1012
1012
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
1013
|
-
* @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
1013
|
+
* @param {Set<'code' | 'custom_fields' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
1014
1014
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
1015
|
-
* @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
1015
|
+
* @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
1016
1016
|
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
1017
1017
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1018
1018
|
|
|
@@ -106,7 +106,7 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
106
106
|
* Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
|
|
107
107
|
* @summary Search projects
|
|
108
108
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
109
|
-
* @param {'custom_fields' | 'notes' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
109
|
+
* @param {Set<'custom_fields' | 'notes' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
110
110
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
111
111
|
* @param {number} [person_id] Will filter projects by the provided person ID
|
|
112
112
|
* @param {number} [organization_id] Will filter projects by the provided organization ID
|
|
@@ -115,7 +115,7 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
115
115
|
|
|
116
116
|
* @throws {RequiredError}
|
|
117
117
|
*/
|
|
118
|
-
searchProjects: (term: string, fields?: 'custom_fields' | 'notes' | 'title' | 'description'
|
|
118
|
+
searchProjects: (term: string, fields?: Set<'custom_fields' | 'notes' | 'title' | 'description'>, exact_match?: boolean, person_id?: number, organization_id?: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
|
|
119
119
|
/**
|
|
120
120
|
* Updates the properties of a project.
|
|
121
121
|
* @summary Update a project
|
|
@@ -212,7 +212,7 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
212
212
|
* Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
|
|
213
213
|
* @summary Search projects
|
|
214
214
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
215
|
-
* @param {'custom_fields' | 'notes' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
215
|
+
* @param {Set<'custom_fields' | 'notes' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
216
216
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
217
217
|
* @param {number} [person_id] Will filter projects by the provided person ID
|
|
218
218
|
* @param {number} [organization_id] Will filter projects by the provided organization ID
|
|
@@ -221,7 +221,7 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
221
221
|
|
|
222
222
|
* @throws {RequiredError}
|
|
223
223
|
*/
|
|
224
|
-
searchProjects(term: string, fields?: 'custom_fields' | 'notes' | 'title' | 'description'
|
|
224
|
+
searchProjects(term: string, fields?: Set<'custom_fields' | 'notes' | 'title' | 'description'>, exact_match?: boolean, person_id?: number, organization_id?: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProjectSearchResponse>>;
|
|
225
225
|
/**
|
|
226
226
|
* Updates the properties of a project.
|
|
227
227
|
* @summary Update a project
|
|
@@ -514,10 +514,10 @@ export interface ProjectsApiSearchProjectsRequest {
|
|
|
514
514
|
readonly term: string;
|
|
515
515
|
/**
|
|
516
516
|
* A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
517
|
-
* @type {'custom_fields' | 'notes' | 'title' | 'description'}
|
|
517
|
+
* @type {Set<'custom_fields' | 'notes' | 'title' | 'description'>}
|
|
518
518
|
* @memberof ProjectsApiSearchProjects
|
|
519
519
|
*/
|
|
520
|
-
readonly fields?: 'custom_fields' | 'notes' | 'title' | 'description'
|
|
520
|
+
readonly fields?: Set<'custom_fields' | 'notes' | 'title' | 'description'>;
|
|
521
521
|
/**
|
|
522
522
|
* When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
523
523
|
* @type {boolean}
|
|
@@ -25,7 +25,7 @@ import globalAxios from 'axios';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import { BASE_PATH, BaseAPI } from '../base';
|
|
28
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base';
|
|
29
29
|
/**
|
|
30
30
|
* ProjectsApi - axios parameter creator
|
|
31
31
|
* @export
|
|
@@ -361,7 +361,7 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
361
361
|
* Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
|
|
362
362
|
* @summary Search projects
|
|
363
363
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
364
|
-
* @param {'custom_fields' | 'notes' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
364
|
+
* @param {Set<'custom_fields' | 'notes' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
365
365
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
366
366
|
* @param {number} [person_id] Will filter projects by the provided person ID
|
|
367
367
|
* @param {number} [organization_id] Will filter projects by the provided organization ID
|
|
@@ -391,8 +391,8 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
391
391
|
if (term !== undefined) {
|
|
392
392
|
localVarQueryParameter['term'] = term;
|
|
393
393
|
}
|
|
394
|
-
if (fields
|
|
395
|
-
localVarQueryParameter['fields'] = fields;
|
|
394
|
+
if (fields) {
|
|
395
|
+
localVarQueryParameter['fields'] = Array.from(fields).join(COLLECTION_FORMATS.csv);
|
|
396
396
|
}
|
|
397
397
|
if (exact_match !== undefined) {
|
|
398
398
|
localVarQueryParameter['exact_match'] = exact_match;
|
|
@@ -584,7 +584,7 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
584
584
|
* Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
|
|
585
585
|
* @summary Search projects
|
|
586
586
|
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
587
|
-
* @param {'custom_fields' | 'notes' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
587
|
+
* @param {Set<'custom_fields' | 'notes' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
588
588
|
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
589
589
|
* @param {number} [person_id] Will filter projects by the provided person ID
|
|
590
590
|
* @param {number} [organization_id] Will filter projects by the provided organization ID
|
|
@@ -42,11 +42,11 @@ export declare const DealFieldsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
42
42
|
/**
|
|
43
43
|
* Marks multiple deal fields as deleted.
|
|
44
44
|
* @summary Delete multiple deal fields in bulk
|
|
45
|
-
* @param {
|
|
45
|
+
* @param {Set<number>} ids The comma-separated field IDs to delete
|
|
46
46
|
|
|
47
47
|
* @throws {RequiredError}
|
|
48
48
|
*/
|
|
49
|
-
deleteDealFields: (ids:
|
|
49
|
+
deleteDealFields: (ids: Set<number>) => Promise<RequestArgs>;
|
|
50
50
|
/**
|
|
51
51
|
* Returns data about a specific deal field.
|
|
52
52
|
* @summary Get one deal field
|
|
@@ -98,11 +98,11 @@ export declare const DealFieldsApiFp: (configuration?: Configuration) => {
|
|
|
98
98
|
/**
|
|
99
99
|
* Marks multiple deal fields as deleted.
|
|
100
100
|
* @summary Delete multiple deal fields in bulk
|
|
101
|
-
* @param {
|
|
101
|
+
* @param {Set<number>} ids The comma-separated field IDs to delete
|
|
102
102
|
|
|
103
103
|
* @throws {RequiredError}
|
|
104
104
|
*/
|
|
105
|
-
deleteDealFields(ids:
|
|
105
|
+
deleteDealFields(ids: Set<number>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFieldsResponse>>;
|
|
106
106
|
/**
|
|
107
107
|
* Returns data about a specific deal field.
|
|
108
108
|
* @summary Get one deal field
|
|
@@ -218,10 +218,10 @@ export interface DealFieldsApiDeleteDealFieldRequest {
|
|
|
218
218
|
export interface DealFieldsApiDeleteDealFieldsRequest {
|
|
219
219
|
/**
|
|
220
220
|
* The comma-separated field IDs to delete
|
|
221
|
-
* @type {
|
|
221
|
+
* @type {Set<number>}
|
|
222
222
|
* @memberof DealFieldsApiDeleteDealFields
|
|
223
223
|
*/
|
|
224
|
-
readonly ids:
|
|
224
|
+
readonly ids: Set<number>;
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
227
227
|
* Request parameters for getDealField operation in DealFieldsApi.
|
|
@@ -108,7 +108,7 @@ const DealFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
/**
|
|
109
109
|
* Marks multiple deal fields as deleted.
|
|
110
110
|
* @summary Delete multiple deal fields in bulk
|
|
111
|
-
* @param {
|
|
111
|
+
* @param {Set<number>} ids The comma-separated field IDs to delete
|
|
112
112
|
|
|
113
113
|
* @throws {RequiredError}
|
|
114
114
|
*/
|
|
@@ -130,8 +130,8 @@ const DealFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
130
130
|
// authentication oauth2 required
|
|
131
131
|
// oauth required
|
|
132
132
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deal-fields:full", "admin"], configuration);
|
|
133
|
-
if (ids
|
|
134
|
-
localVarQueryParameter['ids'] = ids;
|
|
133
|
+
if (ids) {
|
|
134
|
+
localVarQueryParameter['ids'] = Array.from(ids).join(base_1.COLLECTION_FORMATS.csv);
|
|
135
135
|
}
|
|
136
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
137
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -289,7 +289,7 @@ const DealFieldsApiFp = function (configuration) {
|
|
|
289
289
|
/**
|
|
290
290
|
* Marks multiple deal fields as deleted.
|
|
291
291
|
* @summary Delete multiple deal fields in bulk
|
|
292
|
-
* @param {
|
|
292
|
+
* @param {Set<number>} ids The comma-separated field IDs to delete
|
|
293
293
|
|
|
294
294
|
* @throws {RequiredError}
|
|
295
295
|
*/
|
|
@@ -195,11 +195,11 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
195
195
|
* @param {number} [start] Pagination start
|
|
196
196
|
* @param {number} [limit] Items shown per page
|
|
197
197
|
* @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates.
|
|
198
|
-
* @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
|
|
198
|
+
* @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
|
|
199
199
|
|
|
200
200
|
* @throws {RequiredError}
|
|
201
201
|
*/
|
|
202
|
-
getDealUpdates: (id: number, start?: number, limit?: number, all_changes?: string, items?: string) => Promise<RequestArgs>;
|
|
202
|
+
getDealUpdates: (id: number, start?: number, limit?: number, all_changes?: string, items?: Set<string>) => Promise<RequestArgs>;
|
|
203
203
|
/**
|
|
204
204
|
* Lists the users permitted to access a deal.
|
|
205
205
|
* @summary List permitted users
|
|
@@ -409,11 +409,11 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
|
409
409
|
* @param {number} [start] Pagination start
|
|
410
410
|
* @param {number} [limit] Items shown per page
|
|
411
411
|
* @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates.
|
|
412
|
-
* @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
|
|
412
|
+
* @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
|
|
413
413
|
|
|
414
414
|
* @throws {RequiredError}
|
|
415
415
|
*/
|
|
416
|
-
getDealUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealUpdatesResponse>>;
|
|
416
|
+
getDealUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: Set<string>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealUpdatesResponse>>;
|
|
417
417
|
/**
|
|
418
418
|
* Lists the users permitted to access a deal.
|
|
419
419
|
* @summary List permitted users
|
|
@@ -1066,10 +1066,10 @@ export interface DealsApiGetDealUpdatesRequest {
|
|
|
1066
1066
|
readonly all_changes?: string;
|
|
1067
1067
|
/**
|
|
1068
1068
|
* A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
|
|
1069
|
-
* @type {string}
|
|
1069
|
+
* @type {Set<string>}
|
|
1070
1070
|
* @memberof DealsApiGetDealUpdates
|
|
1071
1071
|
*/
|
|
1072
|
-
readonly items?: string
|
|
1072
|
+
readonly items?: Set<string>;
|
|
1073
1073
|
}
|
|
1074
1074
|
/**
|
|
1075
1075
|
* Request parameters for getDealUsers operation in DealsApi.
|
|
@@ -685,7 +685,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
|
685
685
|
* @param {number} [start] Pagination start
|
|
686
686
|
* @param {number} [limit] Items shown per page
|
|
687
687
|
* @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates.
|
|
688
|
-
* @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
|
|
688
|
+
* @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
|
|
689
689
|
|
|
690
690
|
* @throws {RequiredError}
|
|
691
691
|
*/
|
|
@@ -717,8 +717,8 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
|
717
717
|
if (all_changes !== undefined) {
|
|
718
718
|
localVarQueryParameter['all_changes'] = all_changes;
|
|
719
719
|
}
|
|
720
|
-
if (items
|
|
721
|
-
localVarQueryParameter['items'] = items;
|
|
720
|
+
if (items) {
|
|
721
|
+
localVarQueryParameter['items'] = Array.from(items).join(base_1.COLLECTION_FORMATS.csv);
|
|
722
722
|
}
|
|
723
723
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
724
724
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1163,7 +1163,7 @@ const DealsApiFp = function (configuration) {
|
|
|
1163
1163
|
* @param {number} [start] Pagination start
|
|
1164
1164
|
* @param {number} [limit] Items shown per page
|
|
1165
1165
|
* @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates.
|
|
1166
|
-
* @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
|
|
1166
|
+
* @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
|
|
1167
1167
|
|
|
1168
1168
|
* @throws {RequiredError}
|
|
1169
1169
|
*/
|
|
@@ -44,11 +44,11 @@ export declare const FiltersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
44
44
|
/**
|
|
45
45
|
* Marks multiple filters as deleted.
|
|
46
46
|
* @summary Delete multiple filters in bulk
|
|
47
|
-
* @param {
|
|
47
|
+
* @param {Set<number>} ids The comma-separated filter IDs to delete
|
|
48
48
|
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
*/
|
|
51
|
-
deleteFilters: (ids:
|
|
51
|
+
deleteFilters: (ids: Set<number>) => Promise<RequestArgs>;
|
|
52
52
|
/**
|
|
53
53
|
* Returns data about a specific filter. Note that this also returns the condition lines of the filter.
|
|
54
54
|
* @summary Get one filter
|
|
@@ -109,11 +109,11 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
109
109
|
/**
|
|
110
110
|
* Marks multiple filters as deleted.
|
|
111
111
|
* @summary Delete multiple filters in bulk
|
|
112
|
-
* @param {
|
|
112
|
+
* @param {Set<number>} ids The comma-separated filter IDs to delete
|
|
113
113
|
|
|
114
114
|
* @throws {RequiredError}
|
|
115
115
|
*/
|
|
116
|
-
deleteFilters(ids:
|
|
116
|
+
deleteFilters(ids: Set<number>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFiltersResponse>>;
|
|
117
117
|
/**
|
|
118
118
|
* Returns data about a specific filter. Note that this also returns the condition lines of the filter.
|
|
119
119
|
* @summary Get one filter
|
|
@@ -250,10 +250,10 @@ export interface FiltersApiDeleteFilterRequest {
|
|
|
250
250
|
export interface FiltersApiDeleteFiltersRequest {
|
|
251
251
|
/**
|
|
252
252
|
* The comma-separated filter IDs to delete
|
|
253
|
-
* @type {
|
|
253
|
+
* @type {Set<number>}
|
|
254
254
|
* @memberof FiltersApiDeleteFilters
|
|
255
255
|
*/
|
|
256
|
-
readonly ids:
|
|
256
|
+
readonly ids: Set<number>;
|
|
257
257
|
}
|
|
258
258
|
/**
|
|
259
259
|
* Request parameters for getFilter operation in FiltersApi.
|
|
@@ -112,7 +112,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
112
112
|
/**
|
|
113
113
|
* Marks multiple filters as deleted.
|
|
114
114
|
* @summary Delete multiple filters in bulk
|
|
115
|
-
* @param {
|
|
115
|
+
* @param {Set<number>} ids The comma-separated filter IDs to delete
|
|
116
116
|
|
|
117
117
|
* @throws {RequiredError}
|
|
118
118
|
*/
|
|
@@ -134,8 +134,8 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
134
134
|
// authentication oauth2 required
|
|
135
135
|
// oauth required
|
|
136
136
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
|
|
137
|
-
if (ids
|
|
138
|
-
localVarQueryParameter['ids'] = ids;
|
|
137
|
+
if (ids) {
|
|
138
|
+
localVarQueryParameter['ids'] = Array.from(ids).join(base_1.COLLECTION_FORMATS.csv);
|
|
139
139
|
}
|
|
140
140
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
141
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -328,7 +328,7 @@ const FiltersApiFp = function (configuration) {
|
|
|
328
328
|
/**
|
|
329
329
|
* Marks multiple filters as deleted.
|
|
330
330
|
* @summary Delete multiple filters in bulk
|
|
331
|
-
* @param {
|
|
331
|
+
* @param {Set<number>} ids The comma-separated filter IDs to delete
|
|
332
332
|
|
|
333
333
|
* @throws {RequiredError}
|
|
334
334
|
*/
|