From bbe9e955b32a875559c7021588a17747c5b83356 Mon Sep 17 00:00:00 2001 From: pipedrive-bot Date: Thu, 18 Apr 2024 11:04:13 +0000 Subject: [PATCH] Build 2350 - version-patch --- CHANGELOG.md | 2 ++ README.md | 2 -- docs/BaseUser.md | 1 + docs/BaseUserMe.md | 1 + docs/Field.md | 1 + docs/ListPermittedUsersResponse.md | 1 - docs/ProductField.md | 1 + docs/ProductFieldAllOf.md | 1 + src/index.js | 14 -------------- src/model/BaseUser.js | 11 +++++++++++ src/model/BaseUserMe.js | 16 ++++++++++++++++ src/model/Field.js | 11 +++++++++++ src/model/ListPermittedUsersResponse.js | 21 +-------------------- src/model/ProductField.js | 16 ++++++++++++++++ src/model/ProductFieldAllOf.js | 11 +++++++++++ 15 files changed, 73 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c99383c5..3189e193 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19). ## [Unreleased] +### Added +- Added `is_deleted` parameter for `/v1/users/*` responses. ## [22.6.0] - 2024-04-05 ### Added diff --git a/README.md b/README.md index e5fb65e6..a5c4f40f 100644 --- a/README.md +++ b/README.md @@ -1073,8 +1073,6 @@ Class | Method | HTTP request | Description - [Pipedrive.ListPermittedUsersResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPermittedUsersResponse.md) - [Pipedrive.ListPermittedUsersResponse1](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPermittedUsersResponse1.md) - [Pipedrive.ListPermittedUsersResponse1AllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPermittedUsersResponse1AllOf.md) - - [Pipedrive.ListPermittedUsersResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPermittedUsersResponseAllOf.md) - - [Pipedrive.ListPermittedUsersResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPermittedUsersResponseAllOfData.md) - [Pipedrive.ListPersonProductsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonProductsResponse.md) - [Pipedrive.ListPersonProductsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonProductsResponseAllOf.md) - [Pipedrive.ListPersonProductsResponseAllOfDEALID](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonProductsResponseAllOfDEALID.md) diff --git a/docs/BaseUser.md b/docs/BaseUser.md index 213114e6..e2f503e6 100644 --- a/docs/BaseUser.md +++ b/docs/BaseUser.md @@ -23,5 +23,6 @@ Name | Type | Description | Notes **roleId** | **Number** | The ID of the user role | [optional] **iconUrl** | **String** | The user icon URL | [optional] **isYou** | **Boolean** | Boolean that indicates if the requested user is the same which is logged in (in this case, always true) | [optional] +**isDeleted** | **Boolean** | Boolean that indicates whether the user is deleted from the company | [optional] diff --git a/docs/BaseUserMe.md b/docs/BaseUserMe.md index 14d143ef..12cda614 100644 --- a/docs/BaseUserMe.md +++ b/docs/BaseUserMe.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **roleId** | **Number** | The ID of the user role | [optional] **iconUrl** | **String** | The user icon URL | [optional] **isYou** | **Boolean** | Boolean that indicates if the requested user is the same which is logged in (in this case, always true) | [optional] +**isDeleted** | **Boolean** | Boolean that indicates whether the user is deleted from the company | [optional] **companyId** | **Number** | The user company ID | [optional] **companyName** | **String** | The user company name | [optional] **companyDomain** | **String** | The user company domain | [optional] diff --git a/docs/Field.md b/docs/Field.md index 7b8a99af..71c8802f 100644 --- a/docs/Field.md +++ b/docs/Field.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **addTime** | **Date** | The creation time of the field | [optional] **updateTime** | **Date** | The update time of the field | [optional] **lastUpdatedByUserId** | **Number** | The ID of the user who created or most recently updated the field, only applicable for custom fields | [optional] +**createdByUserId** | **Number** | The ID of the user who created the field | [optional] **activeFlag** | **Boolean** | The active flag of the field | [optional] **editFlag** | **Boolean** | The edit flag of the field | [optional] **indexVisibleFlag** | **Boolean** | Not used | [optional] diff --git a/docs/ListPermittedUsersResponse.md b/docs/ListPermittedUsersResponse.md index 884d0627..7edd1623 100644 --- a/docs/ListPermittedUsersResponse.md +++ b/docs/ListPermittedUsersResponse.md @@ -5,6 +5,5 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ListPermittedUsersResponseAllOfData**](ListPermittedUsersResponseAllOfData.md) | | [optional] diff --git a/docs/ProductField.md b/docs/ProductField.md index 2c0d725c..ff10820a 100644 --- a/docs/ProductField.md +++ b/docs/ProductField.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **addTime** | **String** | The product field creation time. Format: YYYY-MM-DD HH:MM:SS | [optional] **updateTime** | **String** | The product field last update time. Format: YYYY-MM-DD HH:MM:SS | [optional] **lastUpdatedByUserId** | **Number** | The ID of the last user to update the product field | [optional] +**createdByUserId** | **Number** | The ID of the user who created the product field | [optional] **activeFlag** | **Boolean** | Whether or not the product field is currently active | [optional] **editFlag** | **Boolean** | Whether or not the product field name and metadata is editable | [optional] **addVisibleFlag** | **Boolean** | Whether or not the product field is visible in the Add Product Modal | [optional] diff --git a/docs/ProductFieldAllOf.md b/docs/ProductFieldAllOf.md index 6824628a..6396b471 100644 --- a/docs/ProductFieldAllOf.md +++ b/docs/ProductFieldAllOf.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **addTime** | **String** | The product field creation time. Format: YYYY-MM-DD HH:MM:SS | [optional] **updateTime** | **String** | The product field last update time. Format: YYYY-MM-DD HH:MM:SS | [optional] **lastUpdatedByUserId** | **Number** | The ID of the last user to update the product field | [optional] +**createdByUserId** | **Number** | The ID of the user who created the product field | [optional] **activeFlag** | **Boolean** | Whether or not the product field is currently active | [optional] **editFlag** | **Boolean** | Whether or not the product field name and metadata is editable | [optional] **addVisibleFlag** | **Boolean** | Whether or not the product field is visible in the Add Product Modal | [optional] diff --git a/src/index.js b/src/index.js index 724a1fa7..1efcb9c3 100644 --- a/src/index.js +++ b/src/index.js @@ -457,8 +457,6 @@ import ListMailMessagesResponseAllOfData from './model/ListMailMessagesResponseA import ListPermittedUsersResponse from './model/ListPermittedUsersResponse'; import ListPermittedUsersResponse1 from './model/ListPermittedUsersResponse1'; import ListPermittedUsersResponse1AllOf from './model/ListPermittedUsersResponse1AllOf'; -import ListPermittedUsersResponseAllOf from './model/ListPermittedUsersResponseAllOf'; -import ListPermittedUsersResponseAllOfData from './model/ListPermittedUsersResponseAllOfData'; import ListPersonProductsResponse from './model/ListPersonProductsResponse'; import ListPersonProductsResponseAllOf from './model/ListPersonProductsResponseAllOf'; import ListPersonProductsResponseAllOfDEALID from './model/ListPersonProductsResponseAllOfDEALID'; @@ -3558,18 +3556,6 @@ export { */ ListPermittedUsersResponse1AllOf, - /** - * The ListPermittedUsersResponseAllOf model constructor. - * @property {module:model/ListPermittedUsersResponseAllOf} - */ - ListPermittedUsersResponseAllOf, - - /** - * The ListPermittedUsersResponseAllOfData model constructor. - * @property {module:model/ListPermittedUsersResponseAllOfData} - */ - ListPermittedUsersResponseAllOfData, - /** * The ListPersonProductsResponse model constructor. * @property {module:model/ListPersonProductsResponse} diff --git a/src/model/BaseUser.js b/src/model/BaseUser.js index ad171d39..9b3cce66 100644 --- a/src/model/BaseUser.js +++ b/src/model/BaseUser.js @@ -143,6 +143,11 @@ class BaseUser { delete data['is_you']; } + if (data.hasOwnProperty('is_deleted')) { + obj['is_deleted'] = ApiClient.convertToType(data['is_deleted'], 'Boolean'); + + delete data['is_deleted']; + } if (Object.keys(data).length > 0) { Object.assign(obj, data); @@ -268,6 +273,12 @@ BaseUser.prototype['icon_url'] = undefined; */ BaseUser.prototype['is_you'] = undefined; +/** + * Boolean that indicates whether the user is deleted from the company + * @member {Boolean} is_deleted + */ +BaseUser.prototype['is_deleted'] = undefined; + diff --git a/src/model/BaseUserMe.js b/src/model/BaseUserMe.js index 5ee312c5..f5a6d2af 100644 --- a/src/model/BaseUserMe.js +++ b/src/model/BaseUserMe.js @@ -150,6 +150,11 @@ class BaseUserMe { delete data['is_you']; } + if (data.hasOwnProperty('is_deleted')) { + obj['is_deleted'] = ApiClient.convertToType(data['is_deleted'], 'Boolean'); + + delete data['is_deleted']; + } if (data.hasOwnProperty('company_id')) { obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); @@ -305,6 +310,12 @@ BaseUserMe.prototype['icon_url'] = undefined; */ BaseUserMe.prototype['is_you'] = undefined; +/** + * Boolean that indicates whether the user is deleted from the company + * @member {Boolean} is_deleted + */ +BaseUserMe.prototype['is_deleted'] = undefined; + /** * The user company ID * @member {Number} company_id @@ -436,6 +447,11 @@ BaseUser.prototype['icon_url'] = undefined; * @member {Boolean} is_you */ BaseUser.prototype['is_you'] = undefined; +/** + * Boolean that indicates whether the user is deleted from the company + * @member {Boolean} is_deleted + */ +BaseUser.prototype['is_deleted'] = undefined; // Implement BaseUserMeAllOf interface: /** * The user company ID diff --git a/src/model/Field.js b/src/model/Field.js index a01e07d6..76323f1f 100644 --- a/src/model/Field.js +++ b/src/model/Field.js @@ -88,6 +88,11 @@ class Field { delete data['last_updated_by_user_id']; } + if (data.hasOwnProperty('created_by_user_id')) { + obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); + + delete data['created_by_user_id']; + } if (data.hasOwnProperty('active_flag')) { obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); @@ -222,6 +227,12 @@ Field.prototype['update_time'] = undefined; */ Field.prototype['last_updated_by_user_id'] = undefined; +/** + * The ID of the user who created the field + * @member {Number} created_by_user_id + */ +Field.prototype['created_by_user_id'] = undefined; + /** * The active flag of the field * @member {Boolean} active_flag diff --git a/src/model/ListPermittedUsersResponse.js b/src/model/ListPermittedUsersResponse.js index 5e0ca354..1d602cd7 100644 --- a/src/model/ListPermittedUsersResponse.js +++ b/src/model/ListPermittedUsersResponse.js @@ -13,8 +13,6 @@ import ApiClient from '../ApiClient'; import BaseResponse from './BaseResponse'; -import ListPermittedUsersResponseAllOf from './ListPermittedUsersResponseAllOf'; -import ListPermittedUsersResponseAllOfData from './ListPermittedUsersResponseAllOfData'; /** * The ListPermittedUsersResponse model module. @@ -26,10 +24,9 @@ class ListPermittedUsersResponse { * Constructs a new ListPermittedUsersResponse. * @alias module:model/ListPermittedUsersResponse * @implements module:model/BaseResponse - * @implements module:model/ListPermittedUsersResponseAllOf */ constructor() { - BaseResponse.initialize(this);ListPermittedUsersResponseAllOf.initialize(this); + BaseResponse.initialize(this); ListPermittedUsersResponse.initialize(this); } @@ -52,18 +49,12 @@ class ListPermittedUsersResponse { if (data) { obj = obj || new ListPermittedUsersResponse(); BaseResponse.constructFromObject(data, obj); - ListPermittedUsersResponseAllOf.constructFromObject(data, obj); if (data.hasOwnProperty('success')) { obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); delete data['success']; } - if (data.hasOwnProperty('data')) { - obj['data'] = ListPermittedUsersResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } if (Object.keys(data).length > 0) { Object.assign(obj, data); @@ -82,11 +73,6 @@ class ListPermittedUsersResponse { */ ListPermittedUsersResponse.prototype['success'] = undefined; -/** - * @member {module:model/ListPermittedUsersResponseAllOfData} data - */ -ListPermittedUsersResponse.prototype['data'] = undefined; - // Implement BaseResponse interface: /** @@ -94,11 +80,6 @@ ListPermittedUsersResponse.prototype['data'] = undefined; * @member {Boolean} success */ BaseResponse.prototype['success'] = undefined; -// Implement ListPermittedUsersResponseAllOf interface: -/** - * @member {module:model/ListPermittedUsersResponseAllOfData} data - */ -ListPermittedUsersResponseAllOf.prototype['data'] = undefined; diff --git a/src/model/ProductField.js b/src/model/ProductField.js index 5b2e9b31..c46a2666 100644 --- a/src/model/ProductField.js +++ b/src/model/ProductField.js @@ -102,6 +102,11 @@ class ProductField { delete data['last_updated_by_user_id']; } + if (data.hasOwnProperty('created_by_user_id')) { + obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); + + delete data['created_by_user_id']; + } if (data.hasOwnProperty('active_flag')) { obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); @@ -213,6 +218,12 @@ ProductField.prototype['update_time'] = undefined; */ ProductField.prototype['last_updated_by_user_id'] = undefined; +/** + * The ID of the user who created the product field + * @member {Number} created_by_user_id + */ +ProductField.prototype['created_by_user_id'] = undefined; + /** * Whether or not the product field is currently active * @member {Boolean} active_flag @@ -315,6 +326,11 @@ ProductFieldAllOf.prototype['update_time'] = undefined; * @member {Number} last_updated_by_user_id */ ProductFieldAllOf.prototype['last_updated_by_user_id'] = undefined; +/** + * The ID of the user who created the product field + * @member {Number} created_by_user_id + */ +ProductFieldAllOf.prototype['created_by_user_id'] = undefined; /** * Whether or not the product field is currently active * @member {Boolean} active_flag diff --git a/src/model/ProductFieldAllOf.js b/src/model/ProductFieldAllOf.js index f95a2853..9d32c034 100644 --- a/src/model/ProductFieldAllOf.js +++ b/src/model/ProductFieldAllOf.js @@ -77,6 +77,11 @@ class ProductFieldAllOf { delete data['last_updated_by_user_id']; } + if (data.hasOwnProperty('created_by_user_id')) { + obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); + + delete data['created_by_user_id']; + } if (data.hasOwnProperty('active_flag')) { obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); @@ -170,6 +175,12 @@ ProductFieldAllOf.prototype['update_time'] = undefined; */ ProductFieldAllOf.prototype['last_updated_by_user_id'] = undefined; +/** + * The ID of the user who created the product field + * @member {Number} created_by_user_id + */ +ProductFieldAllOf.prototype['created_by_user_id'] = undefined; + /** * Whether or not the product field is currently active * @member {Boolean} active_flag