@smartlyqofficial/node 0.1.74 → 0.1.75

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
@@ -9446,19 +9446,40 @@ type UnpublishPostErrors = {
9446
9446
  type UnpublishPostError = UnpublishPostErrors[keyof UnpublishPostErrors];
9447
9447
  type UnpublishPostResponses = {
9448
9448
  /**
9449
- * Unpublished
9449
+ * Removed from every platform it could be (see `status` and `still_live`)
9450
9450
  */
9451
9451
  200: {
9452
9452
  success?: true;
9453
9453
  data?: {
9454
9454
  post_id?: number;
9455
- status?: 'unpublished';
9455
+ /**
9456
+ * `unpublished` once no copy is left live; otherwise the post keeps its status (copies are still up, see `still_live`).
9457
+ */
9458
+ status?: 'unpublished' | 'published' | 'partially_published' | 'partial';
9456
9459
  /**
9457
9460
  * Per-platform deletion results.
9458
9461
  */
9459
9462
  platforms?: {
9460
9463
  [key: string]: unknown;
9461
9464
  };
9465
+ /**
9466
+ * Per account after this call: `removed` for a copy that is gone, `success` for one still live.
9467
+ */
9468
+ results?: Array<PostResult>;
9469
+ /**
9470
+ * Every copy still on a platform, and why. Empty when the post is fully unpublished.
9471
+ */
9472
+ still_live?: Array<{
9473
+ platform?: string;
9474
+ account?: string;
9475
+ account_id?: number;
9476
+ url?: string;
9477
+ /**
9478
+ * no_delete_api: the platform lets no app delete posts (Instagram, TikTok, Snapchat) - delete it there. not_requested: left out by `platforms`. delete_not_enabled: deleting from this platform is switched off. reconnect_needed: the account is not connected - reconnect it, then unpublish again. delete_failed: retry.
9479
+ */
9480
+ reason?: 'no_delete_api' | 'not_requested' | 'delete_not_enabled' | 'reconnect_needed' | 'delete_failed';
9481
+ message?: string;
9482
+ }>;
9462
9483
  };
9463
9484
  meta?: RequestMeta;
9464
9485
  };
package/dist/index.d.ts CHANGED
@@ -9446,19 +9446,40 @@ type UnpublishPostErrors = {
9446
9446
  type UnpublishPostError = UnpublishPostErrors[keyof UnpublishPostErrors];
9447
9447
  type UnpublishPostResponses = {
9448
9448
  /**
9449
- * Unpublished
9449
+ * Removed from every platform it could be (see `status` and `still_live`)
9450
9450
  */
9451
9451
  200: {
9452
9452
  success?: true;
9453
9453
  data?: {
9454
9454
  post_id?: number;
9455
- status?: 'unpublished';
9455
+ /**
9456
+ * `unpublished` once no copy is left live; otherwise the post keeps its status (copies are still up, see `still_live`).
9457
+ */
9458
+ status?: 'unpublished' | 'published' | 'partially_published' | 'partial';
9456
9459
  /**
9457
9460
  * Per-platform deletion results.
9458
9461
  */
9459
9462
  platforms?: {
9460
9463
  [key: string]: unknown;
9461
9464
  };
9465
+ /**
9466
+ * Per account after this call: `removed` for a copy that is gone, `success` for one still live.
9467
+ */
9468
+ results?: Array<PostResult>;
9469
+ /**
9470
+ * Every copy still on a platform, and why. Empty when the post is fully unpublished.
9471
+ */
9472
+ still_live?: Array<{
9473
+ platform?: string;
9474
+ account?: string;
9475
+ account_id?: number;
9476
+ url?: string;
9477
+ /**
9478
+ * no_delete_api: the platform lets no app delete posts (Instagram, TikTok, Snapchat) - delete it there. not_requested: left out by `platforms`. delete_not_enabled: deleting from this platform is switched off. reconnect_needed: the account is not connected - reconnect it, then unpublish again. delete_failed: retry.
9479
+ */
9480
+ reason?: 'no_delete_api' | 'not_requested' | 'delete_not_enabled' | 'reconnect_needed' | 'delete_failed';
9481
+ message?: string;
9482
+ }>;
9462
9483
  };
9463
9484
  meta?: RequestMeta;
9464
9485
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
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",