retell-sdk 1.0.12 → 1.0.13

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.js CHANGED
@@ -80,7 +80,7 @@ class Retell {
80
80
  },
81
81
  data: {
82
82
  apiKey: this.apiKey,
83
- agentId: options.agentId,
83
+ agentId: options === null || options === void 0 ? void 0 : options.agentId,
84
84
  },
85
85
  });
86
86
  console.log(response.data);
@@ -94,7 +94,7 @@ class Retell {
94
94
  },
95
95
  data: {
96
96
  apiKey: this.apiKey,
97
- eventId: options.eventId,
97
+ eventId: options === null || options === void 0 ? void 0 : options.eventId,
98
98
  },
99
99
  });
100
100
  console.log(response.data);
package/index.ts CHANGED
@@ -92,7 +92,7 @@ export default class Retell {
92
92
  },
93
93
  data: {
94
94
  apiKey: this.apiKey,
95
- agentId: options.agentId,
95
+ agentId: options?.agentId,
96
96
  },
97
97
  });
98
98
  console.log(response.data);
@@ -107,7 +107,7 @@ export default class Retell {
107
107
  },
108
108
  data: {
109
109
  apiKey: this.apiKey,
110
- eventId: options.eventId,
110
+ eventId: options?.eventId,
111
111
  },
112
112
  });
113
113
  console.log(response.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retell-sdk",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "retell sdk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",