pipedrive 33.8.0 → 34.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/esm/versions/v1/models/deal-all-of-creator-user-id.d.ts +2 -2
  2. package/dist/esm/versions/v1/models/get-associated-product-files-response-all-of.d.ts +1 -1
  3. package/dist/esm/versions/v2/api/activities-api.d.ts +16 -16
  4. package/dist/esm/versions/v2/api/activities-api.js +13 -13
  5. package/dist/esm/versions/v2/api/activity-fields-api.d.ts +12 -12
  6. package/dist/esm/versions/v2/api/activity-fields-api.js +9 -9
  7. package/dist/esm/versions/v2/api/deal-fields-api.d.ts +12 -12
  8. package/dist/esm/versions/v2/api/deal-fields-api.js +9 -9
  9. package/dist/esm/versions/v2/api/deals-api.d.ts +38 -38
  10. package/dist/esm/versions/v2/api/deals-api.js +33 -33
  11. package/dist/esm/versions/v2/api/organization-fields-api.d.ts +12 -12
  12. package/dist/esm/versions/v2/api/organization-fields-api.js +9 -9
  13. package/dist/esm/versions/v2/api/organizations-api.d.ts +24 -24
  14. package/dist/esm/versions/v2/api/organizations-api.js +21 -21
  15. package/dist/esm/versions/v2/api/person-fields-api.d.ts +12 -12
  16. package/dist/esm/versions/v2/api/person-fields-api.js +9 -9
  17. package/dist/esm/versions/v2/api/persons-api.d.ts +24 -24
  18. package/dist/esm/versions/v2/api/persons-api.js +21 -21
  19. package/dist/esm/versions/v2/api/product-fields-api.d.ts +12 -12
  20. package/dist/esm/versions/v2/api/product-fields-api.js +9 -9
  21. package/dist/esm/versions/v2/api/products-api.d.ts +14 -14
  22. package/dist/esm/versions/v2/api/products-api.js +15 -15
  23. package/dist/esm/versions/v2/models/activity-item-location.d.ts +68 -0
  24. package/dist/esm/versions/v2/models/activity-item-location.js +14 -0
  25. package/dist/esm/versions/v2/models/activity-item.d.ts +11 -11
  26. package/dist/esm/versions/v2/models/add-organization-request.d.ts +1 -1
  27. package/dist/esm/versions/v2/models/add-person-request.d.ts +1 -1
  28. package/dist/esm/versions/v2/models/deal.d.ts +1 -1
  29. package/dist/esm/versions/v2/models/get-activities-response-all-of-additional-data.d.ts +1 -1
  30. package/dist/esm/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +1 -1
  31. package/dist/esm/versions/v2/models/get-deals-products-response-additional-data.d.ts +1 -1
  32. package/dist/esm/versions/v2/models/get-organization-search-response-all-of-data-items-inner-item.d.ts +1 -1
  33. package/dist/esm/versions/v2/models/get-product-search-response-all-of-data-items-inner-item.d.ts +2 -2
  34. package/dist/esm/versions/v2/models/index.d.ts +1 -0
  35. package/dist/esm/versions/v2/models/index.js +1 -0
  36. package/dist/esm/versions/v2/models/lead-search-item-item.d.ts +1 -1
  37. package/dist/esm/versions/v2/models/organization-item-address.d.ts +9 -9
  38. package/dist/esm/versions/v2/models/organization-item.d.ts +2 -2
  39. package/dist/esm/versions/v2/models/person-item-address.d.ts +9 -9
  40. package/dist/esm/versions/v2/models/person.d.ts +3 -3
  41. package/dist/esm/versions/v2/models/stage-item.d.ts +1 -1
  42. package/dist/esm/versions/v2/models/stage-item1.d.ts +1 -1
  43. package/dist/esm/versions/v2/models/update-organization-request.d.ts +1 -1
  44. package/dist/esm/versions/v2/models/update-person-request.d.ts +1 -1
  45. package/dist/versions/v1/models/deal-all-of-creator-user-id.d.ts +2 -2
  46. package/dist/versions/v1/models/get-associated-product-files-response-all-of.d.ts +1 -1
  47. package/dist/versions/v2/api/activities-api.d.ts +16 -16
  48. package/dist/versions/v2/api/activities-api.js +12 -12
  49. package/dist/versions/v2/api/activity-fields-api.d.ts +12 -12
  50. package/dist/versions/v2/api/activity-fields-api.js +8 -8
  51. package/dist/versions/v2/api/deal-fields-api.d.ts +12 -12
  52. package/dist/versions/v2/api/deal-fields-api.js +8 -8
  53. package/dist/versions/v2/api/deals-api.d.ts +38 -38
  54. package/dist/versions/v2/api/deals-api.js +32 -32
  55. package/dist/versions/v2/api/organization-fields-api.d.ts +12 -12
  56. package/dist/versions/v2/api/organization-fields-api.js +8 -8
  57. package/dist/versions/v2/api/organizations-api.d.ts +24 -24
  58. package/dist/versions/v2/api/organizations-api.js +20 -20
  59. package/dist/versions/v2/api/person-fields-api.d.ts +12 -12
  60. package/dist/versions/v2/api/person-fields-api.js +8 -8
  61. package/dist/versions/v2/api/persons-api.d.ts +24 -24
  62. package/dist/versions/v2/api/persons-api.js +20 -20
  63. package/dist/versions/v2/api/product-fields-api.d.ts +12 -12
  64. package/dist/versions/v2/api/product-fields-api.js +8 -8
  65. package/dist/versions/v2/api/products-api.d.ts +14 -14
  66. package/dist/versions/v2/api/products-api.js +14 -14
  67. package/dist/versions/v2/models/activity-item-location.d.ts +68 -0
  68. package/dist/versions/v2/models/activity-item-location.js +15 -0
  69. package/dist/versions/v2/models/activity-item.d.ts +11 -11
  70. package/dist/versions/v2/models/add-organization-request.d.ts +1 -1
  71. package/dist/versions/v2/models/add-person-request.d.ts +1 -1
  72. package/dist/versions/v2/models/deal.d.ts +1 -1
  73. package/dist/versions/v2/models/get-activities-response-all-of-additional-data.d.ts +1 -1
  74. package/dist/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +1 -1
  75. package/dist/versions/v2/models/get-deals-products-response-additional-data.d.ts +1 -1
  76. package/dist/versions/v2/models/get-organization-search-response-all-of-data-items-inner-item.d.ts +1 -1
  77. package/dist/versions/v2/models/get-product-search-response-all-of-data-items-inner-item.d.ts +2 -2
  78. package/dist/versions/v2/models/index.d.ts +1 -0
  79. package/dist/versions/v2/models/index.js +1 -0
  80. package/dist/versions/v2/models/lead-search-item-item.d.ts +1 -1
  81. package/dist/versions/v2/models/organization-item-address.d.ts +9 -9
  82. package/dist/versions/v2/models/organization-item.d.ts +2 -2
  83. package/dist/versions/v2/models/person-item-address.d.ts +9 -9
  84. package/dist/versions/v2/models/person.d.ts +3 -3
  85. package/dist/versions/v2/models/stage-item.d.ts +1 -1
  86. package/dist/versions/v2/models/stage-item1.d.ts +1 -1
  87. package/dist/versions/v2/models/update-organization-request.d.ts +1 -1
  88. package/dist/versions/v2/models/update-person-request.d.ts +1 -1
  89. package/package.json +1 -1
@@ -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
  * ProductsApi - axios parameter creator
31
31
  * @export
@@ -515,18 +515,18 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
515
515
  * Returns data about all products.
516
516
  * @summary Get all products
517
517
  * @param {number} [owner_id] If supplied, only products owned by the given user will be returned
518
- * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
518
+ * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
519
+ * @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
519
520
  * @param {number} [filter_id] The ID of the filter to use
520
521
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
521
522
  * @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.
522
523
  * @param {'id' | 'name' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;name&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
523
524
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
524
525
  * @param {string} [updated_since] If set, only products with an &#x60;update_time&#x60; later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
525
- * @param {string} [custom_fields] Comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for a smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
526
526
 
527
527
  * @throws {RequiredError}
528
528
  */
529
- getProducts: (owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, updated_since, custom_fields) => __awaiter(this, void 0, void 0, function* () {
529
+ getProducts: (owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since) => __awaiter(this, void 0, void 0, function* () {
530
530
  const localVarPath = `/products`;
531
531
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
532
532
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -545,8 +545,11 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
545
545
  if (owner_id !== undefined) {
546
546
  localVarQueryParameter['owner_id'] = owner_id;
547
547
  }
548
- if (ids !== undefined) {
549
- localVarQueryParameter['ids'] = ids;
548
+ if (ids) {
549
+ localVarQueryParameter['ids'] = Array.from(ids).join(COLLECTION_FORMATS.csv);
550
+ }
551
+ if (custom_fields) {
552
+ localVarQueryParameter['custom_fields'] = Array.from(custom_fields).join(COLLECTION_FORMATS.csv);
550
553
  }
551
554
  if (filter_id !== undefined) {
552
555
  localVarQueryParameter['filter_id'] = filter_id;
@@ -566,9 +569,6 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
566
569
  if (updated_since !== undefined) {
567
570
  localVarQueryParameter['updated_since'] = updated_since;
568
571
  }
569
- if (custom_fields !== undefined) {
570
- localVarQueryParameter['custom_fields'] = custom_fields;
571
- }
572
572
  setSearchParams(localVarUrlObj, localVarQueryParameter);
573
573
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
574
574
  localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
@@ -989,20 +989,20 @@ export const ProductsApiFp = function (configuration) {
989
989
  * Returns data about all products.
990
990
  * @summary Get all products
991
991
  * @param {number} [owner_id] If supplied, only products owned by the given user will be returned
992
- * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
992
+ * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
993
+ * @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
993
994
  * @param {number} [filter_id] The ID of the filter to use
994
995
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
995
996
  * @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.
996
997
  * @param {'id' | 'name' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;name&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
997
998
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
998
999
  * @param {string} [updated_since] If set, only products with an &#x60;update_time&#x60; later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
999
- * @param {string} [custom_fields] Comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for a smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
1000
1000
 
1001
1001
  * @throws {RequiredError}
1002
1002
  */
1003
- getProducts(owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, updated_since, custom_fields) {
1003
+ getProducts(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since) {
1004
1004
  return __awaiter(this, void 0, void 0, function* () {
1005
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getProducts(owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, updated_since, custom_fields);
1005
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProducts(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since);
1006
1006
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1007
1007
  });
1008
1008
  },
@@ -1228,7 +1228,7 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
1228
1228
  * @throws {RequiredError}
1229
1229
  */
1230
1230
  getProducts(requestParameters = {}) {
1231
- return localVarFp.getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since, requestParameters.custom_fields).then((request) => request(axios, basePath));
1231
+ return localVarFp.getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(axios, basePath));
1232
1232
  },
1233
1233
  /**
1234
1234
  * 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.
@@ -1441,7 +1441,7 @@ export class ProductsApi extends BaseAPI {
1441
1441
  * @memberof ProductsApi
1442
1442
  */
1443
1443
  getProducts(requestParameters = {}) {
1444
- return ProductsApiFp(this.configuration).getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since, requestParameters.custom_fields).then((request) => request(this.axios, this.basePath));
1444
+ return ProductsApiFp(this.configuration).getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(this.axios, this.basePath));
1445
1445
  }
1446
1446
  /**
1447
1447
  * 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.
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Pipedrive API v2
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Location of the activity
14
+ * @export
15
+ * @interface ActivityItemLocation
16
+ */
17
+ export interface ActivityItemLocation {
18
+ /**
19
+ * The full address of the activity
20
+ * @type {string}
21
+ */
22
+ 'value'?: string;
23
+ /**
24
+ * Country of the activity
25
+ * @type {string}
26
+ */
27
+ 'country'?: string | null;
28
+ /**
29
+ * Admin area level 1 (e.g. state) of the activity
30
+ * @type {string}
31
+ */
32
+ 'admin_area_level_1'?: string | null;
33
+ /**
34
+ * Admin area level 2 (e.g. county) of the activity
35
+ * @type {string}
36
+ */
37
+ 'admin_area_level_2'?: string | null;
38
+ /**
39
+ * Locality (e.g. city) of the activity
40
+ * @type {string}
41
+ */
42
+ 'locality'?: string | null;
43
+ /**
44
+ * Sublocality (e.g. neighborhood) of the activity
45
+ * @type {string}
46
+ */
47
+ 'sublocality'?: string | null;
48
+ /**
49
+ * Route (e.g. street) of the activity
50
+ * @type {string}
51
+ */
52
+ 'route'?: string | null;
53
+ /**
54
+ * Street number of the activity
55
+ * @type {string}
56
+ */
57
+ 'street_number'?: string | null;
58
+ /**
59
+ * Subpremise (e.g. apartment/suite number) of the activity
60
+ * @type {string}
61
+ */
62
+ 'subpremise'?: string | null;
63
+ /**
64
+ * Postal code of the activity
65
+ * @type {string}
66
+ */
67
+ 'postal_code'?: string | null;
68
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pipedrive API v2
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ActivityItemLocation } from './activity-item-location';
12
13
  import { AddActivityRequestAttendeesInner } from './add-activity-request-attendees-inner';
13
- import { AddActivityRequestLocation } from './add-activity-request-location';
14
14
  import { AddActivityRequestParticipantsInner } from './add-activity-request-participants-inner';
15
15
  /**
16
16
  *
@@ -62,27 +62,27 @@ export interface ActivityItem {
62
62
  * The ID of the deal linked to the activity
63
63
  * @type {number}
64
64
  */
65
- 'deal_id'?: number;
65
+ 'deal_id'?: number | null;
66
66
  /**
67
67
  * The ID of the lead linked to the activity
68
68
  * @type {string}
69
69
  */
70
- 'lead_id'?: string;
70
+ 'lead_id'?: string | null;
71
71
  /**
72
72
  * The ID of the person linked to the activity
73
73
  * @type {number}
74
74
  */
75
- 'person_id'?: number;
75
+ 'person_id'?: number | null;
76
76
  /**
77
77
  * The ID of the organization linked to the activity
78
78
  * @type {number}
79
79
  */
80
- 'org_id'?: number;
80
+ 'org_id'?: number | null;
81
81
  /**
82
82
  * The ID of the project linked to the activity
83
83
  * @type {number}
84
84
  */
85
- 'project_id'?: number;
85
+ 'project_id'?: number | null;
86
86
  /**
87
87
  * The due date of the activity
88
88
  * @type {string}
@@ -92,12 +92,12 @@ export interface ActivityItem {
92
92
  * The due time of the activity
93
93
  * @type {string}
94
94
  */
95
- 'due_time'?: string;
95
+ 'due_time'?: string | null;
96
96
  /**
97
97
  * The duration of the activity
98
98
  * @type {string}
99
99
  */
100
- 'duration'?: string;
100
+ 'duration'?: string | null;
101
101
  /**
102
102
  * Whether the activity marks the assignee as busy or not in their calendar
103
103
  * @type {boolean}
@@ -112,12 +112,12 @@ export interface ActivityItem {
112
112
  * The date and time when the activity was marked as done
113
113
  * @type {string}
114
114
  */
115
- 'marked_as_done_time'?: string;
115
+ 'marked_as_done_time'?: string | null;
116
116
  /**
117
117
  *
118
- * @type {AddActivityRequestLocation}
118
+ * @type {ActivityItemLocation}
119
119
  */
120
- 'location'?: AddActivityRequestLocation;
120
+ 'location'?: ActivityItemLocation | null;
121
121
  /**
122
122
  * The participants of the activity
123
123
  * @type {Array<AddActivityRequestParticipantsInner>}
@@ -45,7 +45,7 @@ export interface AddOrganizationRequest {
45
45
  *
46
46
  * @type {OrganizationItemAddress}
47
47
  */
48
- 'address'?: OrganizationItemAddress;
48
+ 'address'?: OrganizationItemAddress | null;
49
49
  /**
50
50
  * The website of the organization
51
51
  * @type {string}
@@ -63,7 +63,7 @@ export interface AddPersonRequest {
63
63
  *
64
64
  * @type {PersonItemAddress}
65
65
  */
66
- 'postal_address'?: PersonItemAddress;
66
+ 'postal_address'?: PersonItemAddress | null;
67
67
  /**
68
68
  * Contact sync notes of the person, maximum 10 000 characters. Only accepted when contact sync is enabled for the company; otherwise the request returns 403.
69
69
  * @type {string}
@@ -69,7 +69,7 @@ export interface Deal {
69
69
  * The last updated date and time of the deal
70
70
  * @type {string}
71
71
  */
72
- 'update_time'?: string;
72
+ 'update_time'?: string | null;
73
73
  /**
74
74
  * The last updated date and time of the deal stage
75
75
  * @type {string}
@@ -19,5 +19,5 @@ export interface GetActivitiesResponseAllOfAdditionalData {
19
19
  * The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned.
20
20
  * @type {string}
21
21
  */
22
- 'next_cursor'?: string;
22
+ 'next_cursor'?: string | null;
23
23
  }
@@ -38,7 +38,7 @@ export interface GetDealSearchResponseAllOfDataItemsInnerItem {
38
38
  * The value of the deal
39
39
  * @type {number}
40
40
  */
41
- 'value'?: number;
41
+ 'value'?: number | null;
42
42
  /**
43
43
  * The currency of the deal
44
44
  * @type {string}
@@ -19,5 +19,5 @@ export interface GetDealsProductsResponseAdditionalData {
19
19
  * The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned.
20
20
  * @type {string}
21
21
  */
22
- 'next_cursor'?: string;
22
+ 'next_cursor'?: string | null;
23
23
  }
@@ -35,7 +35,7 @@ export interface GetOrganizationSearchResponseAllOfDataItemsInnerItem {
35
35
  * The address of the organization
36
36
  * @type {string}
37
37
  */
38
- 'address'?: string;
38
+ 'address'?: string | null;
39
39
  /**
40
40
  * The visibility of the organization
41
41
  * @type {number}
@@ -33,9 +33,9 @@ export interface GetProductSearchResponseAllOfDataItemsInnerItem {
33
33
  'name'?: string;
34
34
  /**
35
35
  * The code of the product
36
- * @type {number}
36
+ * @type {string}
37
37
  */
38
- 'code'?: number;
38
+ 'code'?: string | null;
39
39
  /**
40
40
  * The visibility of the product
41
41
  * @type {number}
@@ -1,4 +1,5 @@
1
1
  export * from './activity-item';
2
+ export * from './activity-item-location';
2
3
  export * from './add-ainstallment-response';
3
4
  export * from './add-activity-request';
4
5
  export * from './add-activity-request-attendees-inner';
@@ -1,4 +1,5 @@
1
1
  export * from './activity-item';
2
+ export * from './activity-item-location';
2
3
  export * from './add-ainstallment-response';
3
4
  export * from './add-activity-request';
4
5
  export * from './add-activity-request-attendees-inner';
@@ -42,7 +42,7 @@ export interface LeadSearchItemItem {
42
42
  *
43
43
  * @type {LeadSearchItemItemPerson}
44
44
  */
45
- 'person'?: LeadSearchItemItemPerson;
45
+ 'person'?: LeadSearchItemItemPerson | null;
46
46
  /**
47
47
  *
48
48
  * @type {LeadSearchItemItemOrganization}
@@ -24,45 +24,45 @@ export interface OrganizationItemAddress {
24
24
  * Country of the organization
25
25
  * @type {string}
26
26
  */
27
- 'country'?: string;
27
+ 'country'?: string | null;
28
28
  /**
29
29
  * Admin area level 1 (e.g. state) of the organization
30
30
  * @type {string}
31
31
  */
32
- 'admin_area_level_1'?: string;
32
+ 'admin_area_level_1'?: string | null;
33
33
  /**
34
34
  * Admin area level 2 (e.g. county) of the organization
35
35
  * @type {string}
36
36
  */
37
- 'admin_area_level_2'?: string;
37
+ 'admin_area_level_2'?: string | null;
38
38
  /**
39
39
  * Locality (e.g. city) of the organization
40
40
  * @type {string}
41
41
  */
42
- 'locality'?: string;
42
+ 'locality'?: string | null;
43
43
  /**
44
44
  * Sublocality (e.g. neighborhood) of the organization
45
45
  * @type {string}
46
46
  */
47
- 'sublocality'?: string;
47
+ 'sublocality'?: string | null;
48
48
  /**
49
49
  * Route (e.g. street) of the organization
50
50
  * @type {string}
51
51
  */
52
- 'route'?: string;
52
+ 'route'?: string | null;
53
53
  /**
54
54
  * Street number of the organization
55
55
  * @type {string}
56
56
  */
57
- 'street_number'?: string;
57
+ 'street_number'?: string | null;
58
58
  /**
59
59
  * Subpremise (e.g. apartment/suite number) of the organization
60
60
  * @type {string}
61
61
  */
62
- 'subpremise'?: string;
62
+ 'subpremise'?: string | null;
63
63
  /**
64
64
  * Postal code of the organization
65
65
  * @type {string}
66
66
  */
67
- 'postal_code'?: string;
67
+ 'postal_code'?: string | null;
68
68
  }
@@ -40,7 +40,7 @@ export interface OrganizationItem {
40
40
  * The last updated date and time of the organization
41
41
  * @type {string}
42
42
  */
43
- 'update_time'?: string;
43
+ 'update_time'?: string | null;
44
44
  /**
45
45
  * Whether the organization is deleted or not
46
46
  * @type {boolean}
@@ -55,7 +55,7 @@ export interface OrganizationItem {
55
55
  *
56
56
  * @type {OrganizationItemAddress}
57
57
  */
58
- 'address'?: OrganizationItemAddress;
58
+ 'address'?: OrganizationItemAddress | null;
59
59
  /**
60
60
  * The IDs of labels assigned to the organization
61
61
  * @type {Array<number>}
@@ -24,45 +24,45 @@ export interface PersonItemAddress {
24
24
  * Country of the person
25
25
  * @type {string}
26
26
  */
27
- 'country'?: string;
27
+ 'country'?: string | null;
28
28
  /**
29
29
  * Admin area level 1 (e.g. state) of the person
30
30
  * @type {string}
31
31
  */
32
- 'admin_area_level_1'?: string;
32
+ 'admin_area_level_1'?: string | null;
33
33
  /**
34
34
  * Admin area level 2 (e.g. county) of the person
35
35
  * @type {string}
36
36
  */
37
- 'admin_area_level_2'?: string;
37
+ 'admin_area_level_2'?: string | null;
38
38
  /**
39
39
  * Locality (e.g. city) of the person
40
40
  * @type {string}
41
41
  */
42
- 'locality'?: string;
42
+ 'locality'?: string | null;
43
43
  /**
44
44
  * Sublocality (e.g. neighborhood) of the person
45
45
  * @type {string}
46
46
  */
47
- 'sublocality'?: string;
47
+ 'sublocality'?: string | null;
48
48
  /**
49
49
  * Route (e.g. street) of the person
50
50
  * @type {string}
51
51
  */
52
- 'route'?: string;
52
+ 'route'?: string | null;
53
53
  /**
54
54
  * Street number of the person
55
55
  * @type {string}
56
56
  */
57
- 'street_number'?: string;
57
+ 'street_number'?: string | null;
58
58
  /**
59
59
  * Subpremise (e.g. apartment/suite number) of the person
60
60
  * @type {string}
61
61
  */
62
- 'subpremise'?: string;
62
+ 'subpremise'?: string | null;
63
63
  /**
64
64
  * Postal code of the person
65
65
  * @type {string}
66
66
  */
67
- 'postal_code'?: string;
67
+ 'postal_code'?: string | null;
68
68
  }
@@ -58,7 +58,7 @@ export interface Person {
58
58
  * The last updated date and time of the person
59
59
  * @type {string}
60
60
  */
61
- 'update_time'?: string;
61
+ 'update_time'?: string | null;
62
62
  /**
63
63
  * The emails of the person
64
64
  * @type {Array<PersonItemEmail>}
@@ -88,12 +88,12 @@ export interface Person {
88
88
  * The ID of the picture associated with the person
89
89
  * @type {number}
90
90
  */
91
- 'picture_id'?: number;
91
+ 'picture_id'?: number | null;
92
92
  /**
93
93
  *
94
94
  * @type {PersonItemAddress}
95
95
  */
96
- 'postal_address'?: PersonItemAddress;
96
+ 'postal_address'?: PersonItemAddress | null;
97
97
  /**
98
98
  * Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company
99
99
  * @type {string}
@@ -64,5 +64,5 @@ export interface StageItem {
64
64
  * The stage update time
65
65
  * @type {string}
66
66
  */
67
- 'update_time'?: string;
67
+ 'update_time'?: string | null;
68
68
  }
@@ -64,5 +64,5 @@ export interface StageItem1 {
64
64
  * The stage update time
65
65
  * @type {string}
66
66
  */
67
- 'update_time'?: string;
67
+ 'update_time'?: string | null;
68
68
  }
@@ -40,7 +40,7 @@ export interface UpdateOrganizationRequest {
40
40
  *
41
41
  * @type {OrganizationItemAddress}
42
42
  */
43
- 'address'?: OrganizationItemAddress;
43
+ 'address'?: OrganizationItemAddress | null;
44
44
  /**
45
45
  * The website of the organization
46
46
  * @type {string}
@@ -58,7 +58,7 @@ export interface UpdatePersonRequest {
58
58
  *
59
59
  * @type {PersonItemAddress}
60
60
  */
61
- 'postal_address'?: PersonItemAddress;
61
+ 'postal_address'?: PersonItemAddress | null;
62
62
  /**
63
63
  * Contact sync notes of the person, maximum 10 000 characters. Only accepted when contact sync is enabled for the company; otherwise the request returns 403.
64
64
  * @type {string}
@@ -32,9 +32,9 @@ export interface DealAllOfCreatorUserId {
32
32
  'email'?: string;
33
33
  /**
34
34
  * If the creator has a picture or not
35
- * @type {boolean}
35
+ * @type {number}
36
36
  */
37
- 'has_pic'?: boolean;
37
+ 'has_pic'?: number;
38
38
  /**
39
39
  * The creator picture hash
40
40
  * @type {string}
@@ -21,7 +21,7 @@ export interface GetAssociatedProductFilesResponseAllOf {
21
21
  * The array of files
22
22
  * @type {Array<GetAssociatedProductFilesResponseAllOfDataInner>}
23
23
  */
24
- 'data': Array<GetAssociatedProductFilesResponseAllOfDataInner>;
24
+ 'data': Array<GetAssociatedProductFilesResponseAllOfDataInner> | null;
25
25
  /**
26
26
  *
27
27
  * @type {GetFieldsResponseAllOfAdditionalData}