@droz-js/sdk
Advanced tools
Comparing version 0.9.17 to 0.9.18
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.9.17", | ||
"version": "0.9.18", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -8,2 +8,3 @@ export * from './sdks/chatwidget'; | ||
id: import("./sdks/chatwidget").Scalars["ID"]["input"]; | ||
stylesOnly?: import("./sdks/chatwidget").InputMaybe<import("./sdks/chatwidget").Scalars["Boolean"]["input"]>; | ||
}>, options?: unknown): Promise<import("./sdks/chatwidget").GetChatWidgetQuery>; | ||
@@ -10,0 +11,0 @@ listChatWidgets(variables?: import("./sdks/chatwidget").Exact<{ |
@@ -11,2 +11,3 @@ export * from './sdks/chatwidget'; | ||
id: import("./sdks/chatwidget").Scalars["ID"]["input"]; | ||
stylesOnly?: import("./sdks/chatwidget").InputMaybe<import("./sdks/chatwidget").Scalars["Boolean"]["input"]>; | ||
}>, options?: unknown): Promise<import("./sdks/chatwidget").GetChatWidgetQuery>; | ||
@@ -13,0 +14,0 @@ listChatWidgets(variables?: import("./sdks/chatwidget").Exact<{ |
@@ -143,5 +143,14 @@ export type Maybe<T> = T; | ||
allowedDomains: Array<Scalars['String']['output']>; | ||
avatarUrl: Scalars['String']['output']; | ||
buttonsBorderRadius: Scalars['String']['output']; | ||
createdAt: Scalars['DateTime']['output']; | ||
drn: Scalars['DRN']['output']; | ||
fontFamily: Scalars['String']['output']; | ||
fontSize: Scalars['String']['output']; | ||
headerBorderRadius: Scalars['String']['output']; | ||
headerTitle: Scalars['String']['output']; | ||
iconButtonUrl: Scalars['String']['output']; | ||
id: Scalars['ID']['output']; | ||
mainColor: Scalars['String']['output']; | ||
messagesBorderRadius: Scalars['String']['output']; | ||
name: Scalars['String']['output']; | ||
@@ -185,2 +194,11 @@ updatedAt: Scalars['DateTime']['output']; | ||
allowedDomains: Array<InputMaybe<Scalars['String']['input']>>; | ||
avatarUrl: Scalars['String']['input']; | ||
buttonsBorderRadius: Scalars['String']['input']; | ||
fontFamily: Scalars['String']['input']; | ||
fontSize: Scalars['String']['input']; | ||
headerBorderRadius: Scalars['String']['input']; | ||
headerTitle: Scalars['String']['input']; | ||
iconButtonUrl: Scalars['String']['input']; | ||
mainColor: Scalars['String']['input']; | ||
messagesBorderRadius: Scalars['String']['input']; | ||
name: Scalars['String']['input']; | ||
@@ -255,2 +273,3 @@ }; | ||
id: Scalars['ID']['input']; | ||
stylesOnly?: InputMaybe<Scalars['Boolean']['input']>; | ||
}; | ||
@@ -338,6 +357,16 @@ export type RemoveChatWidgetInput = { | ||
allowedDomains?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>; | ||
avatarUrl?: InputMaybe<Scalars['String']['input']>; | ||
buttonsBorderRadius?: InputMaybe<Scalars['String']['input']>; | ||
fontFamily?: InputMaybe<Scalars['String']['input']>; | ||
fontSize?: InputMaybe<Scalars['String']['input']>; | ||
headerBorderRadius?: InputMaybe<Scalars['String']['input']>; | ||
headerTitle?: InputMaybe<Scalars['String']['input']>; | ||
iconButtonUrl?: InputMaybe<Scalars['String']['input']>; | ||
id: Scalars['ID']['input']; | ||
mainColor?: InputMaybe<Scalars['String']['input']>; | ||
messagesBorderRadius?: InputMaybe<Scalars['String']['input']>; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type ChatWidgetFragment = Pick<ChatWidget, 'id' | 'name' | 'allowedDomains' | 'drn' | 'createdAt' | 'updatedAt'>; | ||
export type ChatWidgetStylingFragment = Pick<ChatWidget, 'headerTitle' | 'mainColor' | 'fontSize' | 'fontFamily' | 'buttonsBorderRadius' | 'headerBorderRadius' | 'messagesBorderRadius' | 'avatarUrl' | 'iconButtonUrl'>; | ||
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id' | 'type' | 'sessionClosed'> & { | ||
@@ -348,5 +377,6 @@ payload: Array<Pick<ChatWidgetMessagePayload, 'from' | 'to' | 'channelId' | 'contentType' | 'content' | 'filename'>>; | ||
id: Scalars['ID']['input']; | ||
stylesOnly?: InputMaybe<Scalars['Boolean']['input']>; | ||
}>; | ||
export type GetChatWidgetQuery = { | ||
getChatWidget?: Maybe<ChatWidgetFragment>; | ||
getChatWidget?: Maybe<(ChatWidgetFragment & ChatWidgetStylingFragment)>; | ||
}; | ||
@@ -400,4 +430,5 @@ export type ListChatWidgetsQueryVariables = Exact<{ | ||
export declare const ChatWidgetFragmentDoc = "\n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n "; | ||
export declare const ChatWidgetStylingFragmentDoc = "\n fragment chatWidgetStyling on ChatWidget {\n headerTitle\n mainColor\n fontSize\n fontFamily\n buttonsBorderRadius\n headerBorderRadius\n messagesBorderRadius\n avatarUrl\n iconButtonUrl\n}\n "; | ||
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n "; | ||
export declare const GetChatWidgetDocument = "\n query getChatWidget($id: ID!) {\n getChatWidget(id: $id) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetChatWidgetDocument = "\n query getChatWidget($id: ID!, $stylesOnly: Boolean = false) {\n getChatWidget(id: $id) {\n ...chatWidget @skip(if: $stylesOnly)\n ...chatWidgetStyling\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n \n\n fragment chatWidgetStyling on ChatWidget {\n headerTitle\n mainColor\n fontSize\n fontFamily\n buttonsBorderRadius\n headerBorderRadius\n messagesBorderRadius\n avatarUrl\n iconButtonUrl\n}\n "; | ||
export declare const ListChatWidgetsDocument = "\n query listChatWidgets {\n listChatWidgets {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n "; | ||
@@ -404,0 +435,0 @@ export declare const CreateChatWidgetDocument = "\n mutation createChatWidget($input: CreateChatWidgetInput!) {\n createChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n "; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = 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; | ||
exports.serviceName = exports.OnChatWidgetMessageDocument = exports.CloseChatWidgetSessionDocument = exports.SendMessageToChatWidgetDocument = exports.StartChatWidgetSessionDocument = exports.RemoveChatWidgetDocument = exports.UpdateChatWidgetDocument = exports.CreateChatWidgetDocument = exports.ListChatWidgetsDocument = exports.GetChatWidgetDocument = exports.ChatWidgetMessageFragmentDoc = exports.ChatWidgetStylingFragmentDoc = exports.ChatWidgetFragmentDoc = exports.Typenames = exports.SubscriptionAction = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.getSdk = getSdk; | ||
@@ -43,2 +43,15 @@ var AppInstanceStatus; | ||
`; | ||
exports.ChatWidgetStylingFragmentDoc = ` | ||
fragment chatWidgetStyling on ChatWidget { | ||
headerTitle | ||
mainColor | ||
fontSize | ||
fontFamily | ||
buttonsBorderRadius | ||
headerBorderRadius | ||
messagesBorderRadius | ||
avatarUrl | ||
iconButtonUrl | ||
} | ||
`; | ||
exports.ChatWidgetMessageFragmentDoc = ` | ||
@@ -60,8 +73,10 @@ fragment chatWidgetMessage on ChatWidgetMessage { | ||
exports.GetChatWidgetDocument = ` | ||
query getChatWidget($id: ID!) { | ||
query getChatWidget($id: ID!, $stylesOnly: Boolean = false) { | ||
getChatWidget(id: $id) { | ||
...chatWidget | ||
...chatWidget @skip(if: $stylesOnly) | ||
...chatWidgetStyling | ||
} | ||
} | ||
${exports.ChatWidgetFragmentDoc}`; | ||
${exports.ChatWidgetFragmentDoc} | ||
${exports.ChatWidgetStylingFragmentDoc}`; | ||
exports.ListChatWidgetsDocument = ` | ||
@@ -68,0 +83,0 @@ query listChatWidgets { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1494422
29710