@getlatedev/node 0.2.10 → 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
@@ -9188,6 +9188,18 @@ type CreateSequenceData = {
9188
9188
  template?: {
9189
9189
  name?: string;
9190
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
+ };
9191
9203
  };
9192
9204
  }>;
9193
9205
  exitOnReply?: boolean;
package/dist/index.d.ts CHANGED
@@ -9188,6 +9188,18 @@ type CreateSequenceData = {
9188
9188
  template?: {
9189
9189
  name?: string;
9190
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
+ };
9191
9203
  };
9192
9204
  }>;
9193
9205
  exitOnReply?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.10",
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",
@@ -9411,6 +9411,18 @@ export type CreateSequenceData = {
9411
9411
  template?: {
9412
9412
  name?: string;
9413
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
+ };
9414
9426
  };
9415
9427
  }>;
9416
9428
  exitOnReply?: boolean;