@droz-js/sdk 0.12.11 → 0.12.12
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 +9 -0
- package/src/drozchat.d.ts +9 -0
- package/src/sdks/drozbot.d.ts +2 -0
- package/src/sdks/drozbot.js +1 -0
- package/src/sdks/drozchat.d.ts +57 -0
- package/src/sdks/drozchat.js +55 -3
package/package.json
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -82,6 +82,15 @@ declare const DrozChatWs_base: new () => {
|
|
|
82
82
|
removeDrozChatAgentGroupAgent(variables: import("./sdks/drozchat").Exact<{
|
|
83
83
|
input: import("./sdks/drozchat").RemoveDrozChatAgentGroupAgentInput;
|
|
84
84
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatAgentGroupAgentMutation>;
|
|
85
|
+
getSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
86
|
+
[key: string]: never;
|
|
87
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetSurveyQuery>;
|
|
88
|
+
upsertSurvey(variables: import("./sdks/drozchat").Exact<{
|
|
89
|
+
input: import("./sdks/drozchat").UpsertSurveyInput;
|
|
90
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertSurveyMutation>;
|
|
91
|
+
disableSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
92
|
+
[key: string]: never;
|
|
93
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableSurveyMutation>;
|
|
85
94
|
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
86
95
|
[key: string]: never;
|
|
87
96
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -85,6 +85,15 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
85
85
|
removeDrozChatAgentGroupAgent(variables: import("./sdks/drozchat").Exact<{
|
|
86
86
|
input: import("./sdks/drozchat").RemoveDrozChatAgentGroupAgentInput;
|
|
87
87
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatAgentGroupAgentMutation>;
|
|
88
|
+
getSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
89
|
+
[key: string]: never;
|
|
90
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetSurveyQuery>;
|
|
91
|
+
upsertSurvey(variables: import("./sdks/drozchat").Exact<{
|
|
92
|
+
input: import("./sdks/drozchat").UpsertSurveyInput;
|
|
93
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertSurveyMutation>;
|
|
94
|
+
disableSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
95
|
+
[key: string]: never;
|
|
96
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableSurveyMutation>;
|
|
88
97
|
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
89
98
|
[key: string]: never;
|
|
90
99
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ export type CreateManyDrozBotTicketCommentsInput = {
|
|
|
204
204
|
sender: DrozBotTicketMessageSender;
|
|
205
205
|
};
|
|
206
206
|
export declare enum DrozBotAssessType {
|
|
207
|
+
Csat = "CSAT",
|
|
207
208
|
Nps = "NPS"
|
|
208
209
|
}
|
|
209
210
|
export type DrozBotCustomer = {
|
|
@@ -276,6 +277,7 @@ export declare enum DrozBotWhatsAppTemplateTypes {
|
|
|
276
277
|
Text = "TEXT"
|
|
277
278
|
}
|
|
278
279
|
export type DrozBotWhatsAppTemplateUser = {
|
|
280
|
+
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
279
281
|
phone: Scalars['String']['input'];
|
|
280
282
|
vars: Array<Scalars['String']['input']>;
|
|
281
283
|
};
|
package/src/sdks/drozbot.js
CHANGED
|
@@ -18,6 +18,7 @@ var Can;
|
|
|
18
18
|
})(Can || (exports.Can = Can = {}));
|
|
19
19
|
var DrozBotAssessType;
|
|
20
20
|
(function (DrozBotAssessType) {
|
|
21
|
+
DrozBotAssessType["Csat"] = "CSAT";
|
|
21
22
|
DrozBotAssessType["Nps"] = "NPS";
|
|
22
23
|
})(DrozBotAssessType || (exports.DrozBotAssessType = DrozBotAssessType = {}));
|
|
23
24
|
var DrozBotIntegrationType;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -378,6 +378,7 @@ export type Mutation = {
|
|
|
378
378
|
disableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
379
379
|
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
380
380
|
disableNpsSurvey: NpsSurvey;
|
|
381
|
+
disableSurvey: Survey;
|
|
381
382
|
enableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
382
383
|
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
383
384
|
generateAnalyticsToken?: Maybe<AnalyticsToken>;
|
|
@@ -396,6 +397,7 @@ export type Mutation = {
|
|
|
396
397
|
updateTrigger: Trigger;
|
|
397
398
|
updateView: View;
|
|
398
399
|
upsertNpsSurvey: NpsSurvey;
|
|
400
|
+
upsertSurvey: Survey;
|
|
399
401
|
version?: Maybe<Scalars['String']['output']>;
|
|
400
402
|
};
|
|
401
403
|
export type MutationAddDrozChatAgentGroupAgentArgs = {
|
|
@@ -521,6 +523,9 @@ export type MutationUpdateViewArgs = {
|
|
|
521
523
|
export type MutationUpsertNpsSurveyArgs = {
|
|
522
524
|
input: UpsertNpsSurveyInput;
|
|
523
525
|
};
|
|
526
|
+
export type MutationUpsertSurveyArgs = {
|
|
527
|
+
input: UpsertSurveyInput;
|
|
528
|
+
};
|
|
524
529
|
export type NpsSurvey = {
|
|
525
530
|
channels: Array<NpsSurveyChannels>;
|
|
526
531
|
commentMessage: Scalars['String']['output'];
|
|
@@ -561,6 +566,7 @@ export type Query = {
|
|
|
561
566
|
getGlobalConfiguration?: Maybe<GlobalConfiguration>;
|
|
562
567
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
563
568
|
getNpsSurvey?: Maybe<NpsSurvey>;
|
|
569
|
+
getSurvey?: Maybe<Survey>;
|
|
564
570
|
getTicket?: Maybe<Ticket>;
|
|
565
571
|
getTrigger?: Maybe<Trigger>;
|
|
566
572
|
getView?: Maybe<View>;
|
|
@@ -766,6 +772,22 @@ export declare enum SubscriptionAction {
|
|
|
766
772
|
Removed = "REMOVED",
|
|
767
773
|
Updated = "UPDATED"
|
|
768
774
|
}
|
|
775
|
+
export type Survey = {
|
|
776
|
+
channels: Array<SurveyChannels>;
|
|
777
|
+
commentMessage: Scalars['String']['output'];
|
|
778
|
+
createdAt: Scalars['DateTime']['output'];
|
|
779
|
+
enabled: Scalars['Boolean']['output'];
|
|
780
|
+
evaluationMessage: Scalars['String']['output'];
|
|
781
|
+
type: SurveyTypes;
|
|
782
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
783
|
+
};
|
|
784
|
+
export declare enum SurveyChannels {
|
|
785
|
+
WhatsApp = "WhatsApp"
|
|
786
|
+
}
|
|
787
|
+
export declare enum SurveyTypes {
|
|
788
|
+
Csat = "CSAT",
|
|
789
|
+
Nps = "NPS"
|
|
790
|
+
}
|
|
769
791
|
export type Ticket = {
|
|
770
792
|
assignedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
771
793
|
assignee?: Maybe<DrozChatAgent>;
|
|
@@ -798,6 +820,7 @@ export type Ticket = {
|
|
|
798
820
|
updatedAt: Scalars['DateTime']['output'];
|
|
799
821
|
};
|
|
800
822
|
export declare enum TicketAssessType {
|
|
823
|
+
Csat = "CSAT",
|
|
801
824
|
Nps = "NPS"
|
|
802
825
|
}
|
|
803
826
|
export declare enum TicketAutoAssignerType {
|
|
@@ -1036,6 +1059,7 @@ export declare enum Typenames {
|
|
|
1036
1059
|
NpsSurvey = "NpsSurvey",
|
|
1037
1060
|
Protocols = "Protocols",
|
|
1038
1061
|
QuickAnswers = "QuickAnswers",
|
|
1062
|
+
Survey = "Survey",
|
|
1039
1063
|
Tags = "Tags",
|
|
1040
1064
|
TicketMappings = "TicketMappings",
|
|
1041
1065
|
TicketMessages = "TicketMessages",
|
|
@@ -1096,6 +1120,13 @@ export type UpsertNpsSurveyInput = {
|
|
|
1096
1120
|
enabled: Scalars['Boolean']['input'];
|
|
1097
1121
|
evaluationMessage: Scalars['String']['input'];
|
|
1098
1122
|
};
|
|
1123
|
+
export type UpsertSurveyInput = {
|
|
1124
|
+
channels: Array<SurveyChannels>;
|
|
1125
|
+
commentMessage: Scalars['String']['input'];
|
|
1126
|
+
enabled: Scalars['Boolean']['input'];
|
|
1127
|
+
evaluationMessage: Scalars['String']['input'];
|
|
1128
|
+
type: SurveyTypes;
|
|
1129
|
+
};
|
|
1099
1130
|
export type View = {
|
|
1100
1131
|
createdAt: Scalars['DateTime']['output'];
|
|
1101
1132
|
filters: Scalars['JSONObject']['output'];
|
|
@@ -1269,6 +1300,25 @@ export type RemoveDrozChatAgentGroupAgentMutationVariables = Exact<{
|
|
|
1269
1300
|
export type RemoveDrozChatAgentGroupAgentMutation = {
|
|
1270
1301
|
removeDrozChatAgentGroupAgent?: Maybe<DrozChatAgentGroupFragment>;
|
|
1271
1302
|
};
|
|
1303
|
+
export type SurveyFragment = Pick<Survey, 'channels' | 'evaluationMessage' | 'commentMessage' | 'enabled' | 'type' | 'createdAt' | 'updatedAt'>;
|
|
1304
|
+
export type GetSurveyQueryVariables = Exact<{
|
|
1305
|
+
[key: string]: never;
|
|
1306
|
+
}>;
|
|
1307
|
+
export type GetSurveyQuery = {
|
|
1308
|
+
getSurvey?: Maybe<SurveyFragment>;
|
|
1309
|
+
};
|
|
1310
|
+
export type UpsertSurveyMutationVariables = Exact<{
|
|
1311
|
+
input: UpsertSurveyInput;
|
|
1312
|
+
}>;
|
|
1313
|
+
export type UpsertSurveyMutation = {
|
|
1314
|
+
upsertSurvey: SurveyFragment;
|
|
1315
|
+
};
|
|
1316
|
+
export type DisableSurveyMutationVariables = Exact<{
|
|
1317
|
+
[key: string]: never;
|
|
1318
|
+
}>;
|
|
1319
|
+
export type DisableSurveyMutation = {
|
|
1320
|
+
disableSurvey: SurveyFragment;
|
|
1321
|
+
};
|
|
1272
1322
|
export type NpsSurveyFragment = Pick<NpsSurvey, 'channels' | 'evaluationMessage' | 'commentMessage' | 'enabled' | 'createdAt' | 'updatedAt'>;
|
|
1273
1323
|
export type GetNpsSurveyQueryVariables = Exact<{
|
|
1274
1324
|
[key: string]: never;
|
|
@@ -1679,6 +1729,7 @@ export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on
|
|
|
1679
1729
|
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1680
1730
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
1681
1731
|
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 ";
|
|
1732
|
+
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 ";
|
|
1682
1733
|
export declare const NpsSurveyFragmentDoc = "\n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1683
1734
|
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 ";
|
|
1684
1735
|
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 ";
|
|
@@ -1721,6 +1772,9 @@ export declare const DisableDrozChatAgentGroupDocument = "\n mutation disable
|
|
|
1721
1772
|
export declare const EnableDrozChatAgentGroupDocument = "\n mutation enableDrozChatAgentGroup($input: EnableDrozChatAgentGroupInput!) {\n enableDrozChatAgentGroup(input: $input) {\n ...drozChatAgentGroup\n }\n}\n \n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1722
1773
|
export declare const AddDrozChatAgentGroupAgentDocument = "\n mutation addDrozChatAgentGroupAgent($input: AddDrozChatAgentGroupAgentInput!) {\n addDrozChatAgentGroupAgent(input: $input) {\n ...drozChatAgentGroup\n }\n}\n \n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1723
1774
|
export declare const RemoveDrozChatAgentGroupAgentDocument = "\n mutation removeDrozChatAgentGroupAgent($input: RemoveDrozChatAgentGroupAgentInput!) {\n removeDrozChatAgentGroupAgent(input: $input) {\n ...drozChatAgentGroup\n }\n}\n \n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1775
|
+
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 ";
|
|
1776
|
+
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 ";
|
|
1777
|
+
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 ";
|
|
1724
1778
|
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 ";
|
|
1725
1779
|
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 ";
|
|
1726
1780
|
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 ";
|
|
@@ -1796,6 +1850,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1796
1850
|
enableDrozChatAgentGroup(variables: EnableDrozChatAgentGroupMutationVariables, options?: C): Promise<EnableDrozChatAgentGroupMutation>;
|
|
1797
1851
|
addDrozChatAgentGroupAgent(variables: AddDrozChatAgentGroupAgentMutationVariables, options?: C): Promise<AddDrozChatAgentGroupAgentMutation>;
|
|
1798
1852
|
removeDrozChatAgentGroupAgent(variables: RemoveDrozChatAgentGroupAgentMutationVariables, options?: C): Promise<RemoveDrozChatAgentGroupAgentMutation>;
|
|
1853
|
+
getSurvey(variables?: GetSurveyQueryVariables, options?: C): Promise<GetSurveyQuery>;
|
|
1854
|
+
upsertSurvey(variables: UpsertSurveyMutationVariables, options?: C): Promise<UpsertSurveyMutation>;
|
|
1855
|
+
disableSurvey(variables?: DisableSurveyMutationVariables, options?: C): Promise<DisableSurveyMutation>;
|
|
1799
1856
|
getNpsSurvey(variables?: GetNpsSurveyQueryVariables, options?: C): Promise<GetNpsSurveyQuery>;
|
|
1800
1857
|
upsertNpsSurvey(variables: UpsertNpsSurveyMutationVariables, options?: C): Promise<UpsertNpsSurveyMutation>;
|
|
1801
1858
|
disableNpsSurvey(variables?: DisableNpsSurveyMutationVariables, options?: C): Promise<DisableNpsSurveyMutation>;
|
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.
|
|
5
|
-
exports.
|
|
6
|
-
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = void 0;
|
|
4
|
+
exports.ListNotesDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GenerateAnalyticsTokenDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = 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.NpsSurveyFragmentDoc = exports.SurveyFragmentDoc = exports.DrozChatAgentGroupFragmentDoc = exports.GlobalConfigurationFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TriggerEventType = exports.TriggerActionType = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketMessageType = exports.TicketMessageRecipient = exports.TicketAutoAssignerType = exports.TicketAssessType = exports.SurveyTypes = exports.SurveyChannels = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.NpsSurveyChannels = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.SearchTicketsByCustomerDocument = 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.DisableNpsSurveyDocument = exports.UpsertNpsSurveyDocument = exports.GetNpsSurveyDocument = exports.DisableSurveyDocument = exports.UpsertSurveyDocument = exports.GetSurveyDocument = exports.RemoveDrozChatAgentGroupAgentDocument = exports.AddDrozChatAgentGroupAgentDocument = 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 = void 0;
|
|
6
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AppInstanceStatus;
|
|
9
9
|
(function (AppInstanceStatus) {
|
|
@@ -36,8 +36,18 @@ var SubscriptionAction;
|
|
|
36
36
|
SubscriptionAction["Removed"] = "REMOVED";
|
|
37
37
|
SubscriptionAction["Updated"] = "UPDATED";
|
|
38
38
|
})(SubscriptionAction || (exports.SubscriptionAction = SubscriptionAction = {}));
|
|
39
|
+
var SurveyChannels;
|
|
40
|
+
(function (SurveyChannels) {
|
|
41
|
+
SurveyChannels["WhatsApp"] = "WhatsApp";
|
|
42
|
+
})(SurveyChannels || (exports.SurveyChannels = SurveyChannels = {}));
|
|
43
|
+
var SurveyTypes;
|
|
44
|
+
(function (SurveyTypes) {
|
|
45
|
+
SurveyTypes["Csat"] = "CSAT";
|
|
46
|
+
SurveyTypes["Nps"] = "NPS";
|
|
47
|
+
})(SurveyTypes || (exports.SurveyTypes = SurveyTypes = {}));
|
|
39
48
|
var TicketAssessType;
|
|
40
49
|
(function (TicketAssessType) {
|
|
50
|
+
TicketAssessType["Csat"] = "CSAT";
|
|
41
51
|
TicketAssessType["Nps"] = "NPS";
|
|
42
52
|
})(TicketAssessType || (exports.TicketAssessType = TicketAssessType = {}));
|
|
43
53
|
var TicketAutoAssignerType;
|
|
@@ -121,6 +131,7 @@ var Typenames;
|
|
|
121
131
|
Typenames["NpsSurvey"] = "NpsSurvey";
|
|
122
132
|
Typenames["Protocols"] = "Protocols";
|
|
123
133
|
Typenames["QuickAnswers"] = "QuickAnswers";
|
|
134
|
+
Typenames["Survey"] = "Survey";
|
|
124
135
|
Typenames["Tags"] = "Tags";
|
|
125
136
|
Typenames["TicketMappings"] = "TicketMappings";
|
|
126
137
|
Typenames["TicketMessages"] = "TicketMessages";
|
|
@@ -165,6 +176,17 @@ exports.DrozChatAgentGroupFragmentDoc = `
|
|
|
165
176
|
deletedAt
|
|
166
177
|
}
|
|
167
178
|
`;
|
|
179
|
+
exports.SurveyFragmentDoc = `
|
|
180
|
+
fragment survey on Survey {
|
|
181
|
+
channels
|
|
182
|
+
evaluationMessage
|
|
183
|
+
commentMessage
|
|
184
|
+
enabled
|
|
185
|
+
type
|
|
186
|
+
createdAt
|
|
187
|
+
updatedAt
|
|
188
|
+
}
|
|
189
|
+
`;
|
|
168
190
|
exports.NpsSurveyFragmentDoc = `
|
|
169
191
|
fragment npsSurvey on NpsSurvey {
|
|
170
192
|
channels
|
|
@@ -652,6 +674,27 @@ exports.RemoveDrozChatAgentGroupAgentDocument = `
|
|
|
652
674
|
}
|
|
653
675
|
}
|
|
654
676
|
${exports.DrozChatAgentGroupFragmentDoc}`;
|
|
677
|
+
exports.GetSurveyDocument = `
|
|
678
|
+
query getSurvey {
|
|
679
|
+
getSurvey {
|
|
680
|
+
...survey
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
${exports.SurveyFragmentDoc}`;
|
|
684
|
+
exports.UpsertSurveyDocument = `
|
|
685
|
+
mutation upsertSurvey($input: UpsertSurveyInput!) {
|
|
686
|
+
upsertSurvey(input: $input) {
|
|
687
|
+
...survey
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
${exports.SurveyFragmentDoc}`;
|
|
691
|
+
exports.DisableSurveyDocument = `
|
|
692
|
+
mutation disableSurvey {
|
|
693
|
+
disableSurvey {
|
|
694
|
+
...survey
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
${exports.SurveyFragmentDoc}`;
|
|
655
698
|
exports.GetNpsSurveyDocument = `
|
|
656
699
|
query getNpsSurvey {
|
|
657
700
|
getNpsSurvey {
|
|
@@ -1305,6 +1348,15 @@ function getSdk(requester) {
|
|
|
1305
1348
|
removeDrozChatAgentGroupAgent(variables, options) {
|
|
1306
1349
|
return requester(exports.RemoveDrozChatAgentGroupAgentDocument, variables, options);
|
|
1307
1350
|
},
|
|
1351
|
+
getSurvey(variables, options) {
|
|
1352
|
+
return requester(exports.GetSurveyDocument, variables, options);
|
|
1353
|
+
},
|
|
1354
|
+
upsertSurvey(variables, options) {
|
|
1355
|
+
return requester(exports.UpsertSurveyDocument, variables, options);
|
|
1356
|
+
},
|
|
1357
|
+
disableSurvey(variables, options) {
|
|
1358
|
+
return requester(exports.DisableSurveyDocument, variables, options);
|
|
1359
|
+
},
|
|
1308
1360
|
getNpsSurvey(variables, options) {
|
|
1309
1361
|
return requester(exports.GetNpsSurveyDocument, variables, options);
|
|
1310
1362
|
},
|