@droz-js/sdk 0.9.60 → 0.9.61
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 +12 -0
- package/src/drozchat.d.ts +12 -0
- package/src/sdks/drozchat.d.ts +70 -0
- package/src/sdks/drozchat.js +71 -2
package/package.json
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -46,6 +46,18 @@ declare const DrozChatWs_base: new () => {
|
|
|
46
46
|
deleteNote(variables: import("./sdks/drozchat").Exact<{
|
|
47
47
|
input: import("./sdks/drozchat").DeleteCustomerNoteInput;
|
|
48
48
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteNoteMutation>;
|
|
49
|
+
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
50
|
+
[key: string]: never;
|
|
51
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
|
52
|
+
upsertNpsForm(variables: import("./sdks/drozchat").Exact<{
|
|
53
|
+
input: import("./sdks/drozchat").UpsertNpsFormInput;
|
|
54
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertNpsFormMutation>;
|
|
55
|
+
enableNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
56
|
+
[key: string]: never;
|
|
57
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").EnableNpsSurveyMutation>;
|
|
58
|
+
disableNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
59
|
+
[key: string]: never;
|
|
60
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableNpsSurveyMutation>;
|
|
49
61
|
listQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
50
62
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
51
63
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListQuickAnswersQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -49,6 +49,18 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
49
49
|
deleteNote(variables: import("./sdks/drozchat").Exact<{
|
|
50
50
|
input: import("./sdks/drozchat").DeleteCustomerNoteInput;
|
|
51
51
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteNoteMutation>;
|
|
52
|
+
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
53
|
+
[key: string]: never;
|
|
54
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
|
55
|
+
upsertNpsForm(variables: import("./sdks/drozchat").Exact<{
|
|
56
|
+
input: import("./sdks/drozchat").UpsertNpsFormInput;
|
|
57
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertNpsFormMutation>;
|
|
58
|
+
enableNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
59
|
+
[key: string]: never;
|
|
60
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").EnableNpsSurveyMutation>;
|
|
61
|
+
disableNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
62
|
+
[key: string]: never;
|
|
63
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableNpsSurveyMutation>;
|
|
52
64
|
listQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
53
65
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
54
66
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListQuickAnswersQuery>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -315,7 +315,9 @@ export type Mutation = {
|
|
|
315
315
|
deleteTags: Array<Maybe<TicketTag>>;
|
|
316
316
|
deleteView: View;
|
|
317
317
|
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
318
|
+
disableNpsSurvey: NpsSurvey;
|
|
318
319
|
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
320
|
+
enableNpsSurvey: NpsSurvey;
|
|
319
321
|
generateAnalyticsToken?: Maybe<AnalyticsToken>;
|
|
320
322
|
markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
|
|
321
323
|
removeDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
@@ -327,6 +329,7 @@ export type Mutation = {
|
|
|
327
329
|
updateQuickAnswer: QuickAnswer;
|
|
328
330
|
updateTicket: Ticket;
|
|
329
331
|
updateView: View;
|
|
332
|
+
upsertNpsForm: NpsForm;
|
|
330
333
|
version?: Maybe<Scalars['String']['output']>;
|
|
331
334
|
};
|
|
332
335
|
export type MutationAddDrozChatChannelAgentArgs = {
|
|
@@ -419,6 +422,26 @@ export type MutationUpdateTicketArgs = {
|
|
|
419
422
|
export type MutationUpdateViewArgs = {
|
|
420
423
|
input: UpdateViewInput;
|
|
421
424
|
};
|
|
425
|
+
export type MutationUpsertNpsFormArgs = {
|
|
426
|
+
input: UpsertNpsFormInput;
|
|
427
|
+
};
|
|
428
|
+
export type NpsForm = {
|
|
429
|
+
channel: NpsSurveyChannels;
|
|
430
|
+
commentMessage: Scalars['String']['output'];
|
|
431
|
+
createdAt: Scalars['DateTime']['output'];
|
|
432
|
+
enabled: Scalars['Boolean']['output'];
|
|
433
|
+
evaluationMessage: Scalars['String']['output'];
|
|
434
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
435
|
+
};
|
|
436
|
+
export type NpsSurvey = {
|
|
437
|
+
createdAt: Scalars['DateTime']['output'];
|
|
438
|
+
enabled: Scalars['Boolean']['output'];
|
|
439
|
+
forms: Array<NpsForm>;
|
|
440
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
441
|
+
};
|
|
442
|
+
export declare enum NpsSurveyChannels {
|
|
443
|
+
WhatsApp = "WhatsApp"
|
|
444
|
+
}
|
|
422
445
|
export type NumberMatcher = {
|
|
423
446
|
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
424
447
|
eq?: Maybe<Scalars['Number']['output']>;
|
|
@@ -445,6 +468,7 @@ export type Query = {
|
|
|
445
468
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
446
469
|
getDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
447
470
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
471
|
+
getNpsSurvey?: Maybe<NpsSurvey>;
|
|
448
472
|
getTicket?: Maybe<Ticket>;
|
|
449
473
|
getView?: Maybe<View>;
|
|
450
474
|
getWsEndpoint?: Maybe<Scalars['String']['output']>;
|
|
@@ -804,6 +828,8 @@ export declare enum Typenames {
|
|
|
804
828
|
CustomerNotes = "CustomerNotes",
|
|
805
829
|
GraphqlConnections = "GraphqlConnections",
|
|
806
830
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
831
|
+
NpsForm = "NpsForm",
|
|
832
|
+
NpsSurvey = "NpsSurvey",
|
|
807
833
|
Protocols = "Protocols",
|
|
808
834
|
QuickAnswers = "QuickAnswers",
|
|
809
835
|
Tags = "Tags",
|
|
@@ -840,6 +866,12 @@ export type UpdateViewInput = {
|
|
|
840
866
|
id: Scalars['ID']['input'];
|
|
841
867
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
842
868
|
};
|
|
869
|
+
export type UpsertNpsFormInput = {
|
|
870
|
+
channel: NpsSurveyChannels;
|
|
871
|
+
commentMessage: Scalars['String']['input'];
|
|
872
|
+
enabled: Scalars['Boolean']['input'];
|
|
873
|
+
evaluationMessage: Scalars['String']['input'];
|
|
874
|
+
};
|
|
843
875
|
export type View = {
|
|
844
876
|
createdAt: Scalars['DateTime']['output'];
|
|
845
877
|
filters: Scalars['JSONObject']['output'];
|
|
@@ -939,6 +971,34 @@ export type DeleteNoteMutationVariables = Exact<{
|
|
|
939
971
|
export type DeleteNoteMutation = {
|
|
940
972
|
deleteNote: CustomerNoteFragment;
|
|
941
973
|
};
|
|
974
|
+
export type NpsSurveyFragment = (Pick<NpsSurvey, 'enabled' | 'createdAt' | 'updatedAt'> & {
|
|
975
|
+
forms: Array<NpsFormFragment>;
|
|
976
|
+
});
|
|
977
|
+
export type NpsFormFragment = Pick<NpsForm, 'channel' | 'evaluationMessage' | 'commentMessage' | 'enabled' | 'createdAt' | 'updatedAt'>;
|
|
978
|
+
export type GetNpsSurveyQueryVariables = Exact<{
|
|
979
|
+
[key: string]: never;
|
|
980
|
+
}>;
|
|
981
|
+
export type GetNpsSurveyQuery = {
|
|
982
|
+
getNpsSurvey?: Maybe<NpsSurveyFragment>;
|
|
983
|
+
};
|
|
984
|
+
export type UpsertNpsFormMutationVariables = Exact<{
|
|
985
|
+
input: UpsertNpsFormInput;
|
|
986
|
+
}>;
|
|
987
|
+
export type UpsertNpsFormMutation = {
|
|
988
|
+
upsertNpsForm: NpsFormFragment;
|
|
989
|
+
};
|
|
990
|
+
export type EnableNpsSurveyMutationVariables = Exact<{
|
|
991
|
+
[key: string]: never;
|
|
992
|
+
}>;
|
|
993
|
+
export type EnableNpsSurveyMutation = {
|
|
994
|
+
enableNpsSurvey: NpsSurveyFragment;
|
|
995
|
+
};
|
|
996
|
+
export type DisableNpsSurveyMutationVariables = Exact<{
|
|
997
|
+
[key: string]: never;
|
|
998
|
+
}>;
|
|
999
|
+
export type DisableNpsSurveyMutation = {
|
|
1000
|
+
disableNpsSurvey: NpsSurveyFragment;
|
|
1001
|
+
};
|
|
942
1002
|
export type QuickAnswerFragment = (Pick<QuickAnswer, 'id' | 'name' | 'message' | 'createdAt' | 'updatedAt'> & {
|
|
943
1003
|
createdBy: DrozChatAgentFragment;
|
|
944
1004
|
});
|
|
@@ -1250,6 +1310,8 @@ export type DeleteViewMutation = {
|
|
|
1250
1310
|
};
|
|
1251
1311
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1252
1312
|
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1313
|
+
export declare const NpsFormFragmentDoc = "\n fragment npsForm on NpsForm {\n channel\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1314
|
+
export declare const NpsSurveyFragmentDoc = "\n fragment npsSurvey on NpsSurvey {\n forms {\n ...npsForm\n }\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1253
1315
|
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 ";
|
|
1254
1316
|
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 ";
|
|
1255
1317
|
export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1277,6 +1339,10 @@ export declare const ListNotesDocument = "\n query listNotes($customerId: Str
|
|
|
1277
1339
|
export declare const CreateNoteDocument = "\n mutation createNote($input: CreateCustomerNoteInput!) {\n createNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1278
1340
|
export declare const UpdateNoteDocument = "\n mutation updateNote($input: UpdateCustomerNoteInput!) {\n updateNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1279
1341
|
export declare const DeleteNoteDocument = "\n mutation deleteNote($input: DeleteCustomerNoteInput!) {\n deleteNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1342
|
+
export declare const GetNpsSurveyDocument = "\n query getNpsSurvey {\n getNpsSurvey {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n forms {\n ...npsForm\n }\n enabled\n createdAt\n updatedAt\n}\n \n\n fragment npsForm on NpsForm {\n channel\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1343
|
+
export declare const UpsertNpsFormDocument = "\n mutation upsertNpsForm($input: UpsertNpsFormInput!) {\n upsertNpsForm(input: $input) {\n ...npsForm\n }\n}\n \n fragment npsForm on NpsForm {\n channel\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1344
|
+
export declare const EnableNpsSurveyDocument = "\n mutation enableNpsSurvey {\n enableNpsSurvey {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n forms {\n ...npsForm\n }\n enabled\n createdAt\n updatedAt\n}\n \n\n fragment npsForm on NpsForm {\n channel\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1345
|
+
export declare const DisableNpsSurveyDocument = "\n mutation disableNpsSurvey {\n disableNpsSurvey {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n forms {\n ...npsForm\n }\n enabled\n createdAt\n updatedAt\n}\n \n\n fragment npsForm on NpsForm {\n channel\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1280
1346
|
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 ";
|
|
1281
1347
|
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 ";
|
|
1282
1348
|
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 ";
|
|
@@ -1329,6 +1395,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1329
1395
|
createNote(variables: CreateNoteMutationVariables, options?: C): Promise<CreateNoteMutation>;
|
|
1330
1396
|
updateNote(variables: UpdateNoteMutationVariables, options?: C): Promise<UpdateNoteMutation>;
|
|
1331
1397
|
deleteNote(variables: DeleteNoteMutationVariables, options?: C): Promise<DeleteNoteMutation>;
|
|
1398
|
+
getNpsSurvey(variables?: GetNpsSurveyQueryVariables, options?: C): Promise<GetNpsSurveyQuery>;
|
|
1399
|
+
upsertNpsForm(variables: UpsertNpsFormMutationVariables, options?: C): Promise<UpsertNpsFormMutation>;
|
|
1400
|
+
enableNpsSurvey(variables?: EnableNpsSurveyMutationVariables, options?: C): Promise<EnableNpsSurveyMutation>;
|
|
1401
|
+
disableNpsSurvey(variables?: DisableNpsSurveyMutationVariables, options?: C): Promise<DisableNpsSurveyMutation>;
|
|
1332
1402
|
listQuickAnswers(variables?: ListQuickAnswersQueryVariables, options?: C): Promise<ListQuickAnswersQuery>;
|
|
1333
1403
|
searchQuickAnswers(variables?: SearchQuickAnswersQueryVariables, options?: C): Promise<SearchQuickAnswersQuery>;
|
|
1334
1404
|
createQuickAnswer(variables: CreateQuickAnswerMutationVariables, options?: C): Promise<CreateQuickAnswerMutation>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = 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.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = void 0;
|
|
4
|
+
exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.DisableNpsSurveyDocument = exports.EnableNpsSurveyDocument = exports.UpsertNpsFormDocument = exports.GetNpsSurveyDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = 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.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.NpsSurveyFragmentDoc = exports.NpsFormFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketMessageType = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.NpsSurveyChannels = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = 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.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -17,6 +17,10 @@ var Can;
|
|
|
17
17
|
Can["Remove"] = "remove";
|
|
18
18
|
Can["Write"] = "write";
|
|
19
19
|
})(Can || (exports.Can = Can = {}));
|
|
20
|
+
var NpsSurveyChannels;
|
|
21
|
+
(function (NpsSurveyChannels) {
|
|
22
|
+
NpsSurveyChannels["WhatsApp"] = "WhatsApp";
|
|
23
|
+
})(NpsSurveyChannels || (exports.NpsSurveyChannels = NpsSurveyChannels = {}));
|
|
20
24
|
var QuickAnswersSortBy;
|
|
21
25
|
(function (QuickAnswersSortBy) {
|
|
22
26
|
QuickAnswersSortBy["CreatedAtAsc"] = "createdAt_asc";
|
|
@@ -84,6 +88,8 @@ var Typenames;
|
|
|
84
88
|
Typenames["CustomerNotes"] = "CustomerNotes";
|
|
85
89
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
86
90
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
91
|
+
Typenames["NpsForm"] = "NpsForm";
|
|
92
|
+
Typenames["NpsSurvey"] = "NpsSurvey";
|
|
87
93
|
Typenames["Protocols"] = "Protocols";
|
|
88
94
|
Typenames["QuickAnswers"] = "QuickAnswers";
|
|
89
95
|
Typenames["Tags"] = "Tags";
|
|
@@ -109,6 +115,26 @@ exports.CustomerNoteFragmentDoc = `
|
|
|
109
115
|
updatedAt
|
|
110
116
|
}
|
|
111
117
|
`;
|
|
118
|
+
exports.NpsFormFragmentDoc = `
|
|
119
|
+
fragment npsForm on NpsForm {
|
|
120
|
+
channel
|
|
121
|
+
evaluationMessage
|
|
122
|
+
commentMessage
|
|
123
|
+
enabled
|
|
124
|
+
createdAt
|
|
125
|
+
updatedAt
|
|
126
|
+
}
|
|
127
|
+
`;
|
|
128
|
+
exports.NpsSurveyFragmentDoc = `
|
|
129
|
+
fragment npsSurvey on NpsSurvey {
|
|
130
|
+
forms {
|
|
131
|
+
...npsForm
|
|
132
|
+
}
|
|
133
|
+
enabled
|
|
134
|
+
createdAt
|
|
135
|
+
updatedAt
|
|
136
|
+
}
|
|
137
|
+
`;
|
|
112
138
|
exports.QuickAnswerFragmentDoc = `
|
|
113
139
|
fragment quickAnswer on QuickAnswer {
|
|
114
140
|
id
|
|
@@ -437,6 +463,37 @@ exports.DeleteNoteDocument = `
|
|
|
437
463
|
}
|
|
438
464
|
${exports.CustomerNoteFragmentDoc}
|
|
439
465
|
${exports.DrozChatAgentFragmentDoc}`;
|
|
466
|
+
exports.GetNpsSurveyDocument = `
|
|
467
|
+
query getNpsSurvey {
|
|
468
|
+
getNpsSurvey {
|
|
469
|
+
...npsSurvey
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
${exports.NpsSurveyFragmentDoc}
|
|
473
|
+
${exports.NpsFormFragmentDoc}`;
|
|
474
|
+
exports.UpsertNpsFormDocument = `
|
|
475
|
+
mutation upsertNpsForm($input: UpsertNpsFormInput!) {
|
|
476
|
+
upsertNpsForm(input: $input) {
|
|
477
|
+
...npsForm
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
${exports.NpsFormFragmentDoc}`;
|
|
481
|
+
exports.EnableNpsSurveyDocument = `
|
|
482
|
+
mutation enableNpsSurvey {
|
|
483
|
+
enableNpsSurvey {
|
|
484
|
+
...npsSurvey
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
${exports.NpsSurveyFragmentDoc}
|
|
488
|
+
${exports.NpsFormFragmentDoc}`;
|
|
489
|
+
exports.DisableNpsSurveyDocument = `
|
|
490
|
+
mutation disableNpsSurvey {
|
|
491
|
+
disableNpsSurvey {
|
|
492
|
+
...npsSurvey
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
${exports.NpsSurveyFragmentDoc}
|
|
496
|
+
${exports.NpsFormFragmentDoc}`;
|
|
440
497
|
exports.ListQuickAnswersDocument = `
|
|
441
498
|
query listQuickAnswers($next: Base64) {
|
|
442
499
|
listQuickAnswers(next: $next) {
|
|
@@ -922,6 +979,18 @@ function getSdk(requester) {
|
|
|
922
979
|
deleteNote(variables, options) {
|
|
923
980
|
return requester(exports.DeleteNoteDocument, variables, options);
|
|
924
981
|
},
|
|
982
|
+
getNpsSurvey(variables, options) {
|
|
983
|
+
return requester(exports.GetNpsSurveyDocument, variables, options);
|
|
984
|
+
},
|
|
985
|
+
upsertNpsForm(variables, options) {
|
|
986
|
+
return requester(exports.UpsertNpsFormDocument, variables, options);
|
|
987
|
+
},
|
|
988
|
+
enableNpsSurvey(variables, options) {
|
|
989
|
+
return requester(exports.EnableNpsSurveyDocument, variables, options);
|
|
990
|
+
},
|
|
991
|
+
disableNpsSurvey(variables, options) {
|
|
992
|
+
return requester(exports.DisableNpsSurveyDocument, variables, options);
|
|
993
|
+
},
|
|
925
994
|
listQuickAnswers(variables, options) {
|
|
926
995
|
return requester(exports.ListQuickAnswersDocument, variables, options);
|
|
927
996
|
},
|