@vogent/vogent-web-client 0.0.8 → 0.0.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/.DS_Store +0 -0
- package/dist/VogentCall.js +5 -5
- package/package.json +1 -1
package/dist/.DS_Store
ADDED
|
Binary file
|
package/dist/VogentCall.js
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* @see {@link https://docs.vogent.ai} for complete server documentation
|
|
40
40
|
* @module VogentCall
|
|
41
41
|
*/
|
|
42
|
-
import { ApolloClient, createHttpLink, InMemoryCache, split } from '@apollo/client';
|
|
42
|
+
import { ApolloClient, createHttpLink, InMemoryCache, split } from '@apollo/client/core';
|
|
43
43
|
import { setContext } from '@apollo/client/link/context';
|
|
44
44
|
import { GraphQLWsLink } from '@apollo/client/link/subscriptions';
|
|
45
45
|
import { getMainDefinition } from '@apollo/client/utilities';
|
|
@@ -219,13 +219,13 @@ export class VogentCall {
|
|
|
219
219
|
* @param paused - Whether to pause the AI or not.
|
|
220
220
|
*/
|
|
221
221
|
async setPaused(paused) {
|
|
222
|
-
if (!this.
|
|
222
|
+
if (!this.dialId) {
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
225
|
await this.client.mutate({
|
|
226
226
|
mutation: AI_SET_PAUSED,
|
|
227
227
|
variables: {
|
|
228
|
-
dialId: this.
|
|
228
|
+
dialId: this.dialId,
|
|
229
229
|
pauseStatus: paused,
|
|
230
230
|
},
|
|
231
231
|
});
|
|
@@ -234,13 +234,13 @@ export class VogentCall {
|
|
|
234
234
|
* Ends the current call
|
|
235
235
|
*/
|
|
236
236
|
async hangup() {
|
|
237
|
-
if (!this.
|
|
237
|
+
if (!this.dialId) {
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
240
|
await this.client.mutate({
|
|
241
241
|
mutation: AI_HANGUP_CALL,
|
|
242
242
|
variables: {
|
|
243
|
-
dialId: this.
|
|
243
|
+
dialId: this.dialId,
|
|
244
244
|
},
|
|
245
245
|
});
|
|
246
246
|
}
|