@getlatedev/node 0.2.9 → 0.2.11

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
@@ -9140,6 +9140,10 @@ type AddBroadcastRecipientsData = {
9140
9140
  * Specific contact IDs to add
9141
9141
  */
9142
9142
  contactIds?: Array<(string)>;
9143
+ /**
9144
+ * Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry
9145
+ */
9146
+ phones?: Array<(string)>;
9143
9147
  /**
9144
9148
  * Auto-populate from broadcast segment filters
9145
9149
  */
@@ -9184,6 +9188,18 @@ type CreateSequenceData = {
9184
9188
  template?: {
9185
9189
  name?: string;
9186
9190
  language?: string;
9191
+ /**
9192
+ * Maps template variable positions to contact fields. Keys are position strings ("1", "2"), values are objects with field and optional customValue
9193
+ */
9194
+ variableMapping?: {
9195
+ [key: string]: {
9196
+ field?: 'name' | 'phone' | 'email' | 'company' | 'custom';
9197
+ /**
9198
+ * Static value when field is "custom"
9199
+ */
9200
+ customValue?: string;
9201
+ };
9202
+ };
9187
9203
  };
9188
9204
  }>;
9189
9205
  exitOnReply?: boolean;
package/dist/index.d.ts CHANGED
@@ -9140,6 +9140,10 @@ type AddBroadcastRecipientsData = {
9140
9140
  * Specific contact IDs to add
9141
9141
  */
9142
9142
  contactIds?: Array<(string)>;
9143
+ /**
9144
+ * Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry
9145
+ */
9146
+ phones?: Array<(string)>;
9143
9147
  /**
9144
9148
  * Auto-populate from broadcast segment filters
9145
9149
  */
@@ -9184,6 +9188,18 @@ type CreateSequenceData = {
9184
9188
  template?: {
9185
9189
  name?: string;
9186
9190
  language?: string;
9191
+ /**
9192
+ * Maps template variable positions to contact fields. Keys are position strings ("1", "2"), values are objects with field and optional customValue
9193
+ */
9194
+ variableMapping?: {
9195
+ [key: string]: {
9196
+ field?: 'name' | 'phone' | 'email' | 'company' | 'custom';
9197
+ /**
9198
+ * Static value when field is "custom"
9199
+ */
9200
+ customValue?: string;
9201
+ };
9202
+ };
9187
9203
  };
9188
9204
  }>;
9189
9205
  exitOnReply?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9357,6 +9357,10 @@ export type AddBroadcastRecipientsData = {
9357
9357
  * Specific contact IDs to add
9358
9358
  */
9359
9359
  contactIds?: Array<(string)>;
9360
+ /**
9361
+ * Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry
9362
+ */
9363
+ phones?: Array<(string)>;
9360
9364
  /**
9361
9365
  * Auto-populate from broadcast segment filters
9362
9366
  */
@@ -9407,6 +9411,18 @@ export type CreateSequenceData = {
9407
9411
  template?: {
9408
9412
  name?: string;
9409
9413
  language?: string;
9414
+ /**
9415
+ * Maps template variable positions to contact fields. Keys are position strings ("1", "2"), values are objects with field and optional customValue
9416
+ */
9417
+ variableMapping?: {
9418
+ [key: string]: {
9419
+ field?: 'name' | 'phone' | 'email' | 'company' | 'custom';
9420
+ /**
9421
+ * Static value when field is "custom"
9422
+ */
9423
+ customValue?: string;
9424
+ };
9425
+ };
9410
9426
  };
9411
9427
  }>;
9412
9428
  exitOnReply?: boolean;