pipedrive 32.1.0 → 32.2.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 (61) hide show
  1. package/dist/esm/versions/v1/api/filters-api.d.ts +30 -6
  2. package/dist/esm/versions/v1/api/filters-api.js +30 -15
  3. package/dist/esm/versions/v1/models/filter-conditions-conditions-inner-conditions-inner.d.ts +53 -0
  4. package/dist/esm/versions/v1/models/filter-conditions-conditions-inner-conditions-inner.js +14 -0
  5. package/dist/esm/versions/v1/models/filter-conditions-conditions-inner.d.ts +34 -0
  6. package/dist/esm/versions/{v2/models/update-person-request.js → v1/models/filter-conditions-conditions-inner.js} +5 -7
  7. package/dist/esm/versions/v1/models/filter-conditions.d.ts +33 -0
  8. package/dist/esm/versions/v1/models/filter-conditions.js +16 -0
  9. package/dist/esm/versions/v1/models/filter.d.ts +40 -17
  10. package/dist/esm/versions/v1/models/filter.js +6 -0
  11. package/dist/esm/versions/v1/models/get-filters-response-all-of-data-inner.d.ts +45 -8
  12. package/dist/esm/versions/v1/models/get-filters-response-all-of-data-inner.js +15 -1
  13. package/dist/esm/versions/v1/models/get-filters-response1-all-of-data.d.ts +106 -0
  14. package/dist/esm/versions/v1/models/get-filters-response1-all-of-data.js +28 -0
  15. package/dist/esm/versions/v1/models/get-filters-response1-all-of.d.ts +3 -3
  16. package/dist/esm/versions/v1/models/index.d.ts +4 -0
  17. package/dist/esm/versions/v1/models/index.js +4 -0
  18. package/dist/esm/versions/v1/models/user-access.d.ts +3 -3
  19. package/dist/esm/versions/v1/models/user-access1.d.ts +3 -3
  20. package/dist/esm/versions/v2/api/persons-api.d.ts +6 -7
  21. package/dist/esm/versions/v2/api/persons-api.js +8 -8
  22. package/dist/esm/versions/v2/models/add-organization-field-request.d.ts +0 -5
  23. package/dist/esm/versions/v2/models/add-person-field-request.d.ts +0 -5
  24. package/dist/esm/versions/v2/models/add-product-field-request.d.ts +0 -5
  25. package/dist/esm/versions/v2/models/create-many-deal-product-request.d.ts +1 -1
  26. package/dist/esm/versions/v2/models/index.d.ts +0 -1
  27. package/dist/esm/versions/v2/models/index.js +0 -1
  28. package/dist/esm/versions/v2/models/update-person-field-request.d.ts +0 -5
  29. package/dist/esm/versions/v2/models/update-product-field-request.d.ts +0 -5
  30. package/dist/versions/v1/api/filters-api.d.ts +30 -6
  31. package/dist/versions/v1/api/filters-api.js +30 -15
  32. package/dist/versions/v1/models/filter-conditions-conditions-inner-conditions-inner.d.ts +53 -0
  33. package/dist/versions/v1/models/filter-conditions-conditions-inner-conditions-inner.js +15 -0
  34. package/dist/versions/v1/models/filter-conditions-conditions-inner.d.ts +34 -0
  35. package/dist/versions/{v2/models/update-person-request.js → v1/models/filter-conditions-conditions-inner.js} +6 -8
  36. package/dist/versions/v1/models/filter-conditions.d.ts +33 -0
  37. package/dist/versions/v1/models/filter-conditions.js +19 -0
  38. package/dist/versions/v1/models/filter.d.ts +40 -17
  39. package/dist/versions/v1/models/filter.js +7 -1
  40. package/dist/versions/v1/models/get-filters-response-all-of-data-inner.d.ts +45 -8
  41. package/dist/versions/v1/models/get-filters-response-all-of-data-inner.js +16 -0
  42. package/dist/versions/v1/models/get-filters-response1-all-of-data.d.ts +106 -0
  43. package/dist/versions/v1/models/get-filters-response1-all-of-data.js +31 -0
  44. package/dist/versions/v1/models/get-filters-response1-all-of.d.ts +3 -3
  45. package/dist/versions/v1/models/index.d.ts +4 -0
  46. package/dist/versions/v1/models/index.js +4 -0
  47. package/dist/versions/v1/models/user-access.d.ts +3 -3
  48. package/dist/versions/v1/models/user-access1.d.ts +3 -3
  49. package/dist/versions/v2/api/persons-api.d.ts +6 -7
  50. package/dist/versions/v2/api/persons-api.js +8 -8
  51. package/dist/versions/v2/models/add-organization-field-request.d.ts +0 -5
  52. package/dist/versions/v2/models/add-person-field-request.d.ts +0 -5
  53. package/dist/versions/v2/models/add-product-field-request.d.ts +0 -5
  54. package/dist/versions/v2/models/create-many-deal-product-request.d.ts +1 -1
  55. package/dist/versions/v2/models/index.d.ts +0 -1
  56. package/dist/versions/v2/models/index.js +0 -1
  57. package/dist/versions/v2/models/update-person-field-request.d.ts +0 -5
  58. package/dist/versions/v2/models/update-product-field-request.d.ts +0 -5
  59. package/package.json +1 -1
  60. package/dist/esm/versions/v2/models/update-person-request.d.ts +0 -84
  61. package/dist/versions/v2/models/update-person-request.d.ts +0 -84
@@ -41,11 +41,12 @@ const FiltersApiAxiosParamCreator = function (configuration) {
41
41
  /**
42
42
  * Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with \'AND\', and only two second level condition groups are supported of which one must be glued with \'AND\' and the second with \'OR\'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
43
43
  * @summary Add a new filter
44
+ * @param {boolean} [include_field_code] If set to &#x60;true&#x60;, each condition in the response includes a &#x60;field_code&#x60; field identifying the field by its code name
44
45
  * @param {AddFilterRequest} [AddFilterRequest]
45
46
 
46
47
  * @throws {RequiredError}
47
48
  */
48
- addFilter: (AddFilterRequest) => __awaiter(this, void 0, void 0, function* () {
49
+ addFilter: (include_field_code, AddFilterRequest) => __awaiter(this, void 0, void 0, function* () {
49
50
  const localVarPath = `/filters`;
50
51
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
52
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -61,6 +62,9 @@ const FiltersApiAxiosParamCreator = function (configuration) {
61
62
  // authentication oauth2 required
62
63
  // oauth required
63
64
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
65
+ if (include_field_code !== undefined) {
66
+ localVarQueryParameter['include_field_code'] = include_field_code;
67
+ }
64
68
  localVarHeaderParameter['Content-Type'] = 'application/json';
65
69
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
66
70
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -145,10 +149,11 @@ const FiltersApiAxiosParamCreator = function (configuration) {
145
149
  * Returns data about a specific filter. Note that this also returns the condition lines of the filter.
146
150
  * @summary Get one filter
147
151
  * @param {number} id The ID of the filter
152
+ * @param {boolean} [include_field_code] If set to &#x60;true&#x60;, each condition in the response includes a &#x60;field_code&#x60; field identifying the field by its code name
148
153
 
149
154
  * @throws {RequiredError}
150
155
  */
151
- getFilter: (id) => __awaiter(this, void 0, void 0, function* () {
156
+ getFilter: (id, include_field_code) => __awaiter(this, void 0, void 0, function* () {
152
157
  // verify required parameter 'id' is not null or undefined
153
158
  (0, common_1.assertParamExists)('getFilter', 'id', id);
154
159
  const localVarPath = `/filters/{id}`
@@ -167,6 +172,9 @@ const FiltersApiAxiosParamCreator = function (configuration) {
167
172
  // authentication oauth2 required
168
173
  // oauth required
169
174
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration);
175
+ if (include_field_code !== undefined) {
176
+ localVarQueryParameter['include_field_code'] = include_field_code;
177
+ }
170
178
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
171
179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
172
180
  localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
@@ -243,11 +251,12 @@ const FiltersApiAxiosParamCreator = function (configuration) {
243
251
  * Updates an existing filter.
244
252
  * @summary Update filter
245
253
  * @param {number} id The ID of the filter
254
+ * @param {boolean} [include_field_code] If set to &#x60;true&#x60;, each condition in the response includes a &#x60;field_code&#x60; field identifying the field by its code name
246
255
  * @param {UpdateFilterRequest} [UpdateFilterRequest]
247
256
 
248
257
  * @throws {RequiredError}
249
258
  */
250
- updateFilter: (id, UpdateFilterRequest) => __awaiter(this, void 0, void 0, function* () {
259
+ updateFilter: (id, include_field_code, UpdateFilterRequest) => __awaiter(this, void 0, void 0, function* () {
251
260
  // verify required parameter 'id' is not null or undefined
252
261
  (0, common_1.assertParamExists)('updateFilter', 'id', id);
253
262
  const localVarPath = `/filters/{id}`
@@ -266,6 +275,9 @@ const FiltersApiAxiosParamCreator = function (configuration) {
266
275
  // authentication oauth2 required
267
276
  // oauth required
268
277
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
278
+ if (include_field_code !== undefined) {
279
+ localVarQueryParameter['include_field_code'] = include_field_code;
280
+ }
269
281
  localVarHeaderParameter['Content-Type'] = 'application/json';
270
282
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
271
283
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -289,13 +301,14 @@ const FiltersApiFp = function (configuration) {
289
301
  /**
290
302
  * Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with \'AND\', and only two second level condition groups are supported of which one must be glued with \'AND\' and the second with \'OR\'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
291
303
  * @summary Add a new filter
304
+ * @param {boolean} [include_field_code] If set to &#x60;true&#x60;, each condition in the response includes a &#x60;field_code&#x60; field identifying the field by its code name
292
305
  * @param {AddFilterRequest} [AddFilterRequest]
293
306
 
294
307
  * @throws {RequiredError}
295
308
  */
296
- addFilter(AddFilterRequest) {
309
+ addFilter(include_field_code, AddFilterRequest) {
297
310
  return __awaiter(this, void 0, void 0, function* () {
298
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addFilter(AddFilterRequest);
311
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addFilter(include_field_code, AddFilterRequest);
299
312
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
300
313
  });
301
314
  },
@@ -329,12 +342,13 @@ const FiltersApiFp = function (configuration) {
329
342
  * Returns data about a specific filter. Note that this also returns the condition lines of the filter.
330
343
  * @summary Get one filter
331
344
  * @param {number} id The ID of the filter
345
+ * @param {boolean} [include_field_code] If set to &#x60;true&#x60;, each condition in the response includes a &#x60;field_code&#x60; field identifying the field by its code name
332
346
 
333
347
  * @throws {RequiredError}
334
348
  */
335
- getFilter(id) {
349
+ getFilter(id, include_field_code) {
336
350
  return __awaiter(this, void 0, void 0, function* () {
337
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getFilter(id);
351
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFilter(id, include_field_code);
338
352
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
339
353
  });
340
354
  },
@@ -367,13 +381,14 @@ const FiltersApiFp = function (configuration) {
367
381
  * Updates an existing filter.
368
382
  * @summary Update filter
369
383
  * @param {number} id The ID of the filter
384
+ * @param {boolean} [include_field_code] If set to &#x60;true&#x60;, each condition in the response includes a &#x60;field_code&#x60; field identifying the field by its code name
370
385
  * @param {UpdateFilterRequest} [UpdateFilterRequest]
371
386
 
372
387
  * @throws {RequiredError}
373
388
  */
374
- updateFilter(id, UpdateFilterRequest) {
389
+ updateFilter(id, include_field_code, UpdateFilterRequest) {
375
390
  return __awaiter(this, void 0, void 0, function* () {
376
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFilter(id, UpdateFilterRequest);
391
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFilter(id, include_field_code, UpdateFilterRequest);
377
392
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
378
393
  });
379
394
  },
@@ -395,7 +410,7 @@ const FiltersApiFactory = function (configuration, basePath, axios) {
395
410
  * @throws {RequiredError}
396
411
  */
397
412
  addFilter(requestParameters = {}) {
398
- return localVarFp.addFilter(requestParameters.AddFilterRequest).then((request) => request(axios, basePath));
413
+ return localVarFp.addFilter(requestParameters.include_field_code, requestParameters.AddFilterRequest).then((request) => request(axios, basePath));
399
414
  },
400
415
  /**
401
416
  * Marks a filter as deleted.
@@ -425,7 +440,7 @@ const FiltersApiFactory = function (configuration, basePath, axios) {
425
440
  * @throws {RequiredError}
426
441
  */
427
442
  getFilter(requestParameters) {
428
- return localVarFp.getFilter(requestParameters.id).then((request) => request(axios, basePath));
443
+ return localVarFp.getFilter(requestParameters.id, requestParameters.include_field_code).then((request) => request(axios, basePath));
429
444
  },
430
445
  /**
431
446
  * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
@@ -454,7 +469,7 @@ const FiltersApiFactory = function (configuration, basePath, axios) {
454
469
  * @throws {RequiredError}
455
470
  */
456
471
  updateFilter(requestParameters) {
457
- return localVarFp.updateFilter(requestParameters.id, requestParameters.UpdateFilterRequest).then((request) => request(axios, basePath));
472
+ return localVarFp.updateFilter(requestParameters.id, requestParameters.include_field_code, requestParameters.UpdateFilterRequest).then((request) => request(axios, basePath));
458
473
  },
459
474
  };
460
475
  };
@@ -475,7 +490,7 @@ class FiltersApi extends base_1.BaseAPI {
475
490
  * @memberof FiltersApi
476
491
  */
477
492
  addFilter(requestParameters = {}) {
478
- return (0, exports.FiltersApiFp)(this.configuration).addFilter(requestParameters.AddFilterRequest).then((request) => request(this.axios, this.basePath));
493
+ return (0, exports.FiltersApiFp)(this.configuration).addFilter(requestParameters.include_field_code, requestParameters.AddFilterRequest).then((request) => request(this.axios, this.basePath));
479
494
  }
480
495
  /**
481
496
  * Marks a filter as deleted.
@@ -508,7 +523,7 @@ class FiltersApi extends base_1.BaseAPI {
508
523
  * @memberof FiltersApi
509
524
  */
510
525
  getFilter(requestParameters) {
511
- return (0, exports.FiltersApiFp)(this.configuration).getFilter(requestParameters.id).then((request) => request(this.axios, this.basePath));
526
+ return (0, exports.FiltersApiFp)(this.configuration).getFilter(requestParameters.id, requestParameters.include_field_code).then((request) => request(this.axios, this.basePath));
512
527
  }
513
528
  /**
514
529
  * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
@@ -540,7 +555,7 @@ class FiltersApi extends base_1.BaseAPI {
540
555
  * @memberof FiltersApi
541
556
  */
542
557
  updateFilter(requestParameters) {
543
- return (0, exports.FiltersApiFp)(this.configuration).updateFilter(requestParameters.id, requestParameters.UpdateFilterRequest).then((request) => request(this.axios, this.basePath));
558
+ return (0, exports.FiltersApiFp)(this.configuration).updateFilter(requestParameters.id, requestParameters.include_field_code, requestParameters.UpdateFilterRequest).then((request) => request(this.axios, this.basePath));
544
559
  }
545
560
  }
546
561
  exports.FiltersApi = FiltersApi;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Pipedrive API v1
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.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
+ * A single filter condition
14
+ * @export
15
+ * @interface FilterConditionsConditionsInnerConditionsInner
16
+ */
17
+ export interface FilterConditionsConditionsInnerConditionsInner {
18
+ /**
19
+ * The type of entity the condition applies to (e.g. \"deal\", \"person\")
20
+ * @type {string}
21
+ */
22
+ 'object'?: string;
23
+ /**
24
+ * The ID of the field
25
+ * @type {string}
26
+ */
27
+ 'field_id'?: string;
28
+ /**
29
+ * The operator used in the condition (e.g. \"=\", \"IS NOT NULL\")
30
+ * @type {string}
31
+ */
32
+ 'operator'?: string;
33
+ /**
34
+ * The value of the condition
35
+ * @type {string}
36
+ */
37
+ 'value'?: string | null;
38
+ /**
39
+ * An extra value for conditions that require two values
40
+ * @type {string}
41
+ */
42
+ 'extra_value'?: string | null;
43
+ /**
44
+ * Whether the value is JSON-encoded
45
+ * @type {boolean}
46
+ */
47
+ 'json_value_flag'?: boolean;
48
+ /**
49
+ * The code name of the field. Present when `include_field_code=true` is passed as a query parameter; `null` if the field code cannot be resolved
50
+ * @type {string}
51
+ */
52
+ 'field_code'?: string | null;
53
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pipedrive API v1
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Pipedrive API v1
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.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
+ import { FilterConditionsConditionsInnerConditionsInner } from './filter-conditions-conditions-inner-conditions-inner';
13
+ /**
14
+ * A group of conditions joined by a logical operator
15
+ * @export
16
+ * @interface FilterConditionsConditionsInner
17
+ */
18
+ export interface FilterConditionsConditionsInner {
19
+ /**
20
+ * The logical operator joining conditions within this group
21
+ * @type {string}
22
+ */
23
+ 'glue'?: FilterConditionsConditionsInnerGlueConst;
24
+ /**
25
+ * The individual conditions in this group
26
+ * @type {Array<FilterConditionsConditionsInnerConditionsInner>}
27
+ */
28
+ 'conditions'?: Array<FilterConditionsConditionsInnerConditionsInner>;
29
+ }
30
+ export declare const FilterConditionsConditionsInnerGlueConst: {
31
+ readonly and: "and";
32
+ readonly or: "or";
33
+ };
34
+ export type FilterConditionsConditionsInnerGlueConst = typeof FilterConditionsConditionsInnerGlueConst[keyof typeof FilterConditionsConditionsInnerGlueConst];
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Pipedrive API v2
5
+ * Pipedrive API v1
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 2.0.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,10 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UpdatePersonRequestMarketingStatusConst = void 0;
17
- exports.UpdatePersonRequestMarketingStatusConst = {
18
- no_consent: 'no_consent',
19
- unsubscribed: 'unsubscribed',
20
- subscribed: 'subscribed',
21
- archived: 'archived'
16
+ exports.FilterConditionsConditionsInnerGlueConst = void 0;
17
+ exports.FilterConditionsConditionsInnerGlueConst = {
18
+ and: 'and',
19
+ or: 'or'
22
20
  };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Pipedrive API v1
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.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
+ import { FilterConditionsConditionsInner } from './filter-conditions-conditions-inner';
13
+ /**
14
+ * The conditions object of a filter
15
+ * @export
16
+ * @interface FilterConditions
17
+ */
18
+ export interface FilterConditions {
19
+ /**
20
+ * The top-level glue is always \"and\"
21
+ * @type {string}
22
+ */
23
+ 'glue'?: FilterConditionsGlueConst;
24
+ /**
25
+ * The condition groups
26
+ * @type {Array<FilterConditionsConditionsInner>}
27
+ */
28
+ 'conditions'?: Array<FilterConditionsConditionsInner>;
29
+ }
30
+ export declare const FilterConditionsGlueConst: {
31
+ readonly and: "and";
32
+ };
33
+ export type FilterConditionsGlueConst = typeof FilterConditionsGlueConst[keyof typeof FilterConditionsGlueConst];
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pipedrive API v1
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FilterConditionsGlueConst = void 0;
17
+ exports.FilterConditionsGlueConst = {
18
+ and: 'and'
19
+ };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { FilterConditions } from './filter-conditions';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -16,17 +17,27 @@
16
17
  */
17
18
  export interface Filter {
18
19
  /**
19
- * The ID of the created filter
20
+ * The ID of the filter
20
21
  * @type {number}
21
22
  */
22
23
  'id'?: number;
23
24
  /**
24
- * The name of the created filter
25
+ * The name of the filter
25
26
  * @type {string}
26
27
  */
27
28
  'name'?: string;
28
29
  /**
29
- * The activity flag of the created filter
30
+ * The system code of the filter
31
+ * @type {string}
32
+ */
33
+ 'filter_code'?: string | null;
34
+ /**
35
+ * Whether the filter can be edited by the requesting user
36
+ * @type {boolean}
37
+ */
38
+ 'is_editable'?: boolean;
39
+ /**
40
+ * The activity flag of the filter
30
41
  * @type {boolean}
31
42
  */
32
43
  'active_flag'?: boolean;
@@ -36,40 +47,45 @@ export interface Filter {
36
47
  */
37
48
  'type'?: FilterTypeConst;
38
49
  /**
39
- * If the created filter is temporary or not
50
+ * Whether the filter is temporary
40
51
  * @type {boolean}
41
52
  */
42
- 'temporary_flag'?: boolean;
53
+ 'temporary_flag'?: boolean | null;
43
54
  /**
44
- * The user ID of the created filter
55
+ * The user ID of the filter owner
45
56
  * @type {number}
46
57
  */
47
58
  'user_id'?: number;
48
59
  /**
49
- * The add time of the created filter
60
+ * The date and time when the filter was added
50
61
  * @type {string}
51
62
  */
52
63
  'add_time'?: string;
53
64
  /**
54
- * The update time of the created filter
65
+ * The date and time when the filter was last updated
55
66
  * @type {string}
56
67
  */
57
- 'update_time'?: string;
68
+ 'update_time'?: string | null;
58
69
  /**
59
- * The visibility group ID of the created filter
60
- * @type {number}
70
+ *
71
+ * @type {string}
61
72
  */
62
- 'visible_to'?: number;
73
+ 'visible_to'?: FilterVisibleToConst;
63
74
  /**
64
- * The custom view ID of the created filter
75
+ * The date and time when the filter was last used
76
+ * @type {string}
77
+ */
78
+ 'last_used_time'?: string | null;
79
+ /**
80
+ * The custom view ID linked to the filter
65
81
  * @type {number}
66
82
  */
67
- 'custom_view_id'?: number;
83
+ 'custom_view_id'?: number | null;
68
84
  /**
69
- * The created filter conditions object
70
- * @type {object}
85
+ *
86
+ * @type {FilterConditions}
71
87
  */
72
- 'conditions'?: object;
88
+ 'conditions'?: FilterConditions;
73
89
  }
74
90
  export declare const FilterTypeConst: {
75
91
  readonly deals: "deals";
@@ -81,3 +97,10 @@ export declare const FilterTypeConst: {
81
97
  readonly projects: "projects";
82
98
  };
83
99
  export type FilterTypeConst = typeof FilterTypeConst[keyof typeof FilterTypeConst];
100
+ export declare const FilterVisibleToConst: {
101
+ readonly _1: "1";
102
+ readonly _3: "3";
103
+ readonly _5: "5";
104
+ readonly _7: "7";
105
+ };
106
+ export type FilterVisibleToConst = typeof FilterVisibleToConst[keyof typeof FilterVisibleToConst];
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.FilterTypeConst = void 0;
16
+ exports.FilterVisibleToConst = exports.FilterTypeConst = void 0;
17
17
  exports.FilterTypeConst = {
18
18
  deals: 'deals',
19
19
  leads: 'leads',
@@ -23,3 +23,9 @@ exports.FilterTypeConst = {
23
23
  activity: 'activity',
24
24
  projects: 'projects'
25
25
  };
26
+ exports.FilterVisibleToConst = {
27
+ _1: '1',
28
+ _3: '3',
29
+ _5: '5',
30
+ _7: '7'
31
+ };
@@ -26,15 +26,30 @@ export interface GetFiltersResponseAllOfDataInner {
26
26
  */
27
27
  'name'?: string;
28
28
  /**
29
+ * The system code of the filter
30
+ * @type {string}
31
+ */
32
+ 'filter_code'?: string | null;
33
+ /**
34
+ * Whether the filter can be edited by the requesting user
35
+ * @type {boolean}
36
+ */
37
+ 'is_editable'?: boolean;
38
+ /**
29
39
  * The active flag of the filter
30
40
  * @type {boolean}
31
41
  */
32
42
  'active_flag'?: boolean;
33
43
  /**
34
- * The type of the item
44
+ *
35
45
  * @type {string}
36
46
  */
37
- 'type'?: string;
47
+ 'type'?: GetFiltersResponseAllOfDataInnerTypeConst;
48
+ /**
49
+ * Whether the filter is temporary
50
+ * @type {boolean}
51
+ */
52
+ 'temporary_flag'?: boolean | null;
38
53
  /**
39
54
  * The owner of the filter
40
55
  * @type {number}
@@ -49,15 +64,37 @@ export interface GetFiltersResponseAllOfDataInner {
49
64
  * The date and time when the filter was updated
50
65
  * @type {string}
51
66
  */
52
- 'update_time'?: string;
67
+ 'update_time'?: string | null;
53
68
  /**
54
- * The visibility group ID of who can see then filter
55
- * @type {number}
69
+ *
70
+ * @type {string}
71
+ */
72
+ 'visible_to'?: GetFiltersResponseAllOfDataInnerVisibleToConst;
73
+ /**
74
+ * The date and time when the filter was last used
75
+ * @type {string}
56
76
  */
57
- 'visible_to'?: number;
77
+ 'last_used_time'?: string | null;
58
78
  /**
59
- * Used by Pipedrive webapp
79
+ * The custom view ID linked to the filter
60
80
  * @type {number}
61
81
  */
62
- 'custom_view_id'?: number;
82
+ 'custom_view_id'?: number | null;
63
83
  }
84
+ export declare const GetFiltersResponseAllOfDataInnerTypeConst: {
85
+ readonly deals: "deals";
86
+ readonly leads: "leads";
87
+ readonly org: "org";
88
+ readonly people: "people";
89
+ readonly products: "products";
90
+ readonly activity: "activity";
91
+ readonly projects: "projects";
92
+ };
93
+ export type GetFiltersResponseAllOfDataInnerTypeConst = typeof GetFiltersResponseAllOfDataInnerTypeConst[keyof typeof GetFiltersResponseAllOfDataInnerTypeConst];
94
+ export declare const GetFiltersResponseAllOfDataInnerVisibleToConst: {
95
+ readonly _1: "1";
96
+ readonly _3: "3";
97
+ readonly _5: "5";
98
+ readonly _7: "7";
99
+ };
100
+ export type GetFiltersResponseAllOfDataInnerVisibleToConst = typeof GetFiltersResponseAllOfDataInnerVisibleToConst[keyof typeof GetFiltersResponseAllOfDataInnerVisibleToConst];
@@ -13,3 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetFiltersResponseAllOfDataInnerVisibleToConst = exports.GetFiltersResponseAllOfDataInnerTypeConst = void 0;
17
+ exports.GetFiltersResponseAllOfDataInnerTypeConst = {
18
+ deals: 'deals',
19
+ leads: 'leads',
20
+ org: 'org',
21
+ people: 'people',
22
+ products: 'products',
23
+ activity: 'activity',
24
+ projects: 'projects'
25
+ };
26
+ exports.GetFiltersResponseAllOfDataInnerVisibleToConst = {
27
+ _1: '1',
28
+ _3: '3',
29
+ _5: '5',
30
+ _7: '7'
31
+ };