@droz-js/sdk
Advanced tools
Comparing version 0.2.12 to 0.2.13
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.2.12", | ||
"version": "0.2.13", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -69,3 +69,6 @@ "use strict"; | ||
const data = await fetch(`${helpers_1.serviceDiscoveryEndpoint}/discover/${tenant}`); | ||
const json = await data.json(); | ||
const json = await data.json().catch(error => { | ||
console.error(error); | ||
return {}; | ||
}); | ||
const instances = json.instances ?? []; | ||
@@ -72,0 +75,0 @@ // validate it's a valid tenant |
@@ -72,2 +72,6 @@ export type Maybe<T> = T; | ||
}; | ||
PhoneNumber: { | ||
input: string; | ||
output: string; | ||
}; | ||
Set: { | ||
@@ -93,2 +97,3 @@ input: Set<any>; | ||
payload: Array<ChatWidgetMessagePayload>; | ||
sessionClosed: Scalars['Boolean']['output']; | ||
}; | ||
@@ -95,0 +100,0 @@ export type ChatWidgetMessagePayload = { |
@@ -72,2 +72,6 @@ export type Maybe<T> = T; | ||
}; | ||
PhoneNumber: { | ||
input: string; | ||
output: string; | ||
}; | ||
Set: { | ||
@@ -106,3 +110,3 @@ input: Set<any>; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
phone?: InputMaybe<Scalars['String']['input']>; | ||
phone?: InputMaybe<Scalars['PhoneNumber']['input']>; | ||
}; | ||
@@ -109,0 +113,0 @@ export type DrozBotInstance = { |
@@ -73,4 +73,4 @@ export type Maybe<T> = T; | ||
PhoneNumber: { | ||
input: any; | ||
output: any; | ||
input: string; | ||
output: string; | ||
}; | ||
@@ -77,0 +77,0 @@ Set: { |
@@ -72,2 +72,6 @@ export type Maybe<T> = T; | ||
}; | ||
PhoneNumber: { | ||
input: string; | ||
output: string; | ||
}; | ||
Set: { | ||
@@ -74,0 +78,0 @@ input: Set<any>; |
@@ -72,2 +72,6 @@ export type Maybe<T> = T; | ||
}; | ||
PhoneNumber: { | ||
input: string; | ||
output: string; | ||
}; | ||
Set: { | ||
@@ -74,0 +78,0 @@ input: Set<any>; |
@@ -73,4 +73,4 @@ export type Maybe<T> = T; | ||
PhoneNumber: { | ||
input: any; | ||
output: any; | ||
input: string; | ||
output: string; | ||
}; | ||
@@ -77,0 +77,0 @@ Set: { |
@@ -72,2 +72,6 @@ export type Maybe<T> = T; | ||
}; | ||
PhoneNumber: { | ||
input: string; | ||
output: string; | ||
}; | ||
Set: { | ||
@@ -88,3 +92,2 @@ input: Set<any>; | ||
credentialId?: InputMaybe<Scalars['ID']['input']>; | ||
id: Scalars['ID']['input']; | ||
name: Scalars['String']['input']; | ||
@@ -91,0 +94,0 @@ }; |
@@ -72,2 +72,6 @@ export type Maybe<T> = T; | ||
}; | ||
PhoneNumber: { | ||
input: string; | ||
output: string; | ||
}; | ||
Set: { | ||
@@ -74,0 +78,0 @@ input: Set<any>; |
250160
5576