@droz-js/sdk 0.9.55 → 0.9.57
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 +16 -0
- package/src/drozchat.d.ts +16 -0
- package/src/sdks/drozchat.d.ts +107 -0
- package/src/sdks/drozchat.js +101 -2
package/package.json
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -46,6 +46,22 @@ 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
|
+
listQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
50
|
+
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
51
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListQuickAnswersQuery>;
|
|
52
|
+
searchQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
53
|
+
q?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["String"]["input"]>;
|
|
54
|
+
filters?: import("./sdks/drozchat").InputMaybe<Array<import("./sdks/drozchat").QuickAnswerFilterInput> | import("./sdks/drozchat").QuickAnswerFilterInput>;
|
|
55
|
+
sortBy?: import("./sdks/drozchat").InputMaybe<Array<import("./sdks/drozchat").QuickAnswersSortBy> | import("./sdks/drozchat").QuickAnswersSortBy>;
|
|
56
|
+
page?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Number"]["input"]>;
|
|
57
|
+
perPage?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Number"]["input"]>;
|
|
58
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").SearchQuickAnswersQuery>;
|
|
59
|
+
createQuickAnswer(variables: import("./sdks/drozchat").Exact<{
|
|
60
|
+
input: import("./sdks/drozchat").CreateQuickAnswerInput;
|
|
61
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateQuickAnswerMutation>;
|
|
62
|
+
deleteQuickAnswer(variables: import("./sdks/drozchat").Exact<{
|
|
63
|
+
input: import("./sdks/drozchat").DeleteQuickAnswerInput;
|
|
64
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteQuickAnswerMutation>;
|
|
49
65
|
listTags(variables?: import("./sdks/drozchat").Exact<{
|
|
50
66
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
51
67
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -49,6 +49,22 @@ 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
|
+
listQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
53
|
+
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
54
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListQuickAnswersQuery>;
|
|
55
|
+
searchQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
56
|
+
q?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["String"]["input"]>;
|
|
57
|
+
filters?: import("./sdks/drozchat").InputMaybe<Array<import("./sdks/drozchat").QuickAnswerFilterInput> | import("./sdks/drozchat").QuickAnswerFilterInput>;
|
|
58
|
+
sortBy?: import("./sdks/drozchat").InputMaybe<Array<import("./sdks/drozchat").QuickAnswersSortBy> | import("./sdks/drozchat").QuickAnswersSortBy>;
|
|
59
|
+
page?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Number"]["input"]>;
|
|
60
|
+
perPage?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Number"]["input"]>;
|
|
61
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").SearchQuickAnswersQuery>;
|
|
62
|
+
createQuickAnswer(variables: import("./sdks/drozchat").Exact<{
|
|
63
|
+
input: import("./sdks/drozchat").CreateQuickAnswerInput;
|
|
64
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateQuickAnswerMutation>;
|
|
65
|
+
deleteQuickAnswer(variables: import("./sdks/drozchat").Exact<{
|
|
66
|
+
input: import("./sdks/drozchat").DeleteQuickAnswerInput;
|
|
67
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteQuickAnswerMutation>;
|
|
52
68
|
listTags(variables?: import("./sdks/drozchat").Exact<{
|
|
53
69
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
54
70
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -190,6 +190,10 @@ export type CreateDrozChatChannelInput = {
|
|
|
190
190
|
agentIds?: InputMaybe<Scalars['Set']['input']>;
|
|
191
191
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
192
192
|
};
|
|
193
|
+
export type CreateQuickAnswerInput = {
|
|
194
|
+
message: Scalars['String']['input'];
|
|
195
|
+
name: Scalars['String']['input'];
|
|
196
|
+
};
|
|
193
197
|
export type CreateTicketInput = {
|
|
194
198
|
channelId: Scalars['ID']['input'];
|
|
195
199
|
customerId: Scalars['ID']['input'];
|
|
@@ -229,6 +233,9 @@ export type DeleteCustomerNoteInput = {
|
|
|
229
233
|
customerId: Scalars['String']['input'];
|
|
230
234
|
id: Scalars['String']['input'];
|
|
231
235
|
};
|
|
236
|
+
export type DeleteQuickAnswerInput = {
|
|
237
|
+
id: Scalars['String']['input'];
|
|
238
|
+
};
|
|
232
239
|
export type DeleteTicketTagInput = {
|
|
233
240
|
tags: Array<Scalars['String']['input']>;
|
|
234
241
|
};
|
|
@@ -297,12 +304,14 @@ export type Mutation = {
|
|
|
297
304
|
closeTicket: Ticket;
|
|
298
305
|
createDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
299
306
|
createNote: CustomerNote;
|
|
307
|
+
createQuickAnswer: QuickAnswer;
|
|
300
308
|
createTags: Array<TicketTag>;
|
|
301
309
|
createTicket: Ticket;
|
|
302
310
|
createTicketMessage: TicketMessage;
|
|
303
311
|
createTicketMessageForStorage: TicketMessage;
|
|
304
312
|
createView: View;
|
|
305
313
|
deleteNote: CustomerNote;
|
|
314
|
+
deleteQuickAnswer: QuickAnswer;
|
|
306
315
|
deleteTags: Array<Maybe<TicketTag>>;
|
|
307
316
|
deleteView: View;
|
|
308
317
|
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
@@ -343,6 +352,9 @@ export type MutationCreateDrozChatChannelArgs = {
|
|
|
343
352
|
export type MutationCreateNoteArgs = {
|
|
344
353
|
input: CreateCustomerNoteInput;
|
|
345
354
|
};
|
|
355
|
+
export type MutationCreateQuickAnswerArgs = {
|
|
356
|
+
input: CreateQuickAnswerInput;
|
|
357
|
+
};
|
|
346
358
|
export type MutationCreateTagsArgs = {
|
|
347
359
|
input: CreateTicketTagInput;
|
|
348
360
|
};
|
|
@@ -361,6 +373,9 @@ export type MutationCreateViewArgs = {
|
|
|
361
373
|
export type MutationDeleteNoteArgs = {
|
|
362
374
|
input?: InputMaybe<DeleteCustomerNoteInput>;
|
|
363
375
|
};
|
|
376
|
+
export type MutationDeleteQuickAnswerArgs = {
|
|
377
|
+
input: DeleteQuickAnswerInput;
|
|
378
|
+
};
|
|
364
379
|
export type MutationDeleteTagsArgs = {
|
|
365
380
|
input: DeleteTicketTagInput;
|
|
366
381
|
};
|
|
@@ -432,6 +447,7 @@ export type Query = {
|
|
|
432
447
|
listDrozChatAgentChannels: Array<DrozChatChannel>;
|
|
433
448
|
listDrozChatChannels: Array<DrozChatChannel>;
|
|
434
449
|
listNotes: CustomerNotesConnection;
|
|
450
|
+
listQuickAnswers: QuickAnswersConnection;
|
|
435
451
|
listTags: TicketTagsConnection;
|
|
436
452
|
listTicketInternalNotes: TicketMessagesConnection;
|
|
437
453
|
listTicketMessages: TicketMessagesConnection;
|
|
@@ -439,6 +455,7 @@ export type Query = {
|
|
|
439
455
|
listTicketsByView: Array<Ticket>;
|
|
440
456
|
listTicketsInProgressMine: TicketsConnection;
|
|
441
457
|
listViews: Array<View>;
|
|
458
|
+
searchQuickAnswers?: Maybe<QuickAnswersSearchResults>;
|
|
442
459
|
searchTickets?: Maybe<TicketsSearchResults>;
|
|
443
460
|
version?: Maybe<Scalars['String']['output']>;
|
|
444
461
|
};
|
|
@@ -458,6 +475,9 @@ export type QueryListNotesArgs = {
|
|
|
458
475
|
customerId: Scalars['String']['input'];
|
|
459
476
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
460
477
|
};
|
|
478
|
+
export type QueryListQuickAnswersArgs = {
|
|
479
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
480
|
+
};
|
|
461
481
|
export type QueryListTagsArgs = {
|
|
462
482
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
463
483
|
};
|
|
@@ -482,6 +502,13 @@ export type QueryListTicketsByViewArgs = {
|
|
|
482
502
|
export type QueryListTicketsInProgressMineArgs = {
|
|
483
503
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
484
504
|
};
|
|
505
|
+
export type QuerySearchQuickAnswersArgs = {
|
|
506
|
+
filters?: InputMaybe<Array<QuickAnswerFilterInput>>;
|
|
507
|
+
page?: InputMaybe<Scalars['Number']['input']>;
|
|
508
|
+
perPage?: InputMaybe<Scalars['Number']['input']>;
|
|
509
|
+
q?: InputMaybe<Scalars['String']['input']>;
|
|
510
|
+
sortBy?: InputMaybe<Array<QuickAnswersSortBy>>;
|
|
511
|
+
};
|
|
485
512
|
export type QuerySearchTicketsArgs = {
|
|
486
513
|
filters?: InputMaybe<Array<TicketSearchFilterInput>>;
|
|
487
514
|
page?: InputMaybe<Scalars['Number']['input']>;
|
|
@@ -489,6 +516,35 @@ export type QuerySearchTicketsArgs = {
|
|
|
489
516
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
490
517
|
sortBy?: InputMaybe<Array<TicketSearchSortBy>>;
|
|
491
518
|
};
|
|
519
|
+
export type QuickAnswer = {
|
|
520
|
+
createdAt: Scalars['DateTime']['output'];
|
|
521
|
+
id: Scalars['String']['output'];
|
|
522
|
+
message: Scalars['String']['output'];
|
|
523
|
+
name: Scalars['String']['output'];
|
|
524
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
525
|
+
};
|
|
526
|
+
export type QuickAnswerFilterInput = {
|
|
527
|
+
AND?: InputMaybe<Array<QuickAnswerFilterInput>>;
|
|
528
|
+
OR?: InputMaybe<Array<QuickAnswerFilterInput>>;
|
|
529
|
+
createdAt?: InputMaybe<NumberMatcherInput>;
|
|
530
|
+
};
|
|
531
|
+
export type QuickAnswersConnection = {
|
|
532
|
+
nodes: Array<QuickAnswer>;
|
|
533
|
+
pageInfo: PageInfo;
|
|
534
|
+
};
|
|
535
|
+
export type QuickAnswersSearchResults = {
|
|
536
|
+
facets: Array<QuickAnswersSearchResultsFacet>;
|
|
537
|
+
nodes: Array<QuickAnswer>;
|
|
538
|
+
stats: SearchResultsStats;
|
|
539
|
+
};
|
|
540
|
+
export type QuickAnswersSearchResultsFacet = SearchResultsFacet;
|
|
541
|
+
export declare enum QuickAnswersSortBy {
|
|
542
|
+
CreatedAtAsc = "createdAt_asc",
|
|
543
|
+
CreatedAtDesc = "createdAt_desc",
|
|
544
|
+
Relevance = "relevance",
|
|
545
|
+
UpdatedAtAsc = "updatedAt_asc",
|
|
546
|
+
UpdatedAtDesc = "updatedAt_desc"
|
|
547
|
+
}
|
|
492
548
|
export type RemoveDrozChatChannelAgentInput = {
|
|
493
549
|
agentId: Scalars['ID']['input'];
|
|
494
550
|
channelId: Scalars['ID']['input'];
|
|
@@ -745,6 +801,7 @@ export declare enum Typenames {
|
|
|
745
801
|
GraphqlConnections = "GraphqlConnections",
|
|
746
802
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
747
803
|
Protocols = "Protocols",
|
|
804
|
+
QuickAnswers = "QuickAnswers",
|
|
748
805
|
Tags = "Tags",
|
|
749
806
|
TicketMappings = "TicketMappings",
|
|
750
807
|
TicketMessages = "TicketMessages",
|
|
@@ -873,6 +930,46 @@ export type DeleteNoteMutationVariables = Exact<{
|
|
|
873
930
|
export type DeleteNoteMutation = {
|
|
874
931
|
deleteNote: CustomerNoteFragment;
|
|
875
932
|
};
|
|
933
|
+
export type QuickAnswerFragment = Pick<QuickAnswer, 'id' | 'name' | 'message' | 'createdAt' | 'updatedAt'>;
|
|
934
|
+
export type QuickAnswerFacetsFragment = (Pick<SearchResultsFacet, 'name'> & {
|
|
935
|
+
values?: Maybe<Array<Pick<SearchResultsFacetValue, 'value' | 'count'>>>;
|
|
936
|
+
stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
|
|
937
|
+
});
|
|
938
|
+
export type ListQuickAnswersQueryVariables = Exact<{
|
|
939
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
940
|
+
}>;
|
|
941
|
+
export type ListQuickAnswersQuery = {
|
|
942
|
+
listQuickAnswers: {
|
|
943
|
+
nodes: Array<QuickAnswerFragment>;
|
|
944
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
export type SearchQuickAnswersQueryVariables = Exact<{
|
|
948
|
+
q?: InputMaybe<Scalars['String']['input']>;
|
|
949
|
+
filters?: InputMaybe<Array<QuickAnswerFilterInput> | QuickAnswerFilterInput>;
|
|
950
|
+
sortBy?: InputMaybe<Array<QuickAnswersSortBy> | QuickAnswersSortBy>;
|
|
951
|
+
page?: InputMaybe<Scalars['Number']['input']>;
|
|
952
|
+
perPage?: InputMaybe<Scalars['Number']['input']>;
|
|
953
|
+
}>;
|
|
954
|
+
export type SearchQuickAnswersQuery = {
|
|
955
|
+
searchQuickAnswers?: Maybe<{
|
|
956
|
+
nodes: Array<QuickAnswerFragment>;
|
|
957
|
+
stats: Pick<SearchResultsStats, 'found' | 'outOf' | 'page' | 'totalPages' | 'perPage' | 'searchTime'>;
|
|
958
|
+
facets: Array<QuickAnswerFacetsFragment>;
|
|
959
|
+
}>;
|
|
960
|
+
};
|
|
961
|
+
export type CreateQuickAnswerMutationVariables = Exact<{
|
|
962
|
+
input: CreateQuickAnswerInput;
|
|
963
|
+
}>;
|
|
964
|
+
export type CreateQuickAnswerMutation = {
|
|
965
|
+
createQuickAnswer: QuickAnswerFragment;
|
|
966
|
+
};
|
|
967
|
+
export type DeleteQuickAnswerMutationVariables = Exact<{
|
|
968
|
+
input: DeleteQuickAnswerInput;
|
|
969
|
+
}>;
|
|
970
|
+
export type DeleteQuickAnswerMutation = {
|
|
971
|
+
deleteQuickAnswer: QuickAnswerFragment;
|
|
972
|
+
};
|
|
876
973
|
export type TagFragment = (Pick<TicketTag, 'name' | 'createdAt' | 'updatedAt'> & {
|
|
877
974
|
createdBy?: Maybe<DrozChatAgentFragment>;
|
|
878
975
|
});
|
|
@@ -1136,6 +1233,8 @@ export type DeleteViewMutation = {
|
|
|
1136
1233
|
};
|
|
1137
1234
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1138
1235
|
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1236
|
+
export declare const QuickAnswerFragmentDoc = "\n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdAt\n updatedAt\n}\n ";
|
|
1237
|
+
export declare const QuickAnswerFacetsFragmentDoc = "\n fragment quickAnswerFacets on QuickAnswersSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
|
|
1139
1238
|
export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1140
1239
|
export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n ";
|
|
1141
1240
|
export declare const TicketTriggerAppFragmentDoc = "\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n ";
|
|
@@ -1161,6 +1260,10 @@ export declare const ListNotesDocument = "\n query listNotes($customerId: Str
|
|
|
1161
1260
|
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 ";
|
|
1162
1261
|
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 ";
|
|
1163
1262
|
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 ";
|
|
1263
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
1264
|
+
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 createdAt\n updatedAt\n}\n \n\n fragment quickAnswerFacets on QuickAnswersSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
|
|
1265
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
1266
|
+
export declare const DeleteQuickAnswerDocument = "\n mutation deleteQuickAnswer($input: DeleteQuickAnswerInput!) {\n deleteQuickAnswer(input: $input) {\n ...quickAnswer\n }\n}\n \n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdAt\n updatedAt\n}\n ";
|
|
1164
1267
|
export declare const ListTagsDocument = "\n query listTags($next: Base64) {\n listTags(next: $next) {\n nodes {\n ...tag\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1165
1268
|
export declare const CreateTagsDocument = "\n mutation createTags($input: CreateTicketTagInput!) {\n createTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1166
1269
|
export declare const DeleteTagsDocument = "\n mutation deleteTags($input: DeleteTicketTagInput!) {\n deleteTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
@@ -1208,6 +1311,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1208
1311
|
createNote(variables: CreateNoteMutationVariables, options?: C): Promise<CreateNoteMutation>;
|
|
1209
1312
|
updateNote(variables: UpdateNoteMutationVariables, options?: C): Promise<UpdateNoteMutation>;
|
|
1210
1313
|
deleteNote(variables: DeleteNoteMutationVariables, options?: C): Promise<DeleteNoteMutation>;
|
|
1314
|
+
listQuickAnswers(variables?: ListQuickAnswersQueryVariables, options?: C): Promise<ListQuickAnswersQuery>;
|
|
1315
|
+
searchQuickAnswers(variables?: SearchQuickAnswersQueryVariables, options?: C): Promise<SearchQuickAnswersQuery>;
|
|
1316
|
+
createQuickAnswer(variables: CreateQuickAnswerMutationVariables, options?: C): Promise<CreateQuickAnswerMutation>;
|
|
1317
|
+
deleteQuickAnswer(variables: DeleteQuickAnswerMutationVariables, options?: C): Promise<DeleteQuickAnswerMutation>;
|
|
1211
1318
|
listTags(variables?: ListTagsQueryVariables, options?: C): Promise<ListTagsQuery>;
|
|
1212
1319
|
createTags(variables: CreateTagsMutationVariables, options?: C): Promise<CreateTagsMutation>;
|
|
1213
1320
|
deleteTags(variables: DeleteTagsMutationVariables, options?: C): Promise<DeleteTagsMutation>;
|
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 = void 0;
|
|
4
|
+
exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = 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.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketMessageType = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.QuickAnswersSortBy = 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 = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -17,6 +17,14 @@ var Can;
|
|
|
17
17
|
Can["Remove"] = "remove";
|
|
18
18
|
Can["Write"] = "write";
|
|
19
19
|
})(Can || (exports.Can = Can = {}));
|
|
20
|
+
var QuickAnswersSortBy;
|
|
21
|
+
(function (QuickAnswersSortBy) {
|
|
22
|
+
QuickAnswersSortBy["CreatedAtAsc"] = "createdAt_asc";
|
|
23
|
+
QuickAnswersSortBy["CreatedAtDesc"] = "createdAt_desc";
|
|
24
|
+
QuickAnswersSortBy["Relevance"] = "relevance";
|
|
25
|
+
QuickAnswersSortBy["UpdatedAtAsc"] = "updatedAt_asc";
|
|
26
|
+
QuickAnswersSortBy["UpdatedAtDesc"] = "updatedAt_desc";
|
|
27
|
+
})(QuickAnswersSortBy || (exports.QuickAnswersSortBy = QuickAnswersSortBy = {}));
|
|
20
28
|
var SubscriptionAction;
|
|
21
29
|
(function (SubscriptionAction) {
|
|
22
30
|
SubscriptionAction["Created"] = "CREATED";
|
|
@@ -77,6 +85,7 @@ var Typenames;
|
|
|
77
85
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
78
86
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
79
87
|
Typenames["Protocols"] = "Protocols";
|
|
88
|
+
Typenames["QuickAnswers"] = "QuickAnswers";
|
|
80
89
|
Typenames["Tags"] = "Tags";
|
|
81
90
|
Typenames["TicketMappings"] = "TicketMappings";
|
|
82
91
|
Typenames["TicketMessages"] = "TicketMessages";
|
|
@@ -100,6 +109,30 @@ exports.CustomerNoteFragmentDoc = `
|
|
|
100
109
|
updatedAt
|
|
101
110
|
}
|
|
102
111
|
`;
|
|
112
|
+
exports.QuickAnswerFragmentDoc = `
|
|
113
|
+
fragment quickAnswer on QuickAnswer {
|
|
114
|
+
id
|
|
115
|
+
name
|
|
116
|
+
message
|
|
117
|
+
createdAt
|
|
118
|
+
updatedAt
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
exports.QuickAnswerFacetsFragmentDoc = `
|
|
122
|
+
fragment quickAnswerFacets on QuickAnswersSearchResultsFacet {
|
|
123
|
+
... on SearchResultsFacet {
|
|
124
|
+
name
|
|
125
|
+
values {
|
|
126
|
+
value
|
|
127
|
+
count
|
|
128
|
+
}
|
|
129
|
+
stats {
|
|
130
|
+
min
|
|
131
|
+
max
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
`;
|
|
103
136
|
exports.TagFragmentDoc = `
|
|
104
137
|
fragment tag on TicketTag {
|
|
105
138
|
name
|
|
@@ -403,6 +436,60 @@ exports.DeleteNoteDocument = `
|
|
|
403
436
|
}
|
|
404
437
|
${exports.CustomerNoteFragmentDoc}
|
|
405
438
|
${exports.DrozChatAgentFragmentDoc}`;
|
|
439
|
+
exports.ListQuickAnswersDocument = `
|
|
440
|
+
query listQuickAnswers($next: Base64) {
|
|
441
|
+
listQuickAnswers(next: $next) {
|
|
442
|
+
nodes {
|
|
443
|
+
...quickAnswer
|
|
444
|
+
}
|
|
445
|
+
pageInfo {
|
|
446
|
+
hasNext
|
|
447
|
+
next
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
${exports.QuickAnswerFragmentDoc}`;
|
|
452
|
+
exports.SearchQuickAnswersDocument = `
|
|
453
|
+
query searchQuickAnswers($q: String, $filters: [QuickAnswerFilterInput!], $sortBy: [QuickAnswersSortBy!], $page: Number, $perPage: Number) {
|
|
454
|
+
searchQuickAnswers(
|
|
455
|
+
q: $q
|
|
456
|
+
filters: $filters
|
|
457
|
+
sortBy: $sortBy
|
|
458
|
+
page: $page
|
|
459
|
+
perPage: $perPage
|
|
460
|
+
) {
|
|
461
|
+
nodes {
|
|
462
|
+
...quickAnswer
|
|
463
|
+
}
|
|
464
|
+
stats {
|
|
465
|
+
found
|
|
466
|
+
outOf
|
|
467
|
+
page
|
|
468
|
+
totalPages
|
|
469
|
+
perPage
|
|
470
|
+
searchTime
|
|
471
|
+
}
|
|
472
|
+
facets {
|
|
473
|
+
...quickAnswerFacets
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
${exports.QuickAnswerFragmentDoc}
|
|
478
|
+
${exports.QuickAnswerFacetsFragmentDoc}`;
|
|
479
|
+
exports.CreateQuickAnswerDocument = `
|
|
480
|
+
mutation createQuickAnswer($input: CreateQuickAnswerInput!) {
|
|
481
|
+
createQuickAnswer(input: $input) {
|
|
482
|
+
...quickAnswer
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
${exports.QuickAnswerFragmentDoc}`;
|
|
486
|
+
exports.DeleteQuickAnswerDocument = `
|
|
487
|
+
mutation deleteQuickAnswer($input: DeleteQuickAnswerInput!) {
|
|
488
|
+
deleteQuickAnswer(input: $input) {
|
|
489
|
+
...quickAnswer
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
${exports.QuickAnswerFragmentDoc}`;
|
|
406
493
|
exports.ListTagsDocument = `
|
|
407
494
|
query listTags($next: Base64) {
|
|
408
495
|
listTags(next: $next) {
|
|
@@ -822,6 +909,18 @@ function getSdk(requester) {
|
|
|
822
909
|
deleteNote(variables, options) {
|
|
823
910
|
return requester(exports.DeleteNoteDocument, variables, options);
|
|
824
911
|
},
|
|
912
|
+
listQuickAnswers(variables, options) {
|
|
913
|
+
return requester(exports.ListQuickAnswersDocument, variables, options);
|
|
914
|
+
},
|
|
915
|
+
searchQuickAnswers(variables, options) {
|
|
916
|
+
return requester(exports.SearchQuickAnswersDocument, variables, options);
|
|
917
|
+
},
|
|
918
|
+
createQuickAnswer(variables, options) {
|
|
919
|
+
return requester(exports.CreateQuickAnswerDocument, variables, options);
|
|
920
|
+
},
|
|
921
|
+
deleteQuickAnswer(variables, options) {
|
|
922
|
+
return requester(exports.DeleteQuickAnswerDocument, variables, options);
|
|
923
|
+
},
|
|
825
924
|
listTags(variables, options) {
|
|
826
925
|
return requester(exports.ListTagsDocument, variables, options);
|
|
827
926
|
},
|