ninjapear 1.1.0 → 1.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.
package/README.md CHANGED
@@ -8,6 +8,7 @@ As a data client of NinjaPear API, you can:
8
8
  2. (FREE) Retrieve the logo of any company.
9
9
  3. (FREE) Find out the nature of an email address.
10
10
  4. (FREE) Check your credit balance.
11
+ 5. Monitor companies for updates (blog posts, X/Twitter posts, website changes) via RSS feeds.
11
12
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
12
13
 
13
14
  - API version: 1.0.0
@@ -140,12 +141,24 @@ Class | Method | HTTP request | Description
140
141
  *Ninjapear.ContactAPIApi* | [**checkDisposableEmail**](docs/ContactAPIApi.md#checkDisposableEmail) | **GET** /api/v1/contact/disposable-email | Disposable Email Checker
141
142
  *Ninjapear.CustomerAPIApi* | [**getCustomerListing**](docs/CustomerAPIApi.md#getCustomerListing) | **GET** /api/v1/customer/listing | Customer Listing
142
143
  *Ninjapear.MetaAPIApi* | [**getCreditBalance**](docs/MetaAPIApi.md#getCreditBalance) | **GET** /api/v1/meta/credit-balance | View Credit Balance
144
+ *Ninjapear.UpdatesAPIApi* | [**addTarget**](docs/UpdatesAPIApi.md#addTarget) | **POST** /api/v1/feeds/{feed_id}/targets | Add Target
145
+ *Ninjapear.UpdatesAPIApi* | [**createFeed**](docs/UpdatesAPIApi.md#createFeed) | **POST** /api/v1/feeds | Create Feed
146
+ *Ninjapear.UpdatesAPIApi* | [**deleteFeed**](docs/UpdatesAPIApi.md#deleteFeed) | **DELETE** /api/v1/feeds/{feed_id} | Delete Feed
147
+ *Ninjapear.UpdatesAPIApi* | [**deleteTarget**](docs/UpdatesAPIApi.md#deleteTarget) | **DELETE** /api/v1/feeds/{feed_id}/targets/{target_id} | Delete Target
148
+ *Ninjapear.UpdatesAPIApi* | [**getFeed**](docs/UpdatesAPIApi.md#getFeed) | **GET** /api/v1/feeds/{feed_id} | Get Feed
149
+ *Ninjapear.UpdatesAPIApi* | [**getRssFeed**](docs/UpdatesAPIApi.md#getRssFeed) | **GET** /api/v1/feeds/{feed_id}/rss.xml | Get RSS Feed
150
+ *Ninjapear.UpdatesAPIApi* | [**listFeeds**](docs/UpdatesAPIApi.md#listFeeds) | **GET** /api/v1/feeds | List Feeds
151
+ *Ninjapear.UpdatesAPIApi* | [**updateFeed**](docs/UpdatesAPIApi.md#updateFeed) | **PATCH** /api/v1/feeds/{feed_id} | Update Feed
152
+ *Ninjapear.UpdatesAPIApi* | [**updateTarget**](docs/UpdatesAPIApi.md#updateTarget) | **PATCH** /api/v1/feeds/{feed_id}/targets/{target_id} | Update Target
143
153
 
144
154
 
145
155
  ## Documentation for Models
146
156
 
157
+ - [Ninjapear.AddTargetRequest](docs/AddTargetRequest.md)
147
158
  - [Ninjapear.Address](docs/Address.md)
148
159
  - [Ninjapear.CompanyDetailsResponse](docs/CompanyDetailsResponse.md)
160
+ - [Ninjapear.CreateFeedRequest](docs/CreateFeedRequest.md)
161
+ - [Ninjapear.CreateFeedRequestTargetsInner](docs/CreateFeedRequestTargetsInner.md)
149
162
  - [Ninjapear.CreditBalanceResponse](docs/CreditBalanceResponse.md)
150
163
  - [Ninjapear.CustomerCompany](docs/CustomerCompany.md)
151
164
  - [Ninjapear.CustomerListingResponse](docs/CustomerListingResponse.md)
@@ -153,7 +166,15 @@ Class | Method | HTTP request | Description
153
166
  - [Ninjapear.EmployeeCountResponse](docs/EmployeeCountResponse.md)
154
167
  - [Ninjapear.Error](docs/Error.md)
155
168
  - [Ninjapear.Executive](docs/Executive.md)
169
+ - [Ninjapear.Feed](docs/Feed.md)
170
+ - [Ninjapear.FeedListResponse](docs/FeedListResponse.md)
171
+ - [Ninjapear.FeedSummary](docs/FeedSummary.md)
172
+ - [Ninjapear.MessageResponse](docs/MessageResponse.md)
156
173
  - [Ninjapear.PublicListing](docs/PublicListing.md)
174
+ - [Ninjapear.Target](docs/Target.md)
175
+ - [Ninjapear.TargetSettings](docs/TargetSettings.md)
176
+ - [Ninjapear.UpdateFeedRequest](docs/UpdateFeedRequest.md)
177
+ - [Ninjapear.UpdateTargetRequest](docs/UpdateTargetRequest.md)
157
178
 
158
179
 
159
180
  ## Documentation for Authorization
package/dist/ApiClient.js CHANGED
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * NinjaPear API
16
- * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance.
16
+ * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance. 5. Monitor companies for updates (blog posts, X/Twitter posts, website changes) via RSS feeds.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.0.0
19
19
  * Contact: hello@nubela.co
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * NinjaPear API
19
- * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance.
19
+ * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance. 5. Monitor companies for updates (blog posts, X/Twitter posts, website changes) via RSS feeds.
20
20
  *
21
21
  * The version of the OpenAPI document: 1.0.0
22
22
  * Contact: hello@nubela.co
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
17
  * NinjaPear API
18
- * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance.
18
+ * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance. 5. Monitor companies for updates (blog posts, X/Twitter posts, website changes) via RSS feeds.
19
19
  *
20
20
  * The version of the OpenAPI document: 1.0.0
21
21
  * Contact: hello@nubela.co
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
17
  * NinjaPear API
18
- * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance.
18
+ * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance. 5. Monitor companies for updates (blog posts, X/Twitter posts, website changes) via RSS feeds.
19
19
  *
20
20
  * The version of the OpenAPI document: 1.0.0
21
21
  * Contact: hello@nubela.co
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
17
  * NinjaPear API
18
- * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance.
18
+ * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance. 5. Monitor companies for updates (blog posts, X/Twitter posts, website changes) via RSS feeds.
19
19
  *
20
20
  * The version of the OpenAPI document: 1.0.0
21
21
  * Contact: hello@nubela.co
@@ -0,0 +1,400 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AddTargetRequest = _interopRequireDefault(require("../model/AddTargetRequest"));
9
+ var _CreateFeedRequest = _interopRequireDefault(require("../model/CreateFeedRequest"));
10
+ var _Error = _interopRequireDefault(require("../model/Error"));
11
+ var _Feed = _interopRequireDefault(require("../model/Feed"));
12
+ var _FeedListResponse = _interopRequireDefault(require("../model/FeedListResponse"));
13
+ var _MessageResponse = _interopRequireDefault(require("../model/MessageResponse"));
14
+ var _Target = _interopRequireDefault(require("../model/Target"));
15
+ var _UpdateFeedRequest = _interopRequireDefault(require("../model/UpdateFeedRequest"));
16
+ var _UpdateTargetRequest = _interopRequireDefault(require("../model/UpdateTargetRequest"));
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
18
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
19
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
21
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
24
+ * NinjaPear API
25
+ * NinjaPear is a data platform that seeks to serve as the single source of truth for B2B data, be it to power your data-driven applications or your sales-driven workflow. As a data client of NinjaPear API, you can: 1. Look up the customers, investors, and partners/platforms of any business globally. 2. (FREE) Retrieve the logo of any company. 3. (FREE) Find out the nature of an email address. 4. (FREE) Check your credit balance. 5. Monitor companies for updates (blog posts, X/Twitter posts, website changes) via RSS feeds.
26
+ *
27
+ * The version of the OpenAPI document: 1.0.0
28
+ * Contact: hello@nubela.co
29
+ *
30
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31
+ * https://openapi-generator.tech
32
+ * Do not edit the class manually.
33
+ *
34
+ */
35
+ /**
36
+ * UpdatesAPI service.
37
+ * @module api/UpdatesAPIApi
38
+ * @version 1.0.0
39
+ */
40
+ var UpdatesAPIApi = exports["default"] = /*#__PURE__*/function () {
41
+ /**
42
+ * Constructs a new UpdatesAPIApi.
43
+ * @alias module:api/UpdatesAPIApi
44
+ * @class
45
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
46
+ * default to {@link module:ApiClient#instance} if unspecified.
47
+ */
48
+ function UpdatesAPIApi(apiClient) {
49
+ _classCallCheck(this, UpdatesAPIApi);
50
+ this.apiClient = apiClient || _ApiClient["default"].instance;
51
+ }
52
+
53
+ /**
54
+ * Callback function to receive the result of the addTarget operation.
55
+ * @callback module:api/UpdatesAPIApi~addTargetCallback
56
+ * @param {String} error Error message, if any.
57
+ * @param {module:model/Target} data The data returned by the service call.
58
+ * @param {String} response The complete HTTP response.
59
+ */
60
+
61
+ /**
62
+ * Add Target
63
+ * Add a new company target to an existing feed. **Cost:** FREE (0 credits)
64
+ * @param {String} feedId Feed identifier (e.g. feed_abc123xyz)
65
+ * @param {module:model/AddTargetRequest} addTargetRequest
66
+ * @param {module:api/UpdatesAPIApi~addTargetCallback} callback The callback function, accepting three arguments: error, data, response
67
+ * data is of type: {@link module:model/Target}
68
+ */
69
+ return _createClass(UpdatesAPIApi, [{
70
+ key: "addTarget",
71
+ value: function addTarget(feedId, addTargetRequest, callback) {
72
+ var postBody = addTargetRequest;
73
+ // verify the required parameter 'feedId' is set
74
+ if (feedId === undefined || feedId === null) {
75
+ throw new _Error["default"]("Missing the required parameter 'feedId' when calling addTarget");
76
+ }
77
+ // verify the required parameter 'addTargetRequest' is set
78
+ if (addTargetRequest === undefined || addTargetRequest === null) {
79
+ throw new _Error["default"]("Missing the required parameter 'addTargetRequest' when calling addTarget");
80
+ }
81
+ var pathParams = {
82
+ 'feed_id': feedId
83
+ };
84
+ var queryParams = {};
85
+ var headerParams = {};
86
+ var formParams = {};
87
+ var authNames = ['bearerAuth'];
88
+ var contentTypes = ['application/json'];
89
+ var accepts = ['application/json'];
90
+ var returnType = _Target["default"];
91
+ return this.apiClient.callApi('/api/v1/feeds/{feed_id}/targets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
92
+ }
93
+
94
+ /**
95
+ * Callback function to receive the result of the createFeed operation.
96
+ * @callback module:api/UpdatesAPIApi~createFeedCallback
97
+ * @param {String} error Error message, if any.
98
+ * @param {module:model/Feed} data The data returned by the service call.
99
+ * @param {String} response The complete HTTP response.
100
+ */
101
+
102
+ /**
103
+ * Create Feed
104
+ * Create a new monitoring feed with one or more company targets. Each target specifies a company website and which channels to monitor (blog, X/Twitter, website changes). **Cost:** 3 credits
105
+ * @param {module:model/CreateFeedRequest} createFeedRequest
106
+ * @param {module:api/UpdatesAPIApi~createFeedCallback} callback The callback function, accepting three arguments: error, data, response
107
+ * data is of type: {@link module:model/Feed}
108
+ */
109
+ }, {
110
+ key: "createFeed",
111
+ value: function createFeed(createFeedRequest, callback) {
112
+ var postBody = createFeedRequest;
113
+ // verify the required parameter 'createFeedRequest' is set
114
+ if (createFeedRequest === undefined || createFeedRequest === null) {
115
+ throw new _Error["default"]("Missing the required parameter 'createFeedRequest' when calling createFeed");
116
+ }
117
+ var pathParams = {};
118
+ var queryParams = {};
119
+ var headerParams = {};
120
+ var formParams = {};
121
+ var authNames = ['bearerAuth'];
122
+ var contentTypes = ['application/json'];
123
+ var accepts = ['application/json'];
124
+ var returnType = _Feed["default"];
125
+ return this.apiClient.callApi('/api/v1/feeds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
126
+ }
127
+
128
+ /**
129
+ * Callback function to receive the result of the deleteFeed operation.
130
+ * @callback module:api/UpdatesAPIApi~deleteFeedCallback
131
+ * @param {String} error Error message, if any.
132
+ * @param {module:model/MessageResponse} data The data returned by the service call.
133
+ * @param {String} response The complete HTTP response.
134
+ */
135
+
136
+ /**
137
+ * Delete Feed
138
+ * Soft-delete a feed and all its targets. **Cost:** FREE (0 credits)
139
+ * @param {String} feedId Feed identifier (e.g. feed_abc123xyz)
140
+ * @param {module:api/UpdatesAPIApi~deleteFeedCallback} callback The callback function, accepting three arguments: error, data, response
141
+ * data is of type: {@link module:model/MessageResponse}
142
+ */
143
+ }, {
144
+ key: "deleteFeed",
145
+ value: function deleteFeed(feedId, callback) {
146
+ var postBody = null;
147
+ // verify the required parameter 'feedId' is set
148
+ if (feedId === undefined || feedId === null) {
149
+ throw new _Error["default"]("Missing the required parameter 'feedId' when calling deleteFeed");
150
+ }
151
+ var pathParams = {
152
+ 'feed_id': feedId
153
+ };
154
+ var queryParams = {};
155
+ var headerParams = {};
156
+ var formParams = {};
157
+ var authNames = ['bearerAuth'];
158
+ var contentTypes = [];
159
+ var accepts = ['application/json'];
160
+ var returnType = _MessageResponse["default"];
161
+ return this.apiClient.callApi('/api/v1/feeds/{feed_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
162
+ }
163
+
164
+ /**
165
+ * Callback function to receive the result of the deleteTarget operation.
166
+ * @callback module:api/UpdatesAPIApi~deleteTargetCallback
167
+ * @param {String} error Error message, if any.
168
+ * @param {module:model/MessageResponse} data The data returned by the service call.
169
+ * @param {String} response The complete HTTP response.
170
+ */
171
+
172
+ /**
173
+ * Delete Target
174
+ * Soft-delete a target from a feed. **Cost:** FREE (0 credits)
175
+ * @param {String} feedId Feed identifier (e.g. feed_abc123xyz)
176
+ * @param {String} targetId Target identifier (e.g. target_abc123xyz)
177
+ * @param {module:api/UpdatesAPIApi~deleteTargetCallback} callback The callback function, accepting three arguments: error, data, response
178
+ * data is of type: {@link module:model/MessageResponse}
179
+ */
180
+ }, {
181
+ key: "deleteTarget",
182
+ value: function deleteTarget(feedId, targetId, callback) {
183
+ var postBody = null;
184
+ // verify the required parameter 'feedId' is set
185
+ if (feedId === undefined || feedId === null) {
186
+ throw new _Error["default"]("Missing the required parameter 'feedId' when calling deleteTarget");
187
+ }
188
+ // verify the required parameter 'targetId' is set
189
+ if (targetId === undefined || targetId === null) {
190
+ throw new _Error["default"]("Missing the required parameter 'targetId' when calling deleteTarget");
191
+ }
192
+ var pathParams = {
193
+ 'feed_id': feedId,
194
+ 'target_id': targetId
195
+ };
196
+ var queryParams = {};
197
+ var headerParams = {};
198
+ var formParams = {};
199
+ var authNames = ['bearerAuth'];
200
+ var contentTypes = [];
201
+ var accepts = ['application/json'];
202
+ var returnType = _MessageResponse["default"];
203
+ return this.apiClient.callApi('/api/v1/feeds/{feed_id}/targets/{target_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
204
+ }
205
+
206
+ /**
207
+ * Callback function to receive the result of the getFeed operation.
208
+ * @callback module:api/UpdatesAPIApi~getFeedCallback
209
+ * @param {String} error Error message, if any.
210
+ * @param {module:model/Feed} data The data returned by the service call.
211
+ * @param {String} response The complete HTTP response.
212
+ */
213
+
214
+ /**
215
+ * Get Feed
216
+ * Get a feed with all its targets. **Cost:** FREE (0 credits)
217
+ * @param {String} feedId Feed identifier (e.g. feed_abc123xyz)
218
+ * @param {module:api/UpdatesAPIApi~getFeedCallback} callback The callback function, accepting three arguments: error, data, response
219
+ * data is of type: {@link module:model/Feed}
220
+ */
221
+ }, {
222
+ key: "getFeed",
223
+ value: function getFeed(feedId, callback) {
224
+ var postBody = null;
225
+ // verify the required parameter 'feedId' is set
226
+ if (feedId === undefined || feedId === null) {
227
+ throw new _Error["default"]("Missing the required parameter 'feedId' when calling getFeed");
228
+ }
229
+ var pathParams = {
230
+ 'feed_id': feedId
231
+ };
232
+ var queryParams = {};
233
+ var headerParams = {};
234
+ var formParams = {};
235
+ var authNames = ['bearerAuth'];
236
+ var contentTypes = [];
237
+ var accepts = ['application/json'];
238
+ var returnType = _Feed["default"];
239
+ return this.apiClient.callApi('/api/v1/feeds/{feed_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
240
+ }
241
+
242
+ /**
243
+ * Callback function to receive the result of the getRssFeed operation.
244
+ * @callback module:api/UpdatesAPIApi~getRssFeedCallback
245
+ * @param {String} error Error message, if any.
246
+ * @param {String} data The data returned by the service call.
247
+ * @param {String} response The complete HTTP response.
248
+ */
249
+
250
+ /**
251
+ * Get RSS Feed
252
+ * Get the RSS 2.0 XML feed for a monitoring feed. Public feeds are accessible without authentication. Private feeds require the `token` query parameter. **Cost:** FREE (0 credits) **Authentication:** This endpoint does NOT use Bearer authentication. Private feeds are authenticated via the `token` query parameter, which is included in the `rss_url` returned when creating a feed.
253
+ * @param {String} feedId Feed identifier (e.g. feed_abc123xyz)
254
+ * @param {Object} opts Optional parameters
255
+ * @param {String} [token] Access token for private feeds (included in rss_url)
256
+ * @param {module:api/UpdatesAPIApi~getRssFeedCallback} callback The callback function, accepting three arguments: error, data, response
257
+ * data is of type: {@link String}
258
+ */
259
+ }, {
260
+ key: "getRssFeed",
261
+ value: function getRssFeed(feedId, opts, callback) {
262
+ opts = opts || {};
263
+ var postBody = null;
264
+ // verify the required parameter 'feedId' is set
265
+ if (feedId === undefined || feedId === null) {
266
+ throw new _Error["default"]("Missing the required parameter 'feedId' when calling getRssFeed");
267
+ }
268
+ var pathParams = {
269
+ 'feed_id': feedId
270
+ };
271
+ var queryParams = {
272
+ 'token': opts['token']
273
+ };
274
+ var headerParams = {};
275
+ var formParams = {};
276
+ var authNames = [];
277
+ var contentTypes = [];
278
+ var accepts = ['application/xml', 'application/json'];
279
+ var returnType = 'String';
280
+ return this.apiClient.callApi('/api/v1/feeds/{feed_id}/rss.xml', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
281
+ }
282
+
283
+ /**
284
+ * Callback function to receive the result of the listFeeds operation.
285
+ * @callback module:api/UpdatesAPIApi~listFeedsCallback
286
+ * @param {String} error Error message, if any.
287
+ * @param {module:model/FeedListResponse} data The data returned by the service call.
288
+ * @param {String} response The complete HTTP response.
289
+ */
290
+
291
+ /**
292
+ * List Feeds
293
+ * List all feeds for the authenticated account. **Cost:** FREE (0 credits)
294
+ * @param {module:api/UpdatesAPIApi~listFeedsCallback} callback The callback function, accepting three arguments: error, data, response
295
+ * data is of type: {@link module:model/FeedListResponse}
296
+ */
297
+ }, {
298
+ key: "listFeeds",
299
+ value: function listFeeds(callback) {
300
+ var postBody = null;
301
+ var pathParams = {};
302
+ var queryParams = {};
303
+ var headerParams = {};
304
+ var formParams = {};
305
+ var authNames = ['bearerAuth'];
306
+ var contentTypes = [];
307
+ var accepts = ['application/json'];
308
+ var returnType = _FeedListResponse["default"];
309
+ return this.apiClient.callApi('/api/v1/feeds', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
310
+ }
311
+
312
+ /**
313
+ * Callback function to receive the result of the updateFeed operation.
314
+ * @callback module:api/UpdatesAPIApi~updateFeedCallback
315
+ * @param {String} error Error message, if any.
316
+ * @param {module:model/Feed} data The data returned by the service call.
317
+ * @param {String} response The complete HTTP response.
318
+ */
319
+
320
+ /**
321
+ * Update Feed
322
+ * Update feed metadata such as name, visibility, or suspension status. **Cost:** FREE (0 credits)
323
+ * @param {String} feedId Feed identifier (e.g. feed_abc123xyz)
324
+ * @param {module:model/UpdateFeedRequest} updateFeedRequest
325
+ * @param {module:api/UpdatesAPIApi~updateFeedCallback} callback The callback function, accepting three arguments: error, data, response
326
+ * data is of type: {@link module:model/Feed}
327
+ */
328
+ }, {
329
+ key: "updateFeed",
330
+ value: function updateFeed(feedId, updateFeedRequest, callback) {
331
+ var postBody = updateFeedRequest;
332
+ // verify the required parameter 'feedId' is set
333
+ if (feedId === undefined || feedId === null) {
334
+ throw new _Error["default"]("Missing the required parameter 'feedId' when calling updateFeed");
335
+ }
336
+ // verify the required parameter 'updateFeedRequest' is set
337
+ if (updateFeedRequest === undefined || updateFeedRequest === null) {
338
+ throw new _Error["default"]("Missing the required parameter 'updateFeedRequest' when calling updateFeed");
339
+ }
340
+ var pathParams = {
341
+ 'feed_id': feedId
342
+ };
343
+ var queryParams = {};
344
+ var headerParams = {};
345
+ var formParams = {};
346
+ var authNames = ['bearerAuth'];
347
+ var contentTypes = ['application/json'];
348
+ var accepts = ['application/json'];
349
+ var returnType = _Feed["default"];
350
+ return this.apiClient.callApi('/api/v1/feeds/{feed_id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
351
+ }
352
+
353
+ /**
354
+ * Callback function to receive the result of the updateTarget operation.
355
+ * @callback module:api/UpdatesAPIApi~updateTargetCallback
356
+ * @param {String} error Error message, if any.
357
+ * @param {module:model/Target} data The data returned by the service call.
358
+ * @param {String} response The complete HTTP response.
359
+ */
360
+
361
+ /**
362
+ * Update Target
363
+ * Update monitoring settings for a target. **Cost:** FREE (0 credits)
364
+ * @param {String} feedId Feed identifier (e.g. feed_abc123xyz)
365
+ * @param {String} targetId Target identifier (e.g. target_abc123xyz)
366
+ * @param {module:model/UpdateTargetRequest} updateTargetRequest
367
+ * @param {module:api/UpdatesAPIApi~updateTargetCallback} callback The callback function, accepting three arguments: error, data, response
368
+ * data is of type: {@link module:model/Target}
369
+ */
370
+ }, {
371
+ key: "updateTarget",
372
+ value: function updateTarget(feedId, targetId, updateTargetRequest, callback) {
373
+ var postBody = updateTargetRequest;
374
+ // verify the required parameter 'feedId' is set
375
+ if (feedId === undefined || feedId === null) {
376
+ throw new _Error["default"]("Missing the required parameter 'feedId' when calling updateTarget");
377
+ }
378
+ // verify the required parameter 'targetId' is set
379
+ if (targetId === undefined || targetId === null) {
380
+ throw new _Error["default"]("Missing the required parameter 'targetId' when calling updateTarget");
381
+ }
382
+ // verify the required parameter 'updateTargetRequest' is set
383
+ if (updateTargetRequest === undefined || updateTargetRequest === null) {
384
+ throw new _Error["default"]("Missing the required parameter 'updateTargetRequest' when calling updateTarget");
385
+ }
386
+ var pathParams = {
387
+ 'feed_id': feedId,
388
+ 'target_id': targetId
389
+ };
390
+ var queryParams = {};
391
+ var headerParams = {};
392
+ var formParams = {};
393
+ var authNames = ['bearerAuth'];
394
+ var contentTypes = ['application/json'];
395
+ var accepts = ['application/json'];
396
+ var returnType = _Target["default"];
397
+ return this.apiClient.callApi('/api/v1/feeds/{feed_id}/targets/{target_id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
398
+ }
399
+ }]);
400
+ }();
package/dist/index.js CHANGED
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "AddTargetRequest", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _AddTargetRequest["default"];
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "Address", {
7
13
  enumerable: true,
8
14
  get: function get() {
@@ -33,6 +39,18 @@ Object.defineProperty(exports, "ContactAPIApi", {
33
39
  return _ContactAPIApi["default"];
34
40
  }
35
41
  });
42
+ Object.defineProperty(exports, "CreateFeedRequest", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _CreateFeedRequest["default"];
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "CreateFeedRequestTargetsInner", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _CreateFeedRequestTargetsInner["default"];
52
+ }
53
+ });
36
54
  Object.defineProperty(exports, "CreditBalanceResponse", {
37
55
  enumerable: true,
38
56
  get: function get() {
@@ -81,6 +99,30 @@ Object.defineProperty(exports, "Executive", {
81
99
  return _Executive["default"];
82
100
  }
83
101
  });
102
+ Object.defineProperty(exports, "Feed", {
103
+ enumerable: true,
104
+ get: function get() {
105
+ return _Feed["default"];
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "FeedListResponse", {
109
+ enumerable: true,
110
+ get: function get() {
111
+ return _FeedListResponse["default"];
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "FeedSummary", {
115
+ enumerable: true,
116
+ get: function get() {
117
+ return _FeedSummary["default"];
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "MessageResponse", {
121
+ enumerable: true,
122
+ get: function get() {
123
+ return _MessageResponse["default"];
124
+ }
125
+ });
84
126
  Object.defineProperty(exports, "MetaAPIApi", {
85
127
  enumerable: true,
86
128
  get: function get() {
@@ -93,9 +135,42 @@ Object.defineProperty(exports, "PublicListing", {
93
135
  return _PublicListing["default"];
94
136
  }
95
137
  });
138
+ Object.defineProperty(exports, "Target", {
139
+ enumerable: true,
140
+ get: function get() {
141
+ return _Target["default"];
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "TargetSettings", {
145
+ enumerable: true,
146
+ get: function get() {
147
+ return _TargetSettings["default"];
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "UpdateFeedRequest", {
151
+ enumerable: true,
152
+ get: function get() {
153
+ return _UpdateFeedRequest["default"];
154
+ }
155
+ });
156
+ Object.defineProperty(exports, "UpdateTargetRequest", {
157
+ enumerable: true,
158
+ get: function get() {
159
+ return _UpdateTargetRequest["default"];
160
+ }
161
+ });
162
+ Object.defineProperty(exports, "UpdatesAPIApi", {
163
+ enumerable: true,
164
+ get: function get() {
165
+ return _UpdatesAPIApi["default"];
166
+ }
167
+ });
96
168
  var _ApiClient = _interopRequireDefault(require("./ApiClient"));
169
+ var _AddTargetRequest = _interopRequireDefault(require("./model/AddTargetRequest"));
97
170
  var _Address = _interopRequireDefault(require("./model/Address"));
98
171
  var _CompanyDetailsResponse = _interopRequireDefault(require("./model/CompanyDetailsResponse"));
172
+ var _CreateFeedRequest = _interopRequireDefault(require("./model/CreateFeedRequest"));
173
+ var _CreateFeedRequestTargetsInner = _interopRequireDefault(require("./model/CreateFeedRequestTargetsInner"));
99
174
  var _CreditBalanceResponse = _interopRequireDefault(require("./model/CreditBalanceResponse"));
100
175
  var _CustomerCompany = _interopRequireDefault(require("./model/CustomerCompany"));
101
176
  var _CustomerListingResponse = _interopRequireDefault(require("./model/CustomerListingResponse"));
@@ -103,9 +178,18 @@ var _DisposableEmailResponse = _interopRequireDefault(require("./model/Disposabl
103
178
  var _EmployeeCountResponse = _interopRequireDefault(require("./model/EmployeeCountResponse"));
104
179
  var _Error = _interopRequireDefault(require("./model/Error"));
105
180
  var _Executive = _interopRequireDefault(require("./model/Executive"));
181
+ var _Feed = _interopRequireDefault(require("./model/Feed"));
182
+ var _FeedListResponse = _interopRequireDefault(require("./model/FeedListResponse"));
183
+ var _FeedSummary = _interopRequireDefault(require("./model/FeedSummary"));
184
+ var _MessageResponse = _interopRequireDefault(require("./model/MessageResponse"));
106
185
  var _PublicListing = _interopRequireDefault(require("./model/PublicListing"));
186
+ var _Target = _interopRequireDefault(require("./model/Target"));
187
+ var _TargetSettings = _interopRequireDefault(require("./model/TargetSettings"));
188
+ var _UpdateFeedRequest = _interopRequireDefault(require("./model/UpdateFeedRequest"));
189
+ var _UpdateTargetRequest = _interopRequireDefault(require("./model/UpdateTargetRequest"));
107
190
  var _CompanyAPIApi = _interopRequireDefault(require("./api/CompanyAPIApi"));
108
191
  var _ContactAPIApi = _interopRequireDefault(require("./api/ContactAPIApi"));
109
192
  var _CustomerAPIApi = _interopRequireDefault(require("./api/CustomerAPIApi"));
110
193
  var _MetaAPIApi = _interopRequireDefault(require("./api/MetaAPIApi"));
194
+ var _UpdatesAPIApi = _interopRequireDefault(require("./api/UpdatesAPIApi"));
111
195
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }