@droz-js/sdk
Advanced tools
Comparing version 0.7.3 to 0.7.4
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -27,2 +27,5 @@ export * from './sdks/chatwidget'; | ||
}>, options?: unknown): Promise<import("./sdks/chatwidget").SendMessageToChatWidgetMutation>; | ||
closeChatWidgetSession(variables: import("./sdks/chatwidget").Exact<{ | ||
input: import("./sdks/chatwidget").CloseChatWidgetSessionInput; | ||
}>, options?: unknown): Promise<import("./sdks/chatwidget").CloseChatWidgetSessionMutation>; | ||
onChatWidgetMessage(variables: import("./sdks/chatwidget").Exact<{ | ||
@@ -29,0 +32,0 @@ sessionId: string; |
@@ -30,2 +30,5 @@ export * from './sdks/chatwidget'; | ||
}>, options?: unknown): Promise<import("./sdks/chatwidget").SendMessageToChatWidgetMutation>; | ||
closeChatWidgetSession(variables: import("./sdks/chatwidget").Exact<{ | ||
input: import("./sdks/chatwidget").CloseChatWidgetSessionInput; | ||
}>, options?: unknown): Promise<import("./sdks/chatwidget").CloseChatWidgetSessionMutation>; | ||
onChatWidgetMessage(variables: import("./sdks/chatwidget").Exact<{ | ||
@@ -32,0 +35,0 @@ sessionId: string; |
@@ -173,2 +173,5 @@ export type Maybe<T> = T; | ||
}; | ||
export type CloseChatWidgetSessionInput = { | ||
sessionId: Scalars['ID']['input']; | ||
}; | ||
export type CreateChatWidgetInput = { | ||
@@ -186,2 +189,3 @@ name: Scalars['String']['input']; | ||
export type Mutation = { | ||
closeChatWidgetSession?: Maybe<Scalars['Void']['output']>; | ||
createChatWidget?: Maybe<ChatWidget>; | ||
@@ -194,2 +198,5 @@ removeChatWidget?: Maybe<ChatWidget>; | ||
}; | ||
export type MutationCloseChatWidgetSessionArgs = { | ||
input: CloseChatWidgetSessionInput; | ||
}; | ||
export type MutationCreateChatWidgetArgs = { | ||
@@ -370,2 +377,6 @@ input: CreateChatWidgetInput; | ||
export type SendMessageToChatWidgetMutation = Pick<Mutation, 'sendMessageToChatWidget'>; | ||
export type CloseChatWidgetSessionMutationVariables = Exact<{ | ||
input: CloseChatWidgetSessionInput; | ||
}>; | ||
export type CloseChatWidgetSessionMutation = Pick<Mutation, 'closeChatWidgetSession'>; | ||
export type OnChatWidgetMessageSubscriptionVariables = Exact<{ | ||
@@ -386,2 +397,3 @@ sessionId: Scalars['ID']['input']; | ||
export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input)\n}\n "; | ||
export declare const CloseChatWidgetSessionDocument = "\n mutation closeChatWidgetSession($input: CloseChatWidgetSessionInput!) {\n closeChatWidgetSession(input: $input)\n}\n "; | ||
export declare const OnChatWidgetMessageDocument = "\n subscription onChatWidgetMessage($sessionId: ID!) {\n onChatWidgetMessage(sessionId: $sessionId) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n sessionClosed\n}\n "; | ||
@@ -397,2 +409,3 @@ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
sendMessageToChatWidget(variables: SendMessageToChatWidgetMutationVariables, options?: C): Promise<SendMessageToChatWidgetMutation>; | ||
closeChatWidgetSession(variables: CloseChatWidgetSessionMutationVariables, options?: C): Promise<CloseChatWidgetSessionMutation>; | ||
onChatWidgetMessage(variables: OnChatWidgetMessageSubscriptionVariables, options?: C): AsyncIterableIterator<OnChatWidgetMessageSubscription>; | ||
@@ -399,0 +412,0 @@ }; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.OnChatWidgetMessageDocument = exports.SendMessageToChatWidgetDocument = exports.StartChatWidgetSessionDocument = exports.RemoveChatWidgetDocument = exports.UpdateChatWidgetDocument = exports.CreateChatWidgetDocument = exports.ListChatWidgetsDocument = exports.GetChatWidgetDocument = exports.ChatWidgetMessageFragmentDoc = exports.ChatWidgetFragmentDoc = exports.Typenames = exports.SubscriptionAction = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.OnChatWidgetMessageDocument = exports.CloseChatWidgetSessionDocument = exports.SendMessageToChatWidgetDocument = exports.StartChatWidgetSessionDocument = exports.RemoveChatWidgetDocument = exports.UpdateChatWidgetDocument = exports.CreateChatWidgetDocument = exports.ListChatWidgetsDocument = exports.GetChatWidgetDocument = exports.ChatWidgetMessageFragmentDoc = exports.ChatWidgetFragmentDoc = exports.Typenames = exports.SubscriptionAction = exports.Can = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -98,2 +98,7 @@ (function (AppInstanceStatus) { | ||
`; | ||
exports.CloseChatWidgetSessionDocument = ` | ||
mutation closeChatWidgetSession($input: CloseChatWidgetSessionInput!) { | ||
closeChatWidgetSession(input: $input) | ||
} | ||
`; | ||
exports.OnChatWidgetMessageDocument = ` | ||
@@ -129,2 +134,5 @@ subscription onChatWidgetMessage($sessionId: ID!) { | ||
}, | ||
closeChatWidgetSession(variables, options) { | ||
return requester(exports.CloseChatWidgetSessionDocument, variables, options); | ||
}, | ||
onChatWidgetMessage(variables, options) { | ||
@@ -131,0 +139,0 @@ return requester(exports.OnChatWidgetMessageDocument, variables, options); |
665802
14906