@getlatedev/node 0.2.8 → 0.2.10

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.mts CHANGED
@@ -3437,6 +3437,9 @@ type CreatePostData = {
3437
3437
  type?: 'image' | 'video' | 'gif' | 'document';
3438
3438
  url?: string;
3439
3439
  }>;
3440
+ /**
3441
+ * Target platforms and accounts for this post. Required for non-draft posts (returns 400 if empty). Drafts can omit platforms.
3442
+ */
3440
3443
  platforms?: Array<{
3441
3444
  platform?: string;
3442
3445
  accountId?: string;
@@ -9137,6 +9140,10 @@ type AddBroadcastRecipientsData = {
9137
9140
  * Specific contact IDs to add
9138
9141
  */
9139
9142
  contactIds?: Array<(string)>;
9143
+ /**
9144
+ * Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry
9145
+ */
9146
+ phones?: Array<(string)>;
9140
9147
  /**
9141
9148
  * Auto-populate from broadcast segment filters
9142
9149
  */
package/dist/index.d.ts CHANGED
@@ -3437,6 +3437,9 @@ type CreatePostData = {
3437
3437
  type?: 'image' | 'video' | 'gif' | 'document';
3438
3438
  url?: string;
3439
3439
  }>;
3440
+ /**
3441
+ * Target platforms and accounts for this post. Required for non-draft posts (returns 400 if empty). Drafts can omit platforms.
3442
+ */
3440
3443
  platforms?: Array<{
3441
3444
  platform?: string;
3442
3445
  accountId?: string;
@@ -9137,6 +9140,10 @@ type AddBroadcastRecipientsData = {
9137
9140
  * Specific contact IDs to add
9138
9141
  */
9139
9142
  contactIds?: Array<(string)>;
9143
+ /**
9144
+ * Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry
9145
+ */
9146
+ phones?: Array<(string)>;
9140
9147
  /**
9141
9148
  * Auto-populate from broadcast segment filters
9142
9149
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3126,6 +3126,9 @@ export type CreatePostData = {
3126
3126
  type?: 'image' | 'video' | 'gif' | 'document';
3127
3127
  url?: string;
3128
3128
  }>;
3129
+ /**
3130
+ * Target platforms and accounts for this post. Required for non-draft posts (returns 400 if empty). Drafts can omit platforms.
3131
+ */
3129
3132
  platforms?: Array<{
3130
3133
  platform?: string;
3131
3134
  accountId?: string;
@@ -9354,6 +9357,10 @@ export type AddBroadcastRecipientsData = {
9354
9357
  * Specific contact IDs to add
9355
9358
  */
9356
9359
  contactIds?: Array<(string)>;
9360
+ /**
9361
+ * Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry
9362
+ */
9363
+ phones?: Array<(string)>;
9357
9364
  /**
9358
9365
  * Auto-populate from broadcast segment filters
9359
9366
  */