pipedrive 23.2.3 → 23.2.5

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 (77) hide show
  1. package/README.md +59 -58
  2. package/dist/api/ActivitiesApi.js +21 -21
  3. package/dist/api/CallLogsApi.js +6 -6
  4. package/dist/api/DealsApi.js +8 -8
  5. package/dist/api/GoalsApi.js +16 -16
  6. package/dist/api/LeadLabelsApi.js +15 -15
  7. package/dist/api/LeadSourcesApi.js +4 -4
  8. package/dist/api/LeadsApi.js +18 -18
  9. package/dist/api/PipelinesApi.js +3 -3
  10. package/dist/api/ProjectTemplatesApi.js +12 -12
  11. package/dist/api/ProjectsApi.js +43 -43
  12. package/dist/api/StagesApi.js +6 -6
  13. package/dist/api/TasksApi.js +15 -15
  14. package/dist/index.js +175 -168
  15. package/dist/model/AddActivityResponse.js +107 -0
  16. package/dist/model/AddActivityResponseRelatedObjects.js +108 -0
  17. package/dist/model/AddProjectResponse.js +96 -0
  18. package/dist/model/AddTaskResponse.js +96 -0
  19. package/dist/model/CallLogBadRequestResponse.js +115 -0
  20. package/dist/model/CallLogConflictResponse.js +115 -0
  21. package/dist/model/CallLogForbiddenResponse.js +115 -0
  22. package/dist/model/CallLogGoneResponse.js +115 -0
  23. package/dist/model/CallLogInternalErrorResponse.js +115 -0
  24. package/dist/model/CallLogNotFoundResponse.js +115 -0
  25. package/dist/model/DeleteActivitiesResponse.js +87 -0
  26. package/dist/model/DeleteActivitiesResponseData.js +78 -0
  27. package/dist/model/DeleteActivityResponse.js +87 -0
  28. package/dist/model/DeleteActivityResponseData.js +78 -0
  29. package/dist/model/DeleteGoalResponse.js +78 -0
  30. package/dist/model/DeleteLeadIdResponse.js +87 -0
  31. package/dist/model/DeletePipelineResponse.js +88 -0
  32. package/dist/model/DeletePipelineResponseData.js +78 -0
  33. package/dist/model/DeleteProjectResponse.js +96 -0
  34. package/dist/model/DeleteStageResponse.js +88 -0
  35. package/dist/model/DeleteStageResponseData.js +78 -0
  36. package/dist/model/DeleteStagesResponse.js +88 -0
  37. package/dist/model/DeleteStagesResponseData.js +78 -0
  38. package/dist/model/DeleteTaskResponse.js +96 -0
  39. package/dist/model/GetActivitiesCollectionResponse.js +97 -0
  40. package/dist/model/GetActivitiesResponse.js +107 -0
  41. package/dist/model/GetActivitiesResponseRelatedObjects.js +108 -0
  42. package/dist/model/GetActivityResponse.js +97 -0
  43. package/dist/model/GetAddProductAttachmentDetails.js +89 -0
  44. package/dist/model/GetGoalResultResponse.js +88 -0
  45. package/dist/model/GetGoalsResponse.js +88 -0
  46. package/dist/model/GetLeadIdResponse.js +87 -0
  47. package/dist/model/GetLeadIdResponseData.js +77 -0
  48. package/dist/model/GetLeadLabelsResponse.js +87 -0
  49. package/dist/model/GetLeadResponse.js +87 -0
  50. package/dist/model/GetLeadsResponse.js +97 -0
  51. package/dist/model/GetLeadsSourceResponse.js +87 -0
  52. package/dist/model/GetLeadsSourceResponseData.js +78 -0
  53. package/dist/model/GetProductAttachmentDetails.js +89 -0
  54. package/dist/model/GetProjectBoardResponse.js +96 -0
  55. package/dist/model/GetProjectBoardsResponse.js +96 -0
  56. package/dist/model/GetProjectGroupsResponse.js +96 -0
  57. package/dist/model/GetProjectPhaseResponse.js +96 -0
  58. package/dist/model/GetProjectPhasesResponse.js +96 -0
  59. package/dist/model/GetProjectPlanResponse.js +96 -0
  60. package/dist/model/GetProjectResponse.js +96 -0
  61. package/dist/model/GetProjectTemplateResponse.js +96 -0
  62. package/dist/model/GetProjectTemplatesResponse.js +97 -0
  63. package/dist/model/GetProjectsResponse.js +97 -0
  64. package/dist/model/GetTaskResponse.js +96 -0
  65. package/dist/model/GetTasksResponse.js +97 -0
  66. package/dist/model/LeadNotFoundResponse.js +115 -0
  67. package/dist/model/ProductResponse.js +3 -3
  68. package/dist/model/ProductsResponse.js +3 -3
  69. package/dist/model/UpdateActivityPlanItem.js +96 -0
  70. package/dist/model/UpdateActivityResponse.js +97 -0
  71. package/dist/model/UpdateProductResponse.js +3 -3
  72. package/dist/model/UpdateProjectResponse.js +96 -0
  73. package/dist/model/UpdateTaskPlanItem.js +96 -0
  74. package/dist/model/UpdateTaskResponse.js +96 -0
  75. package/dist/model/UpsertGoalResponse.js +88 -0
  76. package/dist/model/UpsertLeadLabelResponse.js +87 -0
  77. package/package.json +1 -1
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _LeadResponse = _interopRequireDefault(require("./LeadResponse"));
12
+ /**
13
+ * Pipedrive API v1
14
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15
+ *
16
+ * The version of the OpenAPI document: 1.0.0
17
+ *
18
+ *
19
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
+ * https://openapi-generator.tech
21
+ * Do not edit the class manually.
22
+ *
23
+ */
24
+ /**
25
+ * The GetLeadResponse model module.
26
+ * @module model/GetLeadResponse
27
+ * @version 1.0.0
28
+ */
29
+ var GetLeadResponse = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>GetLeadResponse</code>.
32
+ * @alias module:model/GetLeadResponse
33
+ */
34
+ function GetLeadResponse() {
35
+ (0, _classCallCheck2["default"])(this, GetLeadResponse);
36
+ GetLeadResponse.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ (0, _createClass2["default"])(GetLeadResponse, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>GetLeadResponse</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/GetLeadResponse} obj Optional instance to populate.
53
+ * @return {module:model/GetLeadResponse} The populated <code>GetLeadResponse</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new GetLeadResponse();
60
+ if (data.hasOwnProperty('success')) {
61
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
62
+ delete data['success'];
63
+ }
64
+ if (data.hasOwnProperty('data')) {
65
+ obj['data'] = _LeadResponse["default"].constructFromObject(data['data']);
66
+ delete data['data'];
67
+ }
68
+ if (Object.keys(data).length > 0) {
69
+ Object.assign(obj, data);
70
+ }
71
+ }
72
+ return obj;
73
+ }
74
+ }]);
75
+ return GetLeadResponse;
76
+ }();
77
+ /**
78
+ * @member {Boolean} success
79
+ */
80
+ GetLeadResponse.prototype['success'] = undefined;
81
+
82
+ /**
83
+ * @member {module:model/LeadResponse} data
84
+ */
85
+ GetLeadResponse.prototype['data'] = undefined;
86
+ var _default = GetLeadResponse;
87
+ exports["default"] = _default;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _AdditionalData = _interopRequireDefault(require("./AdditionalData"));
12
+ var _LeadResponse = _interopRequireDefault(require("./LeadResponse"));
13
+ /**
14
+ * Pipedrive API v1
15
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16
+ *
17
+ * The version of the OpenAPI document: 1.0.0
18
+ *
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * The GetLeadsResponse model module.
27
+ * @module model/GetLeadsResponse
28
+ * @version 1.0.0
29
+ */
30
+ var GetLeadsResponse = /*#__PURE__*/function () {
31
+ /**
32
+ * Constructs a new <code>GetLeadsResponse</code>.
33
+ * @alias module:model/GetLeadsResponse
34
+ */
35
+ function GetLeadsResponse() {
36
+ (0, _classCallCheck2["default"])(this, GetLeadsResponse);
37
+ GetLeadsResponse.initialize(this);
38
+ }
39
+
40
+ /**
41
+ * Initializes the fields of this object.
42
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
43
+ * Only for internal use.
44
+ */
45
+ (0, _createClass2["default"])(GetLeadsResponse, null, [{
46
+ key: "initialize",
47
+ value: function initialize(obj) {}
48
+
49
+ /**
50
+ * Constructs a <code>GetLeadsResponse</code> from a plain JavaScript object, optionally creating a new instance.
51
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
52
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
53
+ * @param {module:model/GetLeadsResponse} obj Optional instance to populate.
54
+ * @return {module:model/GetLeadsResponse} The populated <code>GetLeadsResponse</code> instance.
55
+ */
56
+ }, {
57
+ key: "constructFromObject",
58
+ value: function constructFromObject(data, obj) {
59
+ if (data) {
60
+ obj = obj || new GetLeadsResponse();
61
+ if (data.hasOwnProperty('success')) {
62
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
63
+ delete data['success'];
64
+ }
65
+ if (data.hasOwnProperty('data')) {
66
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_LeadResponse["default"]]);
67
+ delete data['data'];
68
+ }
69
+ if (data.hasOwnProperty('additional_data')) {
70
+ obj['additional_data'] = _AdditionalData["default"].constructFromObject(data['additional_data']);
71
+ delete data['additional_data'];
72
+ }
73
+ if (Object.keys(data).length > 0) {
74
+ Object.assign(obj, data);
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+ }]);
80
+ return GetLeadsResponse;
81
+ }();
82
+ /**
83
+ * @member {Boolean} success
84
+ */
85
+ GetLeadsResponse.prototype['success'] = undefined;
86
+
87
+ /**
88
+ * @member {Array.<module:model/LeadResponse>} data
89
+ */
90
+ GetLeadsResponse.prototype['data'] = undefined;
91
+
92
+ /**
93
+ * @member {module:model/AdditionalData} additional_data
94
+ */
95
+ GetLeadsResponse.prototype['additional_data'] = undefined;
96
+ var _default = GetLeadsResponse;
97
+ exports["default"] = _default;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _GetLeadsSourceResponseData = _interopRequireDefault(require("./GetLeadsSourceResponseData"));
12
+ /**
13
+ * Pipedrive API v1
14
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15
+ *
16
+ * The version of the OpenAPI document: 1.0.0
17
+ *
18
+ *
19
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
+ * https://openapi-generator.tech
21
+ * Do not edit the class manually.
22
+ *
23
+ */
24
+ /**
25
+ * The GetLeadsSourceResponse model module.
26
+ * @module model/GetLeadsSourceResponse
27
+ * @version 1.0.0
28
+ */
29
+ var GetLeadsSourceResponse = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>GetLeadsSourceResponse</code>.
32
+ * @alias module:model/GetLeadsSourceResponse
33
+ */
34
+ function GetLeadsSourceResponse() {
35
+ (0, _classCallCheck2["default"])(this, GetLeadsSourceResponse);
36
+ GetLeadsSourceResponse.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ (0, _createClass2["default"])(GetLeadsSourceResponse, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>GetLeadsSourceResponse</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/GetLeadsSourceResponse} obj Optional instance to populate.
53
+ * @return {module:model/GetLeadsSourceResponse} The populated <code>GetLeadsSourceResponse</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new GetLeadsSourceResponse();
60
+ if (data.hasOwnProperty('success')) {
61
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
62
+ delete data['success'];
63
+ }
64
+ if (data.hasOwnProperty('data')) {
65
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_GetLeadsSourceResponseData["default"]]);
66
+ delete data['data'];
67
+ }
68
+ if (Object.keys(data).length > 0) {
69
+ Object.assign(obj, data);
70
+ }
71
+ }
72
+ return obj;
73
+ }
74
+ }]);
75
+ return GetLeadsSourceResponse;
76
+ }();
77
+ /**
78
+ * @member {Boolean} success
79
+ */
80
+ GetLeadsSourceResponse.prototype['success'] = undefined;
81
+
82
+ /**
83
+ * @member {Array.<module:model/GetLeadsSourceResponseData>} data
84
+ */
85
+ GetLeadsSourceResponse.prototype['data'] = undefined;
86
+ var _default = GetLeadsSourceResponse;
87
+ exports["default"] = _default;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ /**
12
+ * Pipedrive API v1
13
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
14
+ *
15
+ * The version of the OpenAPI document: 1.0.0
16
+ *
17
+ *
18
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19
+ * https://openapi-generator.tech
20
+ * Do not edit the class manually.
21
+ *
22
+ */
23
+ /**
24
+ * The GetLeadsSourceResponseData model module.
25
+ * @module model/GetLeadsSourceResponseData
26
+ * @version 1.0.0
27
+ */
28
+ var GetLeadsSourceResponseData = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>GetLeadsSourceResponseData</code>.
31
+ * @alias module:model/GetLeadsSourceResponseData
32
+ */
33
+ function GetLeadsSourceResponseData() {
34
+ (0, _classCallCheck2["default"])(this, GetLeadsSourceResponseData);
35
+ GetLeadsSourceResponseData.initialize(this);
36
+ }
37
+
38
+ /**
39
+ * Initializes the fields of this object.
40
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
41
+ * Only for internal use.
42
+ */
43
+ (0, _createClass2["default"])(GetLeadsSourceResponseData, null, [{
44
+ key: "initialize",
45
+ value: function initialize(obj) {}
46
+
47
+ /**
48
+ * Constructs a <code>GetLeadsSourceResponseData</code> from a plain JavaScript object, optionally creating a new instance.
49
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
50
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
51
+ * @param {module:model/GetLeadsSourceResponseData} obj Optional instance to populate.
52
+ * @return {module:model/GetLeadsSourceResponseData} The populated <code>GetLeadsSourceResponseData</code> instance.
53
+ */
54
+ }, {
55
+ key: "constructFromObject",
56
+ value: function constructFromObject(data, obj) {
57
+ if (data) {
58
+ obj = obj || new GetLeadsSourceResponseData();
59
+ if (data.hasOwnProperty('name')) {
60
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
61
+ delete data['name'];
62
+ }
63
+ if (Object.keys(data).length > 0) {
64
+ Object.assign(obj, data);
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+ }]);
70
+ return GetLeadsSourceResponseData;
71
+ }();
72
+ /**
73
+ * The unique name of a lead source
74
+ * @member {String} name
75
+ */
76
+ GetLeadsSourceResponseData.prototype['name'] = undefined;
77
+ var _default = GetLeadsSourceResponseData;
78
+ exports["default"] = _default;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _ProductAttachmentDetails = _interopRequireDefault(require("./ProductAttachmentDetails"));
12
+ /**
13
+ * Pipedrive API v1
14
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15
+ *
16
+ * The version of the OpenAPI document: 1.0.0
17
+ *
18
+ *
19
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
+ * https://openapi-generator.tech
21
+ * Do not edit the class manually.
22
+ *
23
+ */
24
+ /**
25
+ * The GetProductAttachmentDetails model module.
26
+ * @module model/GetProductAttachmentDetails
27
+ * @version 1.0.0
28
+ */
29
+ var GetProductAttachmentDetails = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>GetProductAttachmentDetails</code>.
32
+ * @alias module:model/GetProductAttachmentDetails
33
+ */
34
+ function GetProductAttachmentDetails() {
35
+ (0, _classCallCheck2["default"])(this, GetProductAttachmentDetails);
36
+ GetProductAttachmentDetails.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ (0, _createClass2["default"])(GetProductAttachmentDetails, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>GetProductAttachmentDetails</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/GetProductAttachmentDetails} obj Optional instance to populate.
53
+ * @return {module:model/GetProductAttachmentDetails} The populated <code>GetProductAttachmentDetails</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new GetProductAttachmentDetails();
60
+ if (data.hasOwnProperty('success')) {
61
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
62
+ delete data['success'];
63
+ }
64
+ if (data.hasOwnProperty('data')) {
65
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], _ProductAttachmentDetails["default"]);
66
+ delete data['data'];
67
+ }
68
+ if (Object.keys(data).length > 0) {
69
+ Object.assign(obj, data);
70
+ }
71
+ }
72
+ return obj;
73
+ }
74
+ }]);
75
+ return GetProductAttachmentDetails;
76
+ }();
77
+ /**
78
+ * If the response is successful or not
79
+ * @member {Boolean} success
80
+ */
81
+ GetProductAttachmentDetails.prototype['success'] = undefined;
82
+
83
+ /**
84
+ * The updated product object attached to the deal
85
+ * @member {module:model/ProductAttachmentDetails} data
86
+ */
87
+ GetProductAttachmentDetails.prototype['data'] = undefined;
88
+ var _default = GetProductAttachmentDetails;
89
+ exports["default"] = _default;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _ProjectBoardObject = _interopRequireDefault(require("./ProjectBoardObject"));
12
+ /**
13
+ * Pipedrive API v1
14
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15
+ *
16
+ * The version of the OpenAPI document: 1.0.0
17
+ *
18
+ *
19
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
+ * https://openapi-generator.tech
21
+ * Do not edit the class manually.
22
+ *
23
+ */
24
+ /**
25
+ * The GetProjectBoardResponse model module.
26
+ * @module model/GetProjectBoardResponse
27
+ * @version 1.0.0
28
+ */
29
+ var GetProjectBoardResponse = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>GetProjectBoardResponse</code>.
32
+ * @alias module:model/GetProjectBoardResponse
33
+ */
34
+ function GetProjectBoardResponse() {
35
+ (0, _classCallCheck2["default"])(this, GetProjectBoardResponse);
36
+ GetProjectBoardResponse.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ (0, _createClass2["default"])(GetProjectBoardResponse, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>GetProjectBoardResponse</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/GetProjectBoardResponse} obj Optional instance to populate.
53
+ * @return {module:model/GetProjectBoardResponse} The populated <code>GetProjectBoardResponse</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new GetProjectBoardResponse();
60
+ if (data.hasOwnProperty('success')) {
61
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
62
+ delete data['success'];
63
+ }
64
+ if (data.hasOwnProperty('data')) {
65
+ obj['data'] = _ProjectBoardObject["default"].constructFromObject(data['data']);
66
+ delete data['data'];
67
+ }
68
+ if (data.hasOwnProperty('additional_data')) {
69
+ obj['additional_data'] = _ApiClient["default"].convertToType(data['additional_data'], Object);
70
+ delete data['additional_data'];
71
+ }
72
+ if (Object.keys(data).length > 0) {
73
+ Object.assign(obj, data);
74
+ }
75
+ }
76
+ return obj;
77
+ }
78
+ }]);
79
+ return GetProjectBoardResponse;
80
+ }();
81
+ /**
82
+ * @member {Boolean} success
83
+ */
84
+ GetProjectBoardResponse.prototype['success'] = undefined;
85
+
86
+ /**
87
+ * @member {module:model/ProjectBoardObject} data
88
+ */
89
+ GetProjectBoardResponse.prototype['data'] = undefined;
90
+
91
+ /**
92
+ * @member {Object} additional_data
93
+ */
94
+ GetProjectBoardResponse.prototype['additional_data'] = undefined;
95
+ var _default = GetProjectBoardResponse;
96
+ exports["default"] = _default;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _ProjectBoardObject = _interopRequireDefault(require("./ProjectBoardObject"));
12
+ /**
13
+ * Pipedrive API v1
14
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15
+ *
16
+ * The version of the OpenAPI document: 1.0.0
17
+ *
18
+ *
19
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
+ * https://openapi-generator.tech
21
+ * Do not edit the class manually.
22
+ *
23
+ */
24
+ /**
25
+ * The GetProjectBoardsResponse model module.
26
+ * @module model/GetProjectBoardsResponse
27
+ * @version 1.0.0
28
+ */
29
+ var GetProjectBoardsResponse = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>GetProjectBoardsResponse</code>.
32
+ * @alias module:model/GetProjectBoardsResponse
33
+ */
34
+ function GetProjectBoardsResponse() {
35
+ (0, _classCallCheck2["default"])(this, GetProjectBoardsResponse);
36
+ GetProjectBoardsResponse.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ (0, _createClass2["default"])(GetProjectBoardsResponse, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>GetProjectBoardsResponse</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/GetProjectBoardsResponse} obj Optional instance to populate.
53
+ * @return {module:model/GetProjectBoardsResponse} The populated <code>GetProjectBoardsResponse</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new GetProjectBoardsResponse();
60
+ if (data.hasOwnProperty('success')) {
61
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
62
+ delete data['success'];
63
+ }
64
+ if (data.hasOwnProperty('data')) {
65
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_ProjectBoardObject["default"]]);
66
+ delete data['data'];
67
+ }
68
+ if (data.hasOwnProperty('additional_data')) {
69
+ obj['additional_data'] = _ApiClient["default"].convertToType(data['additional_data'], Object);
70
+ delete data['additional_data'];
71
+ }
72
+ if (Object.keys(data).length > 0) {
73
+ Object.assign(obj, data);
74
+ }
75
+ }
76
+ return obj;
77
+ }
78
+ }]);
79
+ return GetProjectBoardsResponse;
80
+ }();
81
+ /**
82
+ * @member {Boolean} success
83
+ */
84
+ GetProjectBoardsResponse.prototype['success'] = undefined;
85
+
86
+ /**
87
+ * @member {Array.<module:model/ProjectBoardObject>} data
88
+ */
89
+ GetProjectBoardsResponse.prototype['data'] = undefined;
90
+
91
+ /**
92
+ * @member {Object} additional_data
93
+ */
94
+ GetProjectBoardsResponse.prototype['additional_data'] = undefined;
95
+ var _default = GetProjectBoardsResponse;
96
+ exports["default"] = _default;