@droz-js/sdk 0.12.11 → 0.12.14
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 +6 -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 +59 -0
- package/src/sdks/drozchat.js +57 -3
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@droz-js/sdk",
|
|
3
3
|
"description": "Droz SDK",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.14",
|
|
5
5
|
"private": false,
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/droztech/droz.git",
|
|
9
|
+
"directory": "packages/libs/sdk-js"
|
|
10
|
+
},
|
|
6
11
|
"exports": {
|
|
7
12
|
".": "./src/index.js",
|
|
8
13
|
"./*": "./src/*.js"
|
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 {
|
|
@@ -878,6 +901,8 @@ export declare enum TicketSearchSortBy {
|
|
|
878
901
|
ClosedAtDesc = "closedAt_desc",
|
|
879
902
|
CreatedAtAsc = "createdAt_asc",
|
|
880
903
|
CreatedAtDesc = "createdAt_desc",
|
|
904
|
+
LastMessageAtAsc = "lastMessageAt_asc",
|
|
905
|
+
LastMessageAtDesc = "lastMessageAt_desc",
|
|
881
906
|
Relevance = "relevance",
|
|
882
907
|
StatusAsc = "status_asc",
|
|
883
908
|
StatusDesc = "status_desc",
|
|
@@ -1036,6 +1061,7 @@ export declare enum Typenames {
|
|
|
1036
1061
|
NpsSurvey = "NpsSurvey",
|
|
1037
1062
|
Protocols = "Protocols",
|
|
1038
1063
|
QuickAnswers = "QuickAnswers",
|
|
1064
|
+
Survey = "Survey",
|
|
1039
1065
|
Tags = "Tags",
|
|
1040
1066
|
TicketMappings = "TicketMappings",
|
|
1041
1067
|
TicketMessages = "TicketMessages",
|
|
@@ -1096,6 +1122,13 @@ export type UpsertNpsSurveyInput = {
|
|
|
1096
1122
|
enabled: Scalars['Boolean']['input'];
|
|
1097
1123
|
evaluationMessage: Scalars['String']['input'];
|
|
1098
1124
|
};
|
|
1125
|
+
export type UpsertSurveyInput = {
|
|
1126
|
+
channels: Array<SurveyChannels>;
|
|
1127
|
+
commentMessage: Scalars['String']['input'];
|
|
1128
|
+
enabled: Scalars['Boolean']['input'];
|
|
1129
|
+
evaluationMessage: Scalars['String']['input'];
|
|
1130
|
+
type: SurveyTypes;
|
|
1131
|
+
};
|
|
1099
1132
|
export type View = {
|
|
1100
1133
|
createdAt: Scalars['DateTime']['output'];
|
|
1101
1134
|
filters: Scalars['JSONObject']['output'];
|
|
@@ -1269,6 +1302,25 @@ export type RemoveDrozChatAgentGroupAgentMutationVariables = Exact<{
|
|
|
1269
1302
|
export type RemoveDrozChatAgentGroupAgentMutation = {
|
|
1270
1303
|
removeDrozChatAgentGroupAgent?: Maybe<DrozChatAgentGroupFragment>;
|
|
1271
1304
|
};
|
|
1305
|
+
export type SurveyFragment = Pick<Survey, 'channels' | 'evaluationMessage' | 'commentMessage' | 'enabled' | 'type' | 'createdAt' | 'updatedAt'>;
|
|
1306
|
+
export type GetSurveyQueryVariables = Exact<{
|
|
1307
|
+
[key: string]: never;
|
|
1308
|
+
}>;
|
|
1309
|
+
export type GetSurveyQuery = {
|
|
1310
|
+
getSurvey?: Maybe<SurveyFragment>;
|
|
1311
|
+
};
|
|
1312
|
+
export type UpsertSurveyMutationVariables = Exact<{
|
|
1313
|
+
input: UpsertSurveyInput;
|
|
1314
|
+
}>;
|
|
1315
|
+
export type UpsertSurveyMutation = {
|
|
1316
|
+
upsertSurvey: SurveyFragment;
|
|
1317
|
+
};
|
|
1318
|
+
export type DisableSurveyMutationVariables = Exact<{
|
|
1319
|
+
[key: string]: never;
|
|
1320
|
+
}>;
|
|
1321
|
+
export type DisableSurveyMutation = {
|
|
1322
|
+
disableSurvey: SurveyFragment;
|
|
1323
|
+
};
|
|
1272
1324
|
export type NpsSurveyFragment = Pick<NpsSurvey, 'channels' | 'evaluationMessage' | 'commentMessage' | 'enabled' | 'createdAt' | 'updatedAt'>;
|
|
1273
1325
|
export type GetNpsSurveyQueryVariables = Exact<{
|
|
1274
1326
|
[key: string]: never;
|
|
@@ -1679,6 +1731,7 @@ export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on
|
|
|
1679
1731
|
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
1732
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
1681
1733
|
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 ";
|
|
1734
|
+
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
1735
|
export declare const NpsSurveyFragmentDoc = "\n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1683
1736
|
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
1737
|
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 +1774,9 @@ export declare const DisableDrozChatAgentGroupDocument = "\n mutation disable
|
|
|
1721
1774
|
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
1775
|
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
1776
|
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 ";
|
|
1777
|
+
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 ";
|
|
1778
|
+
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 ";
|
|
1779
|
+
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
1780
|
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
1781
|
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
1782
|
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 +1852,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1796
1852
|
enableDrozChatAgentGroup(variables: EnableDrozChatAgentGroupMutationVariables, options?: C): Promise<EnableDrozChatAgentGroupMutation>;
|
|
1797
1853
|
addDrozChatAgentGroupAgent(variables: AddDrozChatAgentGroupAgentMutationVariables, options?: C): Promise<AddDrozChatAgentGroupAgentMutation>;
|
|
1798
1854
|
removeDrozChatAgentGroupAgent(variables: RemoveDrozChatAgentGroupAgentMutationVariables, options?: C): Promise<RemoveDrozChatAgentGroupAgentMutation>;
|
|
1855
|
+
getSurvey(variables?: GetSurveyQueryVariables, options?: C): Promise<GetSurveyQuery>;
|
|
1856
|
+
upsertSurvey(variables: UpsertSurveyMutationVariables, options?: C): Promise<UpsertSurveyMutation>;
|
|
1857
|
+
disableSurvey(variables?: DisableSurveyMutationVariables, options?: C): Promise<DisableSurveyMutation>;
|
|
1799
1858
|
getNpsSurvey(variables?: GetNpsSurveyQueryVariables, options?: C): Promise<GetNpsSurveyQuery>;
|
|
1800
1859
|
upsertNpsSurvey(variables: UpsertNpsSurveyMutationVariables, options?: C): Promise<UpsertNpsSurveyMutation>;
|
|
1801
1860
|
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;
|
|
@@ -71,6 +81,8 @@ var TicketSearchSortBy;
|
|
|
71
81
|
TicketSearchSortBy["ClosedAtDesc"] = "closedAt_desc";
|
|
72
82
|
TicketSearchSortBy["CreatedAtAsc"] = "createdAt_asc";
|
|
73
83
|
TicketSearchSortBy["CreatedAtDesc"] = "createdAt_desc";
|
|
84
|
+
TicketSearchSortBy["LastMessageAtAsc"] = "lastMessageAt_asc";
|
|
85
|
+
TicketSearchSortBy["LastMessageAtDesc"] = "lastMessageAt_desc";
|
|
74
86
|
TicketSearchSortBy["Relevance"] = "relevance";
|
|
75
87
|
TicketSearchSortBy["StatusAsc"] = "status_asc";
|
|
76
88
|
TicketSearchSortBy["StatusDesc"] = "status_desc";
|
|
@@ -121,6 +133,7 @@ var Typenames;
|
|
|
121
133
|
Typenames["NpsSurvey"] = "NpsSurvey";
|
|
122
134
|
Typenames["Protocols"] = "Protocols";
|
|
123
135
|
Typenames["QuickAnswers"] = "QuickAnswers";
|
|
136
|
+
Typenames["Survey"] = "Survey";
|
|
124
137
|
Typenames["Tags"] = "Tags";
|
|
125
138
|
Typenames["TicketMappings"] = "TicketMappings";
|
|
126
139
|
Typenames["TicketMessages"] = "TicketMessages";
|
|
@@ -165,6 +178,17 @@ exports.DrozChatAgentGroupFragmentDoc = `
|
|
|
165
178
|
deletedAt
|
|
166
179
|
}
|
|
167
180
|
`;
|
|
181
|
+
exports.SurveyFragmentDoc = `
|
|
182
|
+
fragment survey on Survey {
|
|
183
|
+
channels
|
|
184
|
+
evaluationMessage
|
|
185
|
+
commentMessage
|
|
186
|
+
enabled
|
|
187
|
+
type
|
|
188
|
+
createdAt
|
|
189
|
+
updatedAt
|
|
190
|
+
}
|
|
191
|
+
`;
|
|
168
192
|
exports.NpsSurveyFragmentDoc = `
|
|
169
193
|
fragment npsSurvey on NpsSurvey {
|
|
170
194
|
channels
|
|
@@ -652,6 +676,27 @@ exports.RemoveDrozChatAgentGroupAgentDocument = `
|
|
|
652
676
|
}
|
|
653
677
|
}
|
|
654
678
|
${exports.DrozChatAgentGroupFragmentDoc}`;
|
|
679
|
+
exports.GetSurveyDocument = `
|
|
680
|
+
query getSurvey {
|
|
681
|
+
getSurvey {
|
|
682
|
+
...survey
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
${exports.SurveyFragmentDoc}`;
|
|
686
|
+
exports.UpsertSurveyDocument = `
|
|
687
|
+
mutation upsertSurvey($input: UpsertSurveyInput!) {
|
|
688
|
+
upsertSurvey(input: $input) {
|
|
689
|
+
...survey
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
${exports.SurveyFragmentDoc}`;
|
|
693
|
+
exports.DisableSurveyDocument = `
|
|
694
|
+
mutation disableSurvey {
|
|
695
|
+
disableSurvey {
|
|
696
|
+
...survey
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
${exports.SurveyFragmentDoc}`;
|
|
655
700
|
exports.GetNpsSurveyDocument = `
|
|
656
701
|
query getNpsSurvey {
|
|
657
702
|
getNpsSurvey {
|
|
@@ -1305,6 +1350,15 @@ function getSdk(requester) {
|
|
|
1305
1350
|
removeDrozChatAgentGroupAgent(variables, options) {
|
|
1306
1351
|
return requester(exports.RemoveDrozChatAgentGroupAgentDocument, variables, options);
|
|
1307
1352
|
},
|
|
1353
|
+
getSurvey(variables, options) {
|
|
1354
|
+
return requester(exports.GetSurveyDocument, variables, options);
|
|
1355
|
+
},
|
|
1356
|
+
upsertSurvey(variables, options) {
|
|
1357
|
+
return requester(exports.UpsertSurveyDocument, variables, options);
|
|
1358
|
+
},
|
|
1359
|
+
disableSurvey(variables, options) {
|
|
1360
|
+
return requester(exports.DisableSurveyDocument, variables, options);
|
|
1361
|
+
},
|
|
1308
1362
|
getNpsSurvey(variables, options) {
|
|
1309
1363
|
return requester(exports.GetNpsSurveyDocument, variables, options);
|
|
1310
1364
|
},
|