@smartlyqofficial/node 0.1.29 → 0.1.31

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.d.cts CHANGED
@@ -421,7 +421,7 @@ type SocialPostCreateRequest = {
421
421
  */
422
422
  media_urls?: Array<string>;
423
423
  /**
424
- * URL to include with the post
424
+ * Destination URL for the post. Applied to the platforms that have a link field (currently Facebook); other selected platforms are reported back in data.warnings, so put the URL in the post text for those. On Facebook a text-only post renders it as a preview card; when media is attached Meta drops the parameter, so the URL is appended to the post text instead. A per-platform platform_options.<platform>.link always takes precedence.
425
425
  */
426
426
  link?: string;
427
427
  /**
@@ -17439,6 +17439,24 @@ type AdAnalyticsResponses = {
17439
17439
  leads?: number;
17440
17440
  purchase_value?: number;
17441
17441
  }>;
17442
+ /**
17443
+ * One entry per campaign that had activity in the range. A campaign absent from this list spent nothing between these dates.
17444
+ */
17445
+ by_campaign?: Array<{
17446
+ /**
17447
+ * Campaign id, as returned by GET /ads/campaigns.
17448
+ */
17449
+ id?: number;
17450
+ spent?: number;
17451
+ impressions?: number;
17452
+ clicks?: number;
17453
+ conversions?: number;
17454
+ leads?: number;
17455
+ purchase_value?: number;
17456
+ ctr?: number;
17457
+ cpa?: number;
17458
+ roas?: number;
17459
+ }>;
17442
17460
  spend_chart?: {
17443
17461
  labels?: Array<string>;
17444
17462
  datasets?: {
package/dist/index.d.ts CHANGED
@@ -421,7 +421,7 @@ type SocialPostCreateRequest = {
421
421
  */
422
422
  media_urls?: Array<string>;
423
423
  /**
424
- * URL to include with the post
424
+ * Destination URL for the post. Applied to the platforms that have a link field (currently Facebook); other selected platforms are reported back in data.warnings, so put the URL in the post text for those. On Facebook a text-only post renders it as a preview card; when media is attached Meta drops the parameter, so the URL is appended to the post text instead. A per-platform platform_options.<platform>.link always takes precedence.
425
425
  */
426
426
  link?: string;
427
427
  /**
@@ -17439,6 +17439,24 @@ type AdAnalyticsResponses = {
17439
17439
  leads?: number;
17440
17440
  purchase_value?: number;
17441
17441
  }>;
17442
+ /**
17443
+ * One entry per campaign that had activity in the range. A campaign absent from this list spent nothing between these dates.
17444
+ */
17445
+ by_campaign?: Array<{
17446
+ /**
17447
+ * Campaign id, as returned by GET /ads/campaigns.
17448
+ */
17449
+ id?: number;
17450
+ spent?: number;
17451
+ impressions?: number;
17452
+ clicks?: number;
17453
+ conversions?: number;
17454
+ leads?: number;
17455
+ purchase_value?: number;
17456
+ ctr?: number;
17457
+ cpa?: number;
17458
+ roas?: number;
17459
+ }>;
17442
17460
  spend_chart?: {
17443
17461
  labels?: Array<string>;
17444
17462
  datasets?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
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",