@droz-js/sdk 0.9.54 → 0.9.56
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/drozadmin.d.ts +3 -0
- package/src/drozchat-ws.d.ts +9 -0
- package/src/drozchat.d.ts +9 -0
- package/src/sdks/drozchat.d.ts +60 -0
- package/src/sdks/drozchat.js +48 -2
- package/src/sdks/drozcommons.d.ts +14 -0
- package/src/sdks/drozcommons.js +9 -1
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -134,6 +134,9 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
|
|
|
134
134
|
leaveTenantOrganization(variables: import("./sdks/drozcommons").Exact<{
|
|
135
135
|
input: import("./sdks/drozcommons").LeaveTenantOrganizationInput;
|
|
136
136
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").LeaveTenantOrganizationMutation>;
|
|
137
|
+
fullReindexBase(variables?: import("./sdks/drozcommons").Exact<{
|
|
138
|
+
input?: import("./sdks/drozcommons").InputMaybe<import("./sdks/drozcommons").FullReindexBaseInput>;
|
|
139
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").FullReindexBaseMutation>;
|
|
137
140
|
};
|
|
138
141
|
export declare class DrozAdmin extends DrozAdmin_base {
|
|
139
142
|
constructor();
|
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -46,6 +46,15 @@ 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
|
+
createQuickAnswer(variables: import("./sdks/drozchat").Exact<{
|
|
53
|
+
input: import("./sdks/drozchat").CreateQuickAnswerInput;
|
|
54
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateQuickAnswerMutation>;
|
|
55
|
+
deleteQuickAnswer(variables: import("./sdks/drozchat").Exact<{
|
|
56
|
+
input: import("./sdks/drozchat").DeleteQuickAnswerInput;
|
|
57
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteQuickAnswerMutation>;
|
|
49
58
|
listTags(variables?: import("./sdks/drozchat").Exact<{
|
|
50
59
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
51
60
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -49,6 +49,15 @@ 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
|
+
createQuickAnswer(variables: import("./sdks/drozchat").Exact<{
|
|
56
|
+
input: import("./sdks/drozchat").CreateQuickAnswerInput;
|
|
57
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateQuickAnswerMutation>;
|
|
58
|
+
deleteQuickAnswer(variables: import("./sdks/drozchat").Exact<{
|
|
59
|
+
input: import("./sdks/drozchat").DeleteQuickAnswerInput;
|
|
60
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteQuickAnswerMutation>;
|
|
52
61
|
listTags(variables?: import("./sdks/drozchat").Exact<{
|
|
53
62
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
54
63
|
}>, 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;
|
|
@@ -458,6 +474,9 @@ export type QueryListNotesArgs = {
|
|
|
458
474
|
customerId: Scalars['String']['input'];
|
|
459
475
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
460
476
|
};
|
|
477
|
+
export type QueryListQuickAnswersArgs = {
|
|
478
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
479
|
+
};
|
|
461
480
|
export type QueryListTagsArgs = {
|
|
462
481
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
463
482
|
};
|
|
@@ -489,6 +508,17 @@ export type QuerySearchTicketsArgs = {
|
|
|
489
508
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
490
509
|
sortBy?: InputMaybe<Array<TicketSearchSortBy>>;
|
|
491
510
|
};
|
|
511
|
+
export type QuickAnswer = {
|
|
512
|
+
createdAt: Scalars['DateTime']['output'];
|
|
513
|
+
id: Scalars['String']['output'];
|
|
514
|
+
message: Scalars['String']['output'];
|
|
515
|
+
name: Scalars['String']['output'];
|
|
516
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
517
|
+
};
|
|
518
|
+
export type QuickAnswersConnection = {
|
|
519
|
+
nodes: Array<QuickAnswer>;
|
|
520
|
+
pageInfo: PageInfo;
|
|
521
|
+
};
|
|
492
522
|
export type RemoveDrozChatChannelAgentInput = {
|
|
493
523
|
agentId: Scalars['ID']['input'];
|
|
494
524
|
channelId: Scalars['ID']['input'];
|
|
@@ -745,6 +775,7 @@ export declare enum Typenames {
|
|
|
745
775
|
GraphqlConnections = "GraphqlConnections",
|
|
746
776
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
747
777
|
Protocols = "Protocols",
|
|
778
|
+
QuickAnswer = "QuickAnswer",
|
|
748
779
|
Tags = "Tags",
|
|
749
780
|
TicketMappings = "TicketMappings",
|
|
750
781
|
TicketMessages = "TicketMessages",
|
|
@@ -873,6 +904,28 @@ export type DeleteNoteMutationVariables = Exact<{
|
|
|
873
904
|
export type DeleteNoteMutation = {
|
|
874
905
|
deleteNote: CustomerNoteFragment;
|
|
875
906
|
};
|
|
907
|
+
export type AnswerFragment = Pick<QuickAnswer, 'id' | 'name' | 'message' | 'createdAt' | 'updatedAt'>;
|
|
908
|
+
export type ListQuickAnswersQueryVariables = Exact<{
|
|
909
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
910
|
+
}>;
|
|
911
|
+
export type ListQuickAnswersQuery = {
|
|
912
|
+
listQuickAnswers: {
|
|
913
|
+
nodes: Array<AnswerFragment>;
|
|
914
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
export type CreateQuickAnswerMutationVariables = Exact<{
|
|
918
|
+
input: CreateQuickAnswerInput;
|
|
919
|
+
}>;
|
|
920
|
+
export type CreateQuickAnswerMutation = {
|
|
921
|
+
createQuickAnswer: AnswerFragment;
|
|
922
|
+
};
|
|
923
|
+
export type DeleteQuickAnswerMutationVariables = Exact<{
|
|
924
|
+
input: DeleteQuickAnswerInput;
|
|
925
|
+
}>;
|
|
926
|
+
export type DeleteQuickAnswerMutation = {
|
|
927
|
+
deleteQuickAnswer: AnswerFragment;
|
|
928
|
+
};
|
|
876
929
|
export type TagFragment = (Pick<TicketTag, 'name' | 'createdAt' | 'updatedAt'> & {
|
|
877
930
|
createdBy?: Maybe<DrozChatAgentFragment>;
|
|
878
931
|
});
|
|
@@ -1136,6 +1189,7 @@ export type DeleteViewMutation = {
|
|
|
1136
1189
|
};
|
|
1137
1190
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1138
1191
|
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1192
|
+
export declare const AnswerFragmentDoc = "\n fragment answer on QuickAnswer {\n id\n name\n message\n createdAt\n updatedAt\n}\n ";
|
|
1139
1193
|
export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1140
1194
|
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
1195
|
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 +1215,9 @@ export declare const ListNotesDocument = "\n query listNotes($customerId: Str
|
|
|
1161
1215
|
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
1216
|
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
1217
|
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 ";
|
|
1218
|
+
export declare const ListQuickAnswersDocument = "\n query listQuickAnswers($next: Base64) {\n listQuickAnswers(next: $next) {\n nodes {\n ...answer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment answer on QuickAnswer {\n id\n name\n message\n createdAt\n updatedAt\n}\n ";
|
|
1219
|
+
export declare const CreateQuickAnswerDocument = "\n mutation createQuickAnswer($input: CreateQuickAnswerInput!) {\n createQuickAnswer(input: $input) {\n ...answer\n }\n}\n \n fragment answer on QuickAnswer {\n id\n name\n message\n createdAt\n updatedAt\n}\n ";
|
|
1220
|
+
export declare const DeleteQuickAnswerDocument = "\n mutation deleteQuickAnswer($input: DeleteQuickAnswerInput!) {\n deleteQuickAnswer(input: $input) {\n ...answer\n }\n}\n \n fragment answer on QuickAnswer {\n id\n name\n message\n createdAt\n updatedAt\n}\n ";
|
|
1164
1221
|
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
1222
|
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
1223
|
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 +1265,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1208
1265
|
createNote(variables: CreateNoteMutationVariables, options?: C): Promise<CreateNoteMutation>;
|
|
1209
1266
|
updateNote(variables: UpdateNoteMutationVariables, options?: C): Promise<UpdateNoteMutation>;
|
|
1210
1267
|
deleteNote(variables: DeleteNoteMutationVariables, options?: C): Promise<DeleteNoteMutation>;
|
|
1268
|
+
listQuickAnswers(variables?: ListQuickAnswersQueryVariables, options?: C): Promise<ListQuickAnswersQuery>;
|
|
1269
|
+
createQuickAnswer(variables: CreateQuickAnswerMutationVariables, options?: C): Promise<CreateQuickAnswerMutation>;
|
|
1270
|
+
deleteQuickAnswer(variables: DeleteQuickAnswerMutationVariables, options?: C): Promise<DeleteQuickAnswerMutation>;
|
|
1211
1271
|
listTags(variables?: ListTagsQueryVariables, options?: C): Promise<ListTagsQuery>;
|
|
1212
1272
|
createTags(variables: CreateTagsMutationVariables, options?: C): Promise<CreateTagsMutation>;
|
|
1213
1273
|
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.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = 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.AnswerFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketMessageType = exports.TicketMessageRecipient = exports.SubscriptionAction = 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 = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -77,6 +77,7 @@ var Typenames;
|
|
|
77
77
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
78
78
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
79
79
|
Typenames["Protocols"] = "Protocols";
|
|
80
|
+
Typenames["QuickAnswer"] = "QuickAnswer";
|
|
80
81
|
Typenames["Tags"] = "Tags";
|
|
81
82
|
Typenames["TicketMappings"] = "TicketMappings";
|
|
82
83
|
Typenames["TicketMessages"] = "TicketMessages";
|
|
@@ -100,6 +101,15 @@ exports.CustomerNoteFragmentDoc = `
|
|
|
100
101
|
updatedAt
|
|
101
102
|
}
|
|
102
103
|
`;
|
|
104
|
+
exports.AnswerFragmentDoc = `
|
|
105
|
+
fragment answer on QuickAnswer {
|
|
106
|
+
id
|
|
107
|
+
name
|
|
108
|
+
message
|
|
109
|
+
createdAt
|
|
110
|
+
updatedAt
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
103
113
|
exports.TagFragmentDoc = `
|
|
104
114
|
fragment tag on TicketTag {
|
|
105
115
|
name
|
|
@@ -403,6 +413,33 @@ exports.DeleteNoteDocument = `
|
|
|
403
413
|
}
|
|
404
414
|
${exports.CustomerNoteFragmentDoc}
|
|
405
415
|
${exports.DrozChatAgentFragmentDoc}`;
|
|
416
|
+
exports.ListQuickAnswersDocument = `
|
|
417
|
+
query listQuickAnswers($next: Base64) {
|
|
418
|
+
listQuickAnswers(next: $next) {
|
|
419
|
+
nodes {
|
|
420
|
+
...answer
|
|
421
|
+
}
|
|
422
|
+
pageInfo {
|
|
423
|
+
hasNext
|
|
424
|
+
next
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
${exports.AnswerFragmentDoc}`;
|
|
429
|
+
exports.CreateQuickAnswerDocument = `
|
|
430
|
+
mutation createQuickAnswer($input: CreateQuickAnswerInput!) {
|
|
431
|
+
createQuickAnswer(input: $input) {
|
|
432
|
+
...answer
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
${exports.AnswerFragmentDoc}`;
|
|
436
|
+
exports.DeleteQuickAnswerDocument = `
|
|
437
|
+
mutation deleteQuickAnswer($input: DeleteQuickAnswerInput!) {
|
|
438
|
+
deleteQuickAnswer(input: $input) {
|
|
439
|
+
...answer
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
${exports.AnswerFragmentDoc}`;
|
|
406
443
|
exports.ListTagsDocument = `
|
|
407
444
|
query listTags($next: Base64) {
|
|
408
445
|
listTags(next: $next) {
|
|
@@ -822,6 +859,15 @@ function getSdk(requester) {
|
|
|
822
859
|
deleteNote(variables, options) {
|
|
823
860
|
return requester(exports.DeleteNoteDocument, variables, options);
|
|
824
861
|
},
|
|
862
|
+
listQuickAnswers(variables, options) {
|
|
863
|
+
return requester(exports.ListQuickAnswersDocument, variables, options);
|
|
864
|
+
},
|
|
865
|
+
createQuickAnswer(variables, options) {
|
|
866
|
+
return requester(exports.CreateQuickAnswerDocument, variables, options);
|
|
867
|
+
},
|
|
868
|
+
deleteQuickAnswer(variables, options) {
|
|
869
|
+
return requester(exports.DeleteQuickAnswerDocument, variables, options);
|
|
870
|
+
},
|
|
825
871
|
listTags(variables, options) {
|
|
826
872
|
return requester(exports.ListTagsDocument, variables, options);
|
|
827
873
|
},
|
|
@@ -226,6 +226,10 @@ export type DrozService = {
|
|
|
226
226
|
id: Scalars['String']['output'];
|
|
227
227
|
name: Scalars['String']['output'];
|
|
228
228
|
};
|
|
229
|
+
export type FullReindexBaseInput = {
|
|
230
|
+
destructive?: InputMaybe<Scalars['Boolean']['input']>;
|
|
231
|
+
tenantId: Scalars['TenantId']['input'];
|
|
232
|
+
};
|
|
229
233
|
export type GitBranch = {
|
|
230
234
|
name: Scalars['String']['output'];
|
|
231
235
|
};
|
|
@@ -280,6 +284,7 @@ export type Mutation = {
|
|
|
280
284
|
createTenant: Tenant;
|
|
281
285
|
deploy: Deployment;
|
|
282
286
|
destroy: Deployment;
|
|
287
|
+
fullReindexBase?: Maybe<Scalars['Void']['output']>;
|
|
283
288
|
joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>;
|
|
284
289
|
leaveTenantOrganization?: Maybe<Scalars['Void']['output']>;
|
|
285
290
|
removeAccountParameter?: Maybe<Parameter>;
|
|
@@ -305,6 +310,9 @@ export type MutationDeployArgs = {
|
|
|
305
310
|
export type MutationDestroyArgs = {
|
|
306
311
|
input: DestroyInput;
|
|
307
312
|
};
|
|
313
|
+
export type MutationFullReindexBaseArgs = {
|
|
314
|
+
input?: InputMaybe<FullReindexBaseInput>;
|
|
315
|
+
};
|
|
308
316
|
export type MutationJoinTenantAsSuperAdminArgs = {
|
|
309
317
|
input: JoinTenantAsSuperAdminInput;
|
|
310
318
|
};
|
|
@@ -838,6 +846,10 @@ export type LeaveTenantOrganizationMutationVariables = Exact<{
|
|
|
838
846
|
input: LeaveTenantOrganizationInput;
|
|
839
847
|
}>;
|
|
840
848
|
export type LeaveTenantOrganizationMutation = Pick<Mutation, 'leaveTenantOrganization'>;
|
|
849
|
+
export type FullReindexBaseMutationVariables = Exact<{
|
|
850
|
+
input?: InputMaybe<FullReindexBaseInput>;
|
|
851
|
+
}>;
|
|
852
|
+
export type FullReindexBaseMutation = Pick<Mutation, 'fullReindexBase'>;
|
|
841
853
|
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
842
854
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n ";
|
|
843
855
|
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n services\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
@@ -886,6 +898,7 @@ export declare const UpdateTenantDocument = "\n mutation updateTenant($input:
|
|
|
886
898
|
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
887
899
|
export declare const JoinTenantAsSuperAdminDocument = "\n mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {\n joinTenantAsSuperAdmin(input: $input)\n}\n ";
|
|
888
900
|
export declare const LeaveTenantOrganizationDocument = "\n mutation leaveTenantOrganization($input: LeaveTenantOrganizationInput!) {\n leaveTenantOrganization(input: $input)\n}\n ";
|
|
901
|
+
export declare const FullReindexBaseDocument = "\n mutation fullReindexBase($input: FullReindexBaseInput) {\n fullReindexBase(input: $input)\n}\n ";
|
|
889
902
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
890
903
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
891
904
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
@@ -927,6 +940,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
927
940
|
removeTenant(variables: RemoveTenantMutationVariables, options?: C): Promise<RemoveTenantMutation>;
|
|
928
941
|
joinTenantAsSuperAdmin(variables: JoinTenantAsSuperAdminMutationVariables, options?: C): Promise<JoinTenantAsSuperAdminMutation>;
|
|
929
942
|
leaveTenantOrganization(variables: LeaveTenantOrganizationMutationVariables, options?: C): Promise<LeaveTenantOrganizationMutation>;
|
|
943
|
+
fullReindexBase(variables?: FullReindexBaseMutationVariables, options?: C): Promise<FullReindexBaseMutation>;
|
|
930
944
|
};
|
|
931
945
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
932
946
|
export declare const serviceName = "@droz/drozcommons";
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SearchSessionsOnTenantDocument = exports.GetFederationMetadataDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitTagsDocument = exports.ListGitBranchesDocument = exports.ListDrozServicesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetMeDocument = exports.UpdateAccountDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.ParameterFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitTagFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.ParameterType = exports.IdentityProviderType = exports.IdentityProviderSamlMetadataType = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
-
exports.serviceName = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.GetZendeskTicketDetailsDocument = void 0;
|
|
5
|
+
exports.serviceName = exports.FullReindexBaseDocument = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.GetZendeskTicketDetailsDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -448,6 +448,11 @@ exports.LeaveTenantOrganizationDocument = `
|
|
|
448
448
|
leaveTenantOrganization(input: $input)
|
|
449
449
|
}
|
|
450
450
|
`;
|
|
451
|
+
exports.FullReindexBaseDocument = `
|
|
452
|
+
mutation fullReindexBase($input: FullReindexBaseInput) {
|
|
453
|
+
fullReindexBase(input: $input)
|
|
454
|
+
}
|
|
455
|
+
`;
|
|
451
456
|
function getSdk(requester) {
|
|
452
457
|
return {
|
|
453
458
|
listAccounts(variables, options) {
|
|
@@ -566,6 +571,9 @@ function getSdk(requester) {
|
|
|
566
571
|
},
|
|
567
572
|
leaveTenantOrganization(variables, options) {
|
|
568
573
|
return requester(exports.LeaveTenantOrganizationDocument, variables, options);
|
|
574
|
+
},
|
|
575
|
+
fullReindexBase(variables, options) {
|
|
576
|
+
return requester(exports.FullReindexBaseDocument, variables, options);
|
|
569
577
|
}
|
|
570
578
|
};
|
|
571
579
|
}
|