@droz-js/sdk 0.16.12 → 0.16.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/package.json +1 -1
- package/src/drozchat-ws.d.ts +0 -9
- package/src/drozchat.d.ts +0 -9
- package/src/sdks/drozchat.d.ts +18 -50
- package/src/sdks/drozchat.js +5 -48
package/package.json
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -97,15 +97,6 @@ declare const DrozChatWs_base: new () => {
|
|
|
97
97
|
disableSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
98
98
|
[key: string]: never;
|
|
99
99
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableSurveyMutation>;
|
|
100
|
-
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
101
|
-
[key: string]: never;
|
|
102
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
|
103
|
-
upsertNpsSurvey(variables: import("./sdks/drozchat").Exact<{
|
|
104
|
-
input: import("./sdks/drozchat").UpsertNpsSurveyInput;
|
|
105
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertNpsSurveyMutation>;
|
|
106
|
-
disableNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
107
|
-
[key: string]: never;
|
|
108
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableNpsSurveyMutation>;
|
|
109
100
|
listQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
110
101
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
111
102
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListQuickAnswersQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -100,15 +100,6 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
100
100
|
disableSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
101
101
|
[key: string]: never;
|
|
102
102
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableSurveyMutation>;
|
|
103
|
-
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
104
|
-
[key: string]: never;
|
|
105
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
|
106
|
-
upsertNpsSurvey(variables: import("./sdks/drozchat").Exact<{
|
|
107
|
-
input: import("./sdks/drozchat").UpsertNpsSurveyInput;
|
|
108
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertNpsSurveyMutation>;
|
|
109
|
-
disableNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
110
|
-
[key: string]: never;
|
|
111
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableNpsSurveyMutation>;
|
|
112
103
|
listQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
113
104
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
114
105
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListQuickAnswersQuery>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -185,6 +185,20 @@ export type ChannelSearchResultsFacetValue = {
|
|
|
185
185
|
count: Scalars['Float']['output'];
|
|
186
186
|
value: Scalars['String']['output'];
|
|
187
187
|
};
|
|
188
|
+
export type ChannelSetting = {
|
|
189
|
+
channel: SurveyChannels;
|
|
190
|
+
commentMessage?: Maybe<Scalars['String']['output']>;
|
|
191
|
+
enabled: Scalars['Boolean']['output'];
|
|
192
|
+
evaluationMessage?: Maybe<Scalars['String']['output']>;
|
|
193
|
+
ttlMinutes: Scalars['Int']['output'];
|
|
194
|
+
};
|
|
195
|
+
export type ChannelSettingInput = {
|
|
196
|
+
channel: SurveyChannels;
|
|
197
|
+
commentMessage?: InputMaybe<Scalars['String']['input']>;
|
|
198
|
+
enabled: Scalars['Boolean']['input'];
|
|
199
|
+
evaluationMessage?: InputMaybe<Scalars['String']['input']>;
|
|
200
|
+
ttlMinutes: Scalars['Int']['input'];
|
|
201
|
+
};
|
|
188
202
|
export type ChatActions = {
|
|
189
203
|
canAssign: Scalars['Boolean']['output'];
|
|
190
204
|
canClose: Scalars['Boolean']['output'];
|
|
@@ -425,7 +439,6 @@ export type Mutation = {
|
|
|
425
439
|
deleteView: View;
|
|
426
440
|
disableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
427
441
|
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
428
|
-
disableNpsSurvey: NpsSurvey;
|
|
429
442
|
disableSurvey: Survey;
|
|
430
443
|
enableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
431
444
|
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
@@ -446,7 +459,6 @@ export type Mutation = {
|
|
|
446
459
|
updateTicket: Ticket;
|
|
447
460
|
updateTrigger: Trigger;
|
|
448
461
|
updateView: View;
|
|
449
|
-
upsertNpsSurvey: NpsSurvey;
|
|
450
462
|
upsertSurvey: Survey;
|
|
451
463
|
version?: Maybe<Scalars['String']['output']>;
|
|
452
464
|
};
|
|
@@ -582,23 +594,9 @@ export type MutationUpdateTriggerArgs = {
|
|
|
582
594
|
export type MutationUpdateViewArgs = {
|
|
583
595
|
input: UpdateViewInput;
|
|
584
596
|
};
|
|
585
|
-
export type MutationUpsertNpsSurveyArgs = {
|
|
586
|
-
input: UpsertNpsSurveyInput;
|
|
587
|
-
};
|
|
588
597
|
export type MutationUpsertSurveyArgs = {
|
|
589
598
|
input: UpsertSurveyInput;
|
|
590
599
|
};
|
|
591
|
-
export type NpsSurvey = {
|
|
592
|
-
channels: Array<NpsSurveyChannels>;
|
|
593
|
-
commentMessage: Scalars['String']['output'];
|
|
594
|
-
createdAt: Scalars['DateTime']['output'];
|
|
595
|
-
enabled: Scalars['Boolean']['output'];
|
|
596
|
-
evaluationMessage: Scalars['String']['output'];
|
|
597
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
598
|
-
};
|
|
599
|
-
export declare enum NpsSurveyChannels {
|
|
600
|
-
WhatsApp = "WhatsApp"
|
|
601
|
-
}
|
|
602
600
|
export type NumberMatcher = {
|
|
603
601
|
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
604
602
|
eq?: Maybe<Scalars['Number']['output']>;
|
|
@@ -632,7 +630,6 @@ export type Query = {
|
|
|
632
630
|
getDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
633
631
|
getGlobalConfiguration?: Maybe<GlobalConfiguration>;
|
|
634
632
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
635
|
-
getNpsSurvey?: Maybe<NpsSurvey>;
|
|
636
633
|
getSurvey?: Maybe<Survey>;
|
|
637
634
|
getTicket?: Maybe<Ticket>;
|
|
638
635
|
getTrigger?: Maybe<Trigger>;
|
|
@@ -855,6 +852,7 @@ export declare enum SubscriptionAction {
|
|
|
855
852
|
Updated = "UPDATED"
|
|
856
853
|
}
|
|
857
854
|
export type Survey = {
|
|
855
|
+
channelSettings: Array<ChannelSetting>;
|
|
858
856
|
channels: Array<SurveyChannels>;
|
|
859
857
|
commentMessage: Scalars['String']['output'];
|
|
860
858
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -864,6 +862,7 @@ export type Survey = {
|
|
|
864
862
|
updatedAt: Scalars['DateTime']['output'];
|
|
865
863
|
};
|
|
866
864
|
export declare enum SurveyChannels {
|
|
865
|
+
Email = "Email",
|
|
867
866
|
WhatsApp = "WhatsApp"
|
|
868
867
|
}
|
|
869
868
|
export declare enum SurveyTypes {
|
|
@@ -1183,6 +1182,7 @@ export declare enum TriggerActionType {
|
|
|
1183
1182
|
RoutingTicket = "ROUTING_TICKET",
|
|
1184
1183
|
SendMessage = "SEND_MESSAGE",
|
|
1185
1184
|
SendNotification = "SEND_NOTIFICATION",
|
|
1185
|
+
SendSurvey = "SEND_SURVEY",
|
|
1186
1186
|
SetPriority = "SET_PRIORITY",
|
|
1187
1187
|
SetStatus = "SET_STATUS",
|
|
1188
1188
|
TransferToChannel = "TRANSFER_TO_CHANNEL"
|
|
@@ -1215,7 +1215,6 @@ export declare enum Typenames {
|
|
|
1215
1215
|
GraphqlConnections = "GraphqlConnections",
|
|
1216
1216
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
1217
1217
|
GroupChannelIndex = "GroupChannelIndex",
|
|
1218
|
-
NpsSurvey = "NpsSurvey",
|
|
1219
1218
|
Protocols = "Protocols",
|
|
1220
1219
|
QuickAnswers = "QuickAnswers",
|
|
1221
1220
|
Survey = "Survey",
|
|
@@ -1276,13 +1275,8 @@ export type UpdateViewInput = {
|
|
|
1276
1275
|
id: Scalars['ID']['input'];
|
|
1277
1276
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1278
1277
|
};
|
|
1279
|
-
export type UpsertNpsSurveyInput = {
|
|
1280
|
-
channels: Array<NpsSurveyChannels>;
|
|
1281
|
-
commentMessage: Scalars['String']['input'];
|
|
1282
|
-
enabled: Scalars['Boolean']['input'];
|
|
1283
|
-
evaluationMessage: Scalars['String']['input'];
|
|
1284
|
-
};
|
|
1285
1278
|
export type UpsertSurveyInput = {
|
|
1279
|
+
channelSettings?: InputMaybe<Array<ChannelSettingInput>>;
|
|
1286
1280
|
channels: Array<SurveyChannels>;
|
|
1287
1281
|
commentMessage: Scalars['String']['input'];
|
|
1288
1282
|
enabled: Scalars['Boolean']['input'];
|
|
@@ -1493,25 +1487,6 @@ export type DisableSurveyMutationVariables = Exact<{
|
|
|
1493
1487
|
export type DisableSurveyMutation = {
|
|
1494
1488
|
disableSurvey: SurveyFragment;
|
|
1495
1489
|
};
|
|
1496
|
-
export type NpsSurveyFragment = Pick<NpsSurvey, 'channels' | 'evaluationMessage' | 'commentMessage' | 'enabled' | 'createdAt' | 'updatedAt'>;
|
|
1497
|
-
export type GetNpsSurveyQueryVariables = Exact<{
|
|
1498
|
-
[key: string]: never;
|
|
1499
|
-
}>;
|
|
1500
|
-
export type GetNpsSurveyQuery = {
|
|
1501
|
-
getNpsSurvey?: Maybe<NpsSurveyFragment>;
|
|
1502
|
-
};
|
|
1503
|
-
export type UpsertNpsSurveyMutationVariables = Exact<{
|
|
1504
|
-
input: UpsertNpsSurveyInput;
|
|
1505
|
-
}>;
|
|
1506
|
-
export type UpsertNpsSurveyMutation = {
|
|
1507
|
-
upsertNpsSurvey: NpsSurveyFragment;
|
|
1508
|
-
};
|
|
1509
|
-
export type DisableNpsSurveyMutationVariables = Exact<{
|
|
1510
|
-
[key: string]: never;
|
|
1511
|
-
}>;
|
|
1512
|
-
export type DisableNpsSurveyMutation = {
|
|
1513
|
-
disableNpsSurvey: NpsSurveyFragment;
|
|
1514
|
-
};
|
|
1515
1490
|
export type QuickAnswerFragment = (Pick<QuickAnswer, 'id' | 'name' | 'message' | 'createdAt' | 'updatedAt'> & {
|
|
1516
1491
|
createdBy: DrozChatAgentFragment;
|
|
1517
1492
|
});
|
|
@@ -1972,7 +1947,6 @@ export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on C
|
|
|
1972
1947
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
1973
1948
|
export declare const DrozChatAgentGroupFragmentDoc = "\n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1974
1949
|
export declare const SurveyFragmentDoc = "\n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
1975
|
-
export declare const NpsSurveyFragmentDoc = "\n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1976
1950
|
export declare const QuickAnswerFragmentDoc = "\n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1977
1951
|
export declare const QuickAnswerFacetsFragmentDoc = "\n fragment quickAnswerFacets on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n}\n ";
|
|
1978
1952
|
export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -2020,9 +1994,6 @@ export declare const RemoveDrozChatAgentGroupDocument = "\n mutation removeDr
|
|
|
2020
1994
|
export declare const GetSurveyDocument = "\n query getSurvey {\n getSurvey {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
2021
1995
|
export declare const UpsertSurveyDocument = "\n mutation upsertSurvey($input: UpsertSurveyInput!) {\n upsertSurvey(input: $input) {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
2022
1996
|
export declare const DisableSurveyDocument = "\n mutation disableSurvey {\n disableSurvey {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
2023
|
-
export declare const GetNpsSurveyDocument = "\n query getNpsSurvey {\n getNpsSurvey {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
2024
|
-
export declare const UpsertNpsSurveyDocument = "\n mutation upsertNpsSurvey($input: UpsertNpsSurveyInput!) {\n upsertNpsSurvey(input: $input) {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
2025
|
-
export declare const DisableNpsSurveyDocument = "\n mutation disableNpsSurvey {\n disableNpsSurvey {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
2026
1997
|
export declare const ListQuickAnswersDocument = "\n query listQuickAnswers($next: Base64) {\n listQuickAnswers(next: $next) {\n nodes {\n ...quickAnswer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2027
1998
|
export declare const SearchQuickAnswersDocument = "\n query searchQuickAnswers($q: String, $filters: [QuickAnswerFilterInput!], $sortBy: [QuickAnswersSortBy!], $page: Number, $perPage: Number) {\n searchQuickAnswers(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...quickAnswer\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n ...quickAnswerFacets\n }\n }\n}\n \n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment quickAnswerFacets on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n}\n ";
|
|
2028
1999
|
export declare const CreateQuickAnswerDocument = "\n mutation createQuickAnswer($input: CreateQuickAnswerInput!) {\n createQuickAnswer(input: $input) {\n ...quickAnswer\n }\n}\n \n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
@@ -2104,9 +2075,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2104
2075
|
getSurvey(variables?: GetSurveyQueryVariables, options?: C): Promise<GetSurveyQuery>;
|
|
2105
2076
|
upsertSurvey(variables: UpsertSurveyMutationVariables, options?: C): Promise<UpsertSurveyMutation>;
|
|
2106
2077
|
disableSurvey(variables?: DisableSurveyMutationVariables, options?: C): Promise<DisableSurveyMutation>;
|
|
2107
|
-
getNpsSurvey(variables?: GetNpsSurveyQueryVariables, options?: C): Promise<GetNpsSurveyQuery>;
|
|
2108
|
-
upsertNpsSurvey(variables: UpsertNpsSurveyMutationVariables, options?: C): Promise<UpsertNpsSurveyMutation>;
|
|
2109
|
-
disableNpsSurvey(variables?: DisableNpsSurveyMutationVariables, options?: C): Promise<DisableNpsSurveyMutation>;
|
|
2110
2078
|
listQuickAnswers(variables?: ListQuickAnswersQueryVariables, options?: C): Promise<ListQuickAnswersQuery>;
|
|
2111
2079
|
searchQuickAnswers(variables?: SearchQuickAnswersQueryVariables, options?: C): Promise<SearchQuickAnswersQuery>;
|
|
2112
2080
|
createQuickAnswer(variables: CreateQuickAnswerMutationVariables, options?: C): Promise<CreateQuickAnswerMutation>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GenerateAnalyticsTokenDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = exports.TriggerConditionFieldsFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.
|
|
5
|
-
exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.
|
|
6
|
-
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.ReorderTriggersByEventTypeDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnMessageByStateMineDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument =
|
|
4
|
+
exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GenerateAnalyticsTokenDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = exports.TriggerConditionFieldsFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.SurveyFragmentDoc = exports.DrozChatAgentGroupFragmentDoc = exports.GlobalConfigurationFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TriggerScope = exports.TriggerEventType = exports.TriggerActionType = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketOrigin = exports.TicketMessageType = exports.TicketMessageRecipient = exports.TicketAutoAssignerType = exports.TicketAssessType = exports.SurveyTypes = exports.SurveyChannels = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.OpenTicketState = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageEnvelopeDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.DisableSurveyDocument = exports.UpsertSurveyDocument = exports.GetSurveyDocument = exports.RemoveDrozChatAgentGroupDocument = exports.AddDrozChatAgentGroupDocument = exports.EnableDrozChatAgentGroupDocument = exports.DisableDrozChatAgentGroupDocument = exports.UpdateDrozChatAgentGroupDocument = exports.CreateDrozChatAgentGroupDocument = exports.ListDrozChatAgentGroupsDocument = exports.ListDrozChatGroupsDocument = exports.GetDrozChatAgentGroupDocument = exports.ClearMaxSimultaneousAttendancesDocument = exports.SetMaxSimultaneousAttendancesDocument = exports.GetGlobalConfigurationDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = exports.ListNotesDocument = exports.RemoveDrozChatChannelGroupDocument = exports.AddDrozChatChannelGroupDocument = exports.RemoveDrozChatChannelAgentDocument = void 0;
|
|
6
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.ReorderTriggersByEventTypeDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnMessageByStateMineDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AppInstanceStatus;
|
|
9
9
|
(function (AppInstanceStatus) {
|
|
@@ -18,10 +18,6 @@ var Can;
|
|
|
18
18
|
Can["Remove"] = "remove";
|
|
19
19
|
Can["Write"] = "write";
|
|
20
20
|
})(Can || (exports.Can = Can = {}));
|
|
21
|
-
var NpsSurveyChannels;
|
|
22
|
-
(function (NpsSurveyChannels) {
|
|
23
|
-
NpsSurveyChannels["WhatsApp"] = "WhatsApp";
|
|
24
|
-
})(NpsSurveyChannels || (exports.NpsSurveyChannels = NpsSurveyChannels = {}));
|
|
25
21
|
var OpenTicketState;
|
|
26
22
|
(function (OpenTicketState) {
|
|
27
23
|
OpenTicketState["InProgress"] = "IN_PROGRESS";
|
|
@@ -43,6 +39,7 @@ var SubscriptionAction;
|
|
|
43
39
|
})(SubscriptionAction || (exports.SubscriptionAction = SubscriptionAction = {}));
|
|
44
40
|
var SurveyChannels;
|
|
45
41
|
(function (SurveyChannels) {
|
|
42
|
+
SurveyChannels["Email"] = "Email";
|
|
46
43
|
SurveyChannels["WhatsApp"] = "WhatsApp";
|
|
47
44
|
})(SurveyChannels || (exports.SurveyChannels = SurveyChannels = {}));
|
|
48
45
|
var SurveyTypes;
|
|
@@ -121,6 +118,7 @@ var TriggerActionType;
|
|
|
121
118
|
TriggerActionType["RoutingTicket"] = "ROUTING_TICKET";
|
|
122
119
|
TriggerActionType["SendMessage"] = "SEND_MESSAGE";
|
|
123
120
|
TriggerActionType["SendNotification"] = "SEND_NOTIFICATION";
|
|
121
|
+
TriggerActionType["SendSurvey"] = "SEND_SURVEY";
|
|
124
122
|
TriggerActionType["SetPriority"] = "SET_PRIORITY";
|
|
125
123
|
TriggerActionType["SetStatus"] = "SET_STATUS";
|
|
126
124
|
TriggerActionType["TransferToChannel"] = "TRANSFER_TO_CHANNEL";
|
|
@@ -149,7 +147,6 @@ var Typenames;
|
|
|
149
147
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
150
148
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
151
149
|
Typenames["GroupChannelIndex"] = "GroupChannelIndex";
|
|
152
|
-
Typenames["NpsSurvey"] = "NpsSurvey";
|
|
153
150
|
Typenames["Protocols"] = "Protocols";
|
|
154
151
|
Typenames["QuickAnswers"] = "QuickAnswers";
|
|
155
152
|
Typenames["Survey"] = "Survey";
|
|
@@ -208,16 +205,6 @@ exports.SurveyFragmentDoc = `
|
|
|
208
205
|
updatedAt
|
|
209
206
|
}
|
|
210
207
|
`;
|
|
211
|
-
exports.NpsSurveyFragmentDoc = `
|
|
212
|
-
fragment npsSurvey on NpsSurvey {
|
|
213
|
-
channels
|
|
214
|
-
evaluationMessage
|
|
215
|
-
commentMessage
|
|
216
|
-
enabled
|
|
217
|
-
createdAt
|
|
218
|
-
updatedAt
|
|
219
|
-
}
|
|
220
|
-
`;
|
|
221
208
|
exports.QuickAnswerFragmentDoc = `
|
|
222
209
|
fragment quickAnswer on QuickAnswer {
|
|
223
210
|
id
|
|
@@ -935,27 +922,6 @@ exports.DisableSurveyDocument = `
|
|
|
935
922
|
}
|
|
936
923
|
}
|
|
937
924
|
${exports.SurveyFragmentDoc}`;
|
|
938
|
-
exports.GetNpsSurveyDocument = `
|
|
939
|
-
query getNpsSurvey {
|
|
940
|
-
getNpsSurvey {
|
|
941
|
-
...npsSurvey
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
${exports.NpsSurveyFragmentDoc}`;
|
|
945
|
-
exports.UpsertNpsSurveyDocument = `
|
|
946
|
-
mutation upsertNpsSurvey($input: UpsertNpsSurveyInput!) {
|
|
947
|
-
upsertNpsSurvey(input: $input) {
|
|
948
|
-
...npsSurvey
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
${exports.NpsSurveyFragmentDoc}`;
|
|
952
|
-
exports.DisableNpsSurveyDocument = `
|
|
953
|
-
mutation disableNpsSurvey {
|
|
954
|
-
disableNpsSurvey {
|
|
955
|
-
...npsSurvey
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
${exports.NpsSurveyFragmentDoc}`;
|
|
959
925
|
exports.ListQuickAnswersDocument = `
|
|
960
926
|
query listQuickAnswers($next: Base64) {
|
|
961
927
|
listQuickAnswers(next: $next) {
|
|
@@ -1642,15 +1608,6 @@ function getSdk(requester) {
|
|
|
1642
1608
|
disableSurvey(variables, options) {
|
|
1643
1609
|
return requester(exports.DisableSurveyDocument, variables, options);
|
|
1644
1610
|
},
|
|
1645
|
-
getNpsSurvey(variables, options) {
|
|
1646
|
-
return requester(exports.GetNpsSurveyDocument, variables, options);
|
|
1647
|
-
},
|
|
1648
|
-
upsertNpsSurvey(variables, options) {
|
|
1649
|
-
return requester(exports.UpsertNpsSurveyDocument, variables, options);
|
|
1650
|
-
},
|
|
1651
|
-
disableNpsSurvey(variables, options) {
|
|
1652
|
-
return requester(exports.DisableNpsSurveyDocument, variables, options);
|
|
1653
|
-
},
|
|
1654
1611
|
listQuickAnswers(variables, options) {
|
|
1655
1612
|
return requester(exports.ListQuickAnswersDocument, variables, options);
|
|
1656
1613
|
},
|