@droz-js/sdk 0.9.50 → 0.9.51

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.9.50",
4
+ "version": "0.9.51",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -33,6 +33,19 @@ declare const DrozChatWs_base: new () => {
33
33
  removeDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
34
34
  input: import("./sdks/drozchat").RemoveDrozChatChannelAgentInput;
35
35
  }>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelAgentMutation>;
36
+ listNotes(variables: import("./sdks/drozchat").Exact<{
37
+ customerId: import("./sdks/drozchat").Scalars["String"]["input"];
38
+ next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
39
+ }>, options?: unknown): Promise<import("./sdks/drozchat").ListNotesQuery>;
40
+ createNote(variables: import("./sdks/drozchat").Exact<{
41
+ input: import("./sdks/drozchat").CreateCustomerNoteInput;
42
+ }>, options?: unknown): Promise<import("./sdks/drozchat").CreateNoteMutation>;
43
+ updateNote(variables: import("./sdks/drozchat").Exact<{
44
+ input: import("./sdks/drozchat").UpdateCustomerNoteInput;
45
+ }>, options?: unknown): Promise<import("./sdks/drozchat").UpdateNoteMutation>;
46
+ deleteNote(variables: import("./sdks/drozchat").Exact<{
47
+ input: import("./sdks/drozchat").DeleteCustomerNoteInput;
48
+ }>, options?: unknown): Promise<import("./sdks/drozchat").DeleteNoteMutation>;
36
49
  listTags(variables?: import("./sdks/drozchat").Exact<{
37
50
  next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
38
51
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
package/src/drozchat.d.ts CHANGED
@@ -36,6 +36,19 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
36
36
  removeDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
37
37
  input: import("./sdks/drozchat").RemoveDrozChatChannelAgentInput;
38
38
  }>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelAgentMutation>;
39
+ listNotes(variables: import("./sdks/drozchat").Exact<{
40
+ customerId: import("./sdks/drozchat").Scalars["String"]["input"];
41
+ next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
42
+ }>, options?: unknown): Promise<import("./sdks/drozchat").ListNotesQuery>;
43
+ createNote(variables: import("./sdks/drozchat").Exact<{
44
+ input: import("./sdks/drozchat").CreateCustomerNoteInput;
45
+ }>, options?: unknown): Promise<import("./sdks/drozchat").CreateNoteMutation>;
46
+ updateNote(variables: import("./sdks/drozchat").Exact<{
47
+ input: import("./sdks/drozchat").UpdateCustomerNoteInput;
48
+ }>, options?: unknown): Promise<import("./sdks/drozchat").UpdateNoteMutation>;
49
+ deleteNote(variables: import("./sdks/drozchat").Exact<{
50
+ input: import("./sdks/drozchat").DeleteCustomerNoteInput;
51
+ }>, options?: unknown): Promise<import("./sdks/drozchat").DeleteNoteMutation>;
39
52
  listTags(variables?: import("./sdks/drozchat").Exact<{
40
53
  next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
41
54
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
@@ -183,6 +183,10 @@ export type CloneViewInput = {
183
183
  export type CloseTicketInput = {
184
184
  ticketId: Scalars['ID']['input'];
185
185
  };
186
+ export type CreateCustomerNoteInput = {
187
+ customerId: Scalars['String']['input'];
188
+ note: Scalars['String']['input'];
189
+ };
186
190
  export type CreateDrozChatChannelInput = {
187
191
  agentIds?: InputMaybe<Scalars['Set']['input']>;
188
192
  name?: InputMaybe<Scalars['String']['input']>;
@@ -212,6 +216,21 @@ export type CreateViewInput = {
212
216
  filters: TicketSearchFilterInput;
213
217
  name: Scalars['String']['input'];
214
218
  };
219
+ export type CustomerNote = {
220
+ createdAt: Scalars['DateTime']['output'];
221
+ createdBy: DrozChatAgent;
222
+ id: Scalars['String']['output'];
223
+ note: Scalars['String']['output'];
224
+ updatedAt: Scalars['DateTime']['output'];
225
+ };
226
+ export type CustomerNotesConnection = {
227
+ nodes: Array<CustomerNote>;
228
+ pageInfo: PageInfo;
229
+ };
230
+ export type DeleteCustomerNoteInput = {
231
+ customerId: Scalars['String']['input'];
232
+ id: Scalars['String']['input'];
233
+ };
215
234
  export type DeleteTicketTagInput = {
216
235
  tags: Array<Scalars['String']['input']>;
217
236
  };
@@ -278,11 +297,13 @@ export type Mutation = {
278
297
  cloneView: View;
279
298
  closeTicket: Ticket;
280
299
  createDrozChatChannel?: Maybe<DrozChatChannel>;
300
+ createNote: CustomerNote;
281
301
  createTags: Array<TicketTag>;
282
302
  createTicket: Ticket;
283
303
  createTicketMessage: TicketMessage;
284
304
  createTicketMessageForStorage: TicketMessage;
285
305
  createView: View;
306
+ deleteNote: CustomerNote;
286
307
  deleteTags: Array<Maybe<TicketTag>>;
287
308
  deleteView: View;
288
309
  disableDrozChatChannel?: Maybe<DrozChatChannel>;
@@ -294,6 +315,7 @@ export type Mutation = {
294
315
  transferTicketToChannel: Ticket;
295
316
  unassignTicket: Ticket;
296
317
  updateDrozChatChannel?: Maybe<DrozChatChannel>;
318
+ updateNote: CustomerNote;
297
319
  updateTicket: Ticket;
298
320
  updateView: View;
299
321
  version?: Maybe<Scalars['String']['output']>;
@@ -319,6 +341,9 @@ export type MutationCloseTicketArgs = {
319
341
  export type MutationCreateDrozChatChannelArgs = {
320
342
  input: CreateDrozChatChannelInput;
321
343
  };
344
+ export type MutationCreateNoteArgs = {
345
+ input: CreateCustomerNoteInput;
346
+ };
322
347
  export type MutationCreateTagsArgs = {
323
348
  input: CreateTicketTagInput;
324
349
  };
@@ -334,6 +359,9 @@ export type MutationCreateTicketMessageForStorageArgs = {
334
359
  export type MutationCreateViewArgs = {
335
360
  input: CreateViewInput;
336
361
  };
362
+ export type MutationDeleteNoteArgs = {
363
+ input?: InputMaybe<DeleteCustomerNoteInput>;
364
+ };
337
365
  export type MutationDeleteTagsArgs = {
338
366
  input: DeleteTicketTagInput;
339
367
  };
@@ -364,6 +392,9 @@ export type MutationUnassignTicketArgs = {
364
392
  export type MutationUpdateDrozChatChannelArgs = {
365
393
  input: UpdateDrozChatChannelInput;
366
394
  };
395
+ export type MutationUpdateNoteArgs = {
396
+ input?: InputMaybe<UpdateCustomerNoteInput>;
397
+ };
367
398
  export type MutationUpdateTicketArgs = {
368
399
  input: UpdateTicketInput;
369
400
  };
@@ -401,6 +432,7 @@ export type Query = {
401
432
  getWsEndpoint?: Maybe<Scalars['String']['output']>;
402
433
  listDrozChatAgentChannels: Array<DrozChatChannel>;
403
434
  listDrozChatChannels: Array<DrozChatChannel>;
435
+ listNotes: CustomerNotesConnection;
404
436
  listTags: TicketTagsConnection;
405
437
  listTicketInternalNotes: TicketMessagesConnection;
406
438
  listTicketMessages: TicketMessagesConnection;
@@ -424,6 +456,10 @@ export type QueryGetViewArgs = {
424
456
  export type QueryListDrozChatAgentChannelsArgs = {
425
457
  agentId: Scalars['ID']['input'];
426
458
  };
459
+ export type QueryListNotesArgs = {
460
+ customerId: Scalars['String']['input'];
461
+ next?: InputMaybe<Scalars['Base64']['input']>;
462
+ };
427
463
  export type QueryListTagsArgs = {
428
464
  next?: InputMaybe<Scalars['Base64']['input']>;
429
465
  };
@@ -710,6 +746,7 @@ export type TransferTicketToChannelInput = {
710
746
  export declare enum Typenames {
711
747
  Any = "Any",
712
748
  Channels = "Channels",
749
+ CustomerNotes = "CustomerNotes",
713
750
  GraphqlConnections = "GraphqlConnections",
714
751
  GraphqlSubscriptions = "GraphqlSubscriptions",
715
752
  Protocols = "Protocols",
@@ -722,6 +759,11 @@ export declare enum Typenames {
722
759
  export type UnassignTicketInput = {
723
760
  ticketId: Scalars['ID']['input'];
724
761
  };
762
+ export type UpdateCustomerNoteInput = {
763
+ customerId: Scalars['String']['input'];
764
+ id: Scalars['String']['input'];
765
+ note: Scalars['String']['input'];
766
+ };
725
767
  export type UpdateDrozChatChannelInput = {
726
768
  agentIds?: InputMaybe<Scalars['Set']['input']>;
727
769
  id: Scalars['ID']['input'];
@@ -807,6 +849,37 @@ export type RemoveDrozChatChannelAgentMutationVariables = Exact<{
807
849
  export type RemoveDrozChatChannelAgentMutation = {
808
850
  removeDrozChatChannelAgent?: Maybe<DrozChatChannelFragment>;
809
851
  };
852
+ export type CustomerNoteFragment = (Pick<CustomerNote, 'id' | 'note' | 'createdAt' | 'updatedAt'> & {
853
+ createdBy: DrozChatAgentFragment;
854
+ });
855
+ export type ListNotesQueryVariables = Exact<{
856
+ customerId: Scalars['String']['input'];
857
+ next?: InputMaybe<Scalars['Base64']['input']>;
858
+ }>;
859
+ export type ListNotesQuery = {
860
+ listNotes: {
861
+ nodes: Array<CustomerNoteFragment>;
862
+ pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
863
+ };
864
+ };
865
+ export type CreateNoteMutationVariables = Exact<{
866
+ input: CreateCustomerNoteInput;
867
+ }>;
868
+ export type CreateNoteMutation = {
869
+ createNote: CustomerNoteFragment;
870
+ };
871
+ export type UpdateNoteMutationVariables = Exact<{
872
+ input: UpdateCustomerNoteInput;
873
+ }>;
874
+ export type UpdateNoteMutation = {
875
+ updateNote: CustomerNoteFragment;
876
+ };
877
+ export type DeleteNoteMutationVariables = Exact<{
878
+ input: DeleteCustomerNoteInput;
879
+ }>;
880
+ export type DeleteNoteMutation = {
881
+ deleteNote: CustomerNoteFragment;
882
+ };
810
883
  export type TagFragment = (Pick<TicketTag, 'name' | 'createdAt' | 'updatedAt'> & {
811
884
  createdBy?: Maybe<DrozChatAgentFragment>;
812
885
  });
@@ -1075,6 +1148,7 @@ export type DeleteViewMutation = {
1075
1148
  deleteView: ViewFragment;
1076
1149
  };
1077
1150
  export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
1151
+ export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
1078
1152
  export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
1079
1153
  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 ";
1080
1154
  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 ";
@@ -1096,6 +1170,10 @@ export declare const DisableDrozChatChannelDocument = "\n mutation disableDro
1096
1170
  export declare const EnableDrozChatChannelDocument = "\n mutation enableDrozChatChannel($input: EnableDrozChatChannelInput!) {\n enableDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
1097
1171
  export declare const AddDrozChatChannelAgentDocument = "\n mutation addDrozChatChannelAgent($input: AddDrozChatChannelAgentInput!) {\n addDrozChatChannelAgent(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
1098
1172
  export declare const RemoveDrozChatChannelAgentDocument = "\n mutation removeDrozChatChannelAgent($input: RemoveDrozChatChannelAgentInput!) {\n removeDrozChatChannelAgent(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
1173
+ export declare const ListNotesDocument = "\n query listNotes($customerId: String!, $next: Base64) {\n listNotes(customerId: $customerId, next: $next) {\n nodes {\n ...customerNote\n }\n pageInfo {\n hasNext\n next\n }\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 ";
1174
+ 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 ";
1175
+ 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 ";
1176
+ 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 ";
1099
1177
  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 ";
1100
1178
  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 ";
1101
1179
  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 ";
@@ -1140,6 +1218,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
1140
1218
  enableDrozChatChannel(variables: EnableDrozChatChannelMutationVariables, options?: C): Promise<EnableDrozChatChannelMutation>;
1141
1219
  addDrozChatChannelAgent(variables: AddDrozChatChannelAgentMutationVariables, options?: C): Promise<AddDrozChatChannelAgentMutation>;
1142
1220
  removeDrozChatChannelAgent(variables: RemoveDrozChatChannelAgentMutationVariables, options?: C): Promise<RemoveDrozChatChannelAgentMutation>;
1221
+ listNotes(variables: ListNotesQueryVariables, options?: C): Promise<ListNotesQuery>;
1222
+ createNote(variables: CreateNoteMutationVariables, options?: C): Promise<CreateNoteMutation>;
1223
+ updateNote(variables: UpdateNoteMutationVariables, options?: C): Promise<UpdateNoteMutation>;
1224
+ deleteNote(variables: DeleteNoteMutationVariables, options?: C): Promise<DeleteNoteMutation>;
1143
1225
  listTags(variables?: ListTagsQueryVariables, options?: C): Promise<ListTagsQuery>;
1144
1226
  createTags(variables: CreateTagsMutationVariables, options?: C): Promise<CreateTagsMutation>;
1145
1227
  deleteTags(variables: DeleteTagsMutationVariables, options?: C): Promise<DeleteTagsMutation>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- 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.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.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.ListViewsByChannelDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = void 0;
4
+ 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.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.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.ListViewsByChannelDocument = 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;
6
6
  exports.getSdk = getSdk;
7
7
  var AppInstanceStatus;
8
8
  (function (AppInstanceStatus) {
@@ -73,6 +73,7 @@ var Typenames;
73
73
  (function (Typenames) {
74
74
  Typenames["Any"] = "Any";
75
75
  Typenames["Channels"] = "Channels";
76
+ Typenames["CustomerNotes"] = "CustomerNotes";
76
77
  Typenames["GraphqlConnections"] = "GraphqlConnections";
77
78
  Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
78
79
  Typenames["Protocols"] = "Protocols";
@@ -88,6 +89,17 @@ exports.DrozChatAgentFragmentDoc = `
88
89
  name
89
90
  }
90
91
  `;
92
+ exports.CustomerNoteFragmentDoc = `
93
+ fragment customerNote on CustomerNote {
94
+ id
95
+ note
96
+ createdBy {
97
+ ...drozChatAgent
98
+ }
99
+ createdAt
100
+ updatedAt
101
+ }
102
+ `;
91
103
  exports.TagFragmentDoc = `
92
104
  fragment tag on TicketTag {
93
105
  name
@@ -353,6 +365,44 @@ exports.RemoveDrozChatChannelAgentDocument = `
353
365
  }
354
366
  }
355
367
  ${exports.DrozChatChannelFragmentDoc}`;
368
+ exports.ListNotesDocument = `
369
+ query listNotes($customerId: String!, $next: Base64) {
370
+ listNotes(customerId: $customerId, next: $next) {
371
+ nodes {
372
+ ...customerNote
373
+ }
374
+ pageInfo {
375
+ hasNext
376
+ next
377
+ }
378
+ }
379
+ }
380
+ ${exports.CustomerNoteFragmentDoc}
381
+ ${exports.DrozChatAgentFragmentDoc}`;
382
+ exports.CreateNoteDocument = `
383
+ mutation createNote($input: CreateCustomerNoteInput!) {
384
+ createNote(input: $input) {
385
+ ...customerNote
386
+ }
387
+ }
388
+ ${exports.CustomerNoteFragmentDoc}
389
+ ${exports.DrozChatAgentFragmentDoc}`;
390
+ exports.UpdateNoteDocument = `
391
+ mutation updateNote($input: UpdateCustomerNoteInput!) {
392
+ updateNote(input: $input) {
393
+ ...customerNote
394
+ }
395
+ }
396
+ ${exports.CustomerNoteFragmentDoc}
397
+ ${exports.DrozChatAgentFragmentDoc}`;
398
+ exports.DeleteNoteDocument = `
399
+ mutation deleteNote($input: DeleteCustomerNoteInput!) {
400
+ deleteNote(input: $input) {
401
+ ...customerNote
402
+ }
403
+ }
404
+ ${exports.CustomerNoteFragmentDoc}
405
+ ${exports.DrozChatAgentFragmentDoc}`;
356
406
  exports.ListTagsDocument = `
357
407
  query listTags($next: Base64) {
358
408
  listTags(next: $next) {
@@ -767,6 +817,18 @@ function getSdk(requester) {
767
817
  removeDrozChatChannelAgent(variables, options) {
768
818
  return requester(exports.RemoveDrozChatChannelAgentDocument, variables, options);
769
819
  },
820
+ listNotes(variables, options) {
821
+ return requester(exports.ListNotesDocument, variables, options);
822
+ },
823
+ createNote(variables, options) {
824
+ return requester(exports.CreateNoteDocument, variables, options);
825
+ },
826
+ updateNote(variables, options) {
827
+ return requester(exports.UpdateNoteDocument, variables, options);
828
+ },
829
+ deleteNote(variables, options) {
830
+ return requester(exports.DeleteNoteDocument, variables, options);
831
+ },
770
832
  listTags(variables, options) {
771
833
  return requester(exports.ListTagsDocument, variables, options);
772
834
  },