@smartlyqofficial/node 0.1.70 → 0.1.72

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/dist/index.js CHANGED
@@ -160,12 +160,12 @@ var AdsResource = class {
160
160
  return this._client.request("DELETE", `/ads/campaigns/${encodeURIComponent(id)}`, { options });
161
161
  }
162
162
  /** Pause a campaign `POST /ads/campaigns/{id}/pause` */
163
- pauseCampaign(id, options) {
164
- return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/pause`, { options });
163
+ pauseCampaign(id, body, options) {
164
+ return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/pause`, { body, options });
165
165
  }
166
166
  /** Resume a campaign `POST /ads/campaigns/{id}/resume` */
167
- resumeCampaign(id, options) {
168
- return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/resume`, { options });
167
+ resumeCampaign(id, body, options) {
168
+ return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/resume`, { body, options });
169
169
  }
170
170
  /** Duplicate a campaign `POST /ads/campaigns/{id}/duplicate` */
171
171
  duplicateCampaign(id, options) {
@@ -192,12 +192,12 @@ var AdsResource = class {
192
192
  return this._client.request("DELETE", `/ads/ad-sets/${encodeURIComponent(id)}`, { options });
193
193
  }
194
194
  /** Pause an ad set `POST /ads/ad-sets/{id}/pause` */
195
- pauseSet(id, options) {
196
- return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/pause`, { options });
195
+ pauseSet(id, body, options) {
196
+ return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/pause`, { body, options });
197
197
  }
198
198
  /** Resume an ad set `POST /ads/ad-sets/{id}/resume` */
199
- resumeSet(id, options) {
200
- return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/resume`, { options });
199
+ resumeSet(id, body, options) {
200
+ return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/resume`, { body, options });
201
201
  }
202
202
  /** Duplicate an ad set `POST /ads/ad-sets/{id}/duplicate` */
203
203
  duplicateSet(id, options) {
@@ -220,12 +220,12 @@ var AdsResource = class {
220
220
  return this._client.request("DELETE", `/ads/ads/${encodeURIComponent(id)}`, { options });
221
221
  }
222
222
  /** Pause an ad `POST /ads/ads/{id}/pause` */
223
- pause(id, options) {
224
- return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/pause`, { options });
223
+ pause(id, body, options) {
224
+ return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/pause`, { body, options });
225
225
  }
226
226
  /** Resume an ad `POST /ads/ads/{id}/resume` */
227
- resume(id, options) {
228
- return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/resume`, { options });
227
+ resume(id, body, options) {
228
+ return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/resume`, { body, options });
229
229
  }
230
230
  /** Duplicate an ad `POST /ads/ads/{id}/duplicate` */
231
231
  duplicate(id, options) {
@@ -334,8 +334,8 @@ var AnalyticsResource = class {
334
334
  return this._client.request("GET", "/analytics/posts", { query, options });
335
335
  }
336
336
  /** Get account analytics `GET /analytics/accounts/{account_id}` */
337
- getAccount(accountId, query, options) {
338
- return this._client.request("GET", `/analytics/accounts/${encodeURIComponent(accountId)}`, { query, options });
337
+ getAccount(accountId, options) {
338
+ return this._client.request("GET", `/analytics/accounts/${encodeURIComponent(accountId)}`, { options });
339
339
  }
340
340
  /** Daily metrics `GET /analytics/daily-metrics` */
341
341
  dailyMetrics(query, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.70",
3
+ "version": "0.1.72",
4
4
  "description": "Official Node.js SDK for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
5
5
  "keywords": [
6
6
  "smartlyq",