@droz-js/sdk 0.4.19 → 0.4.21

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.4.19",
4
+ "version": "0.4.21",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "graphql": "^16.8.1",
21
- "graphql-ws": "^5.14.3",
21
+ "graphql-ws": "^5.15.0",
22
22
  "inbatches": "^0.0.10"
23
23
  },
24
24
  "devDependencies": {
@@ -191,8 +191,8 @@ export declare const ListCasasBahiaInstancesDocument = "\n query listCasasBah
191
191
  export declare const CreateCasasBahiaInstanceDocument = "\n mutation createCasasBahiaInstance($input: CreateCasasBahiaInstanceInput!) {\n createCasasBahiaInstance(input: $input) {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
192
192
  export declare const UpdateCasasBahiaInstanceDocument = "\n mutation updateCasasBahiaInstance($input: UpdateCasasBahiaInstanceInput!) {\n updateCasasBahiaInstance(input: $input) {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
193
193
  export declare const RemoveCasasBahiaInstanceDocument = "\n mutation removeCasasBahiaInstance($input: RemoveCasasBahiaInstanceInput!) {\n removeCasasBahiaInstance(input: $input) {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
194
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
195
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
194
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
195
+ export declare function getSdk<C>(requester: Requester<C>): {
196
196
  getCasasBahiaInstance(variables: GetCasasBahiaInstanceQueryVariables, options?: C): Promise<GetCasasBahiaInstanceQuery>;
197
197
  listCasasBahiaInstances(variables?: ListCasasBahiaInstancesQueryVariables, options?: C): Promise<ListCasasBahiaInstancesQuery>;
198
198
  createCasasBahiaInstance(variables: CreateCasasBahiaInstanceMutationVariables, options?: C): Promise<CreateCasasBahiaInstanceMutation>;
@@ -246,8 +246,8 @@ export declare const RemoveChatWidgetDocument = "\n mutation removeChatWidget
246
246
  export declare const StartChatWidgetSessionDocument = "\n mutation startChatWidgetSession($input: StartChatWidgetSessionInput!) {\n startChatWidgetSession(input: $input) {\n id\n }\n}\n ";
247
247
  export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input)\n}\n ";
248
248
  export declare const OnChatWidgetMessageDocument = "\n subscription onChatWidgetMessage($sessionId: ID!) {\n onChatWidgetMessage(sessionId: $sessionId) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n}\n ";
249
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
250
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
249
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
250
+ export declare function getSdk<C>(requester: Requester<C>): {
251
251
  getChatWidget(variables: GetChatWidgetQueryVariables, options?: C): Promise<GetChatWidgetQuery>;
252
252
  listChatWidgets(variables?: ListChatWidgetsQueryVariables, options?: C): Promise<ListChatWidgetsQuery>;
253
253
  createChatWidget(variables: CreateChatWidgetMutationVariables, options?: C): Promise<CreateChatWidgetMutation>;
@@ -239,8 +239,8 @@ export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozB
239
239
  export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialId\n isTest\n createdAt\n updatedAt\n}\n ";
240
240
  export declare const CreateDrozBotTicketDocument = "\n mutation createDrozBotTicket($input: CreateDrozBotTicketInput!) {\n createDrozBotTicket(input: $input) {\n id\n instanceId\n }\n}\n ";
241
241
  export declare const CreateDrozBotTicketCommentDocument = "\n mutation createDrozBotTicketComment($input: CreateDrozBotTicketCommentInput!) {\n createDrozBotTicketComment(input: $input) {\n id\n ticketId\n }\n}\n ";
242
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
243
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
242
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
243
+ export declare function getSdk<C>(requester: Requester<C>): {
244
244
  getDrozBotInstance(variables: GetDrozBotInstanceQueryVariables, options?: C): Promise<GetDrozBotInstanceQuery>;
245
245
  listDrozBotInstances(variables?: ListDrozBotInstancesQueryVariables, options?: C): Promise<ListDrozBotInstancesQuery>;
246
246
  createDrozBotInstance(variables: CreateDrozBotInstanceMutationVariables, options?: C): Promise<CreateDrozBotInstanceMutation>;
@@ -319,6 +319,7 @@ export type TicketSessionAttributes = {
319
319
  order?: Maybe<Scalars['JSON']['output']>;
320
320
  organization?: Maybe<Scalars['JSON']['output']>;
321
321
  products?: Maybe<Array<Scalars['JSON']['output']>>;
322
+ source?: Maybe<Scalars['JSON']['output']>;
322
323
  };
323
324
  export declare enum TicketState {
324
325
  Closed = "CLOSED",
@@ -418,7 +419,7 @@ export type TicketFragment = (Pick<Ticket, 'channelId' | 'id' | 'state' | 'statu
418
419
  triggerApp?: Maybe<TicketTriggerAppFragment>;
419
420
  });
420
421
  export type TicketMessageFragment = Pick<TicketMessage, 'id' | 'ticketId' | 'from' | 'to' | 'channelId' | 'contentType' | 'content' | 'filename' | 'size' | 'createdAt' | 'updatedAt'>;
421
- export type SessionAttributesFragment = Pick<TicketSessionAttributes, 'order' | 'organization' | 'products'>;
422
+ export type SessionAttributesFragment = Pick<TicketSessionAttributes, 'organization' | 'source' | 'order' | 'products'>;
422
423
  export type GetTicketQueryVariables = Exact<{
423
424
  id: Scalars['ID']['input'];
424
425
  }>;
@@ -560,13 +561,13 @@ export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatC
560
561
  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 ";
561
562
  export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\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 ";
562
563
  export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
563
- export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n order\n organization\n products\n}\n ";
564
+ export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n}\n ";
564
565
  export declare const GetDrozChatChannelDocument = "\n query getDrozChatChannel($id: ID!) {\n getDrozChatChannel(id: $id) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
565
566
  export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
566
567
  export declare const CreateDrozChatChannelDocument = "\n mutation createDrozChatChannel($input: CreateDrozChatChannelInput!) {\n createDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
567
568
  export declare const UpdateDrozChatChannelDocument = "\n mutation updateDrozChatChannel($input: UpdateDrozChatChannelInput!) {\n updateDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
568
569
  export declare const RemoveDrozChatChannelDocument = "\n mutation removeDrozChatChannel($input: RemoveDrozChatChannelInput!) {\n removeDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
569
- export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\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 \n\n fragment sessionAttributes on TicketSessionAttributes {\n order\n organization\n products\n}\n ";
570
+ export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\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 \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n}\n ";
570
571
  export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\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 ";
571
572
  export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\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 ";
572
573
  export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\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 ";
@@ -584,8 +585,8 @@ export declare const OnTicketInQueueDocument = "\n subscription onTicketInQue
584
585
  export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\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 ";
585
586
  export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\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 ";
586
587
  export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
587
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
588
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
588
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
589
+ export declare function getSdk<C>(requester: Requester<C>): {
589
590
  getDrozChatChannel(variables: GetDrozChatChannelQueryVariables, options?: C): Promise<GetDrozChatChannelQuery>;
590
591
  listDrozChatChannels(variables?: ListDrozChatChannelsQueryVariables, options?: C): Promise<ListDrozChatChannelsQuery>;
591
592
  createDrozChatChannel(variables: CreateDrozChatChannelMutationVariables, options?: C): Promise<CreateDrozChatChannelMutation>;
@@ -138,8 +138,9 @@ exports.TicketMessageFragmentDoc = `
138
138
  `;
139
139
  exports.SessionAttributesFragmentDoc = `
140
140
  fragment sessionAttributes on TicketSessionAttributes {
141
- order
142
141
  organization
142
+ source
143
+ order
143
144
  products
144
145
  }
145
146
  `;
@@ -441,8 +441,8 @@ export declare const ListTenantsDocument = "\n query listTenants($withService
441
441
  export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(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 billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
442
442
  export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(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 billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
443
443
  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 billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
444
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
445
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
444
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
445
+ export declare function getSdk<C>(requester: Requester<C>): {
446
446
  getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
447
447
  getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
448
448
  listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
@@ -224,8 +224,8 @@ export declare const ListDrozNexoConnectionsDocument = "\n query listDrozNexo
224
224
  export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
225
225
  export declare const CreateDrozNexoConnectionDocument = "\n mutation createDrozNexoConnection($input: CreateDrozNexoConnectionInput!) {\n createDrozNexoConnection(input: $input) {\n ...drozNexoConnection\n }\n}\n \n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n title\n description\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n createdAt\n updatedAt\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
226
226
  export declare const RemoveDrozNexoConnectionDocument = "\n mutation removeDrozNexoConnection($input: RemoveDrozNexoConnectionInput!) {\n removeDrozNexoConnection(input: $input) {\n ...drozNexoConnection\n }\n}\n \n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n title\n description\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n createdAt\n updatedAt\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
227
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
228
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
227
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
228
+ export declare function getSdk<C>(requester: Requester<C>): {
229
229
  listDrozNexoSuggestions(variables?: ListDrozNexoSuggestionsQueryVariables, options?: C): Promise<ListDrozNexoSuggestionsQuery>;
230
230
  listDrozNexoConnections(variables?: ListDrozNexoConnectionsQueryVariables, options?: C): Promise<ListDrozNexoConnectionsQuery>;
231
231
  getUsageStatistics(variables?: GetUsageStatisticsQueryVariables, options?: C): Promise<GetUsageStatisticsQuery>;
@@ -190,8 +190,8 @@ export declare const ListMercadoLivreInstancesDocument = "\n query listMercad
190
190
  export declare const CreateMercadoLivreInstanceDocument = "\n mutation createMercadoLivreInstance($input: CreateMercadoLivreInstanceInput!) {\n createMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
191
191
  export declare const UpdateMercadoLivreInstanceDocument = "\n mutation updateMercadoLivreInstance($input: UpdateMercadoLivreInstanceInput!) {\n updateMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
192
192
  export declare const RemoveMercadoLivreInstanceDocument = "\n mutation removeMercadoLivreInstance($input: RemoveMercadoLivreInstanceInput!) {\n removeMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
193
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
194
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
193
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
194
+ export declare function getSdk<C>(requester: Requester<C>): {
195
195
  getMercadoLivreInstance(variables: GetMercadoLivreInstanceQueryVariables, options?: C): Promise<GetMercadoLivreInstanceQuery>;
196
196
  listMercadoLivreInstances(variables?: ListMercadoLivreInstancesQueryVariables, options?: C): Promise<ListMercadoLivreInstancesQuery>;
197
197
  createMercadoLivreInstance(variables: CreateMercadoLivreInstanceMutationVariables, options?: C): Promise<CreateMercadoLivreInstanceMutation>;
@@ -1211,8 +1211,8 @@ export declare const UpdateStateMachineConfigStateDocument = "\n mutation upd
1211
1211
  export declare const RemoveStateMachineConfigStateDocument = "\n mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) {\n removeStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
1212
1212
  export declare const GetStorageDocument = "\n query getStorage($id: ID!) {\n getStorage(id: $id) {\n ...storage\n }\n}\n \n fragment storage on Storage {\n key\n versionId\n name\n contentType\n size\n eTag\n cdnUrl\n createdAt\n updatedAt\n}\n ";
1213
1213
  export declare const CreatePresignedUploadUrlDocument = "\n mutation createPresignedUploadUrl($input: CreatePresignedUploadUrlInput!) {\n createPresignedUploadUrl(input: $input) {\n method\n url\n fields\n cdnUrl\n }\n}\n ";
1214
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
1215
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
1214
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
1215
+ export declare function getSdk<C>(requester: Requester<C>): {
1216
1216
  getMe(variables?: GetMeQueryVariables, options?: C): Promise<GetMeQuery>;
1217
1217
  getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;
1218
1218
  listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;
@@ -252,8 +252,8 @@ export declare const UpdateReclameAquiInstanceDocument = "\n mutation updateR
252
252
  export declare const RemoveReclameAquiInstanceDocument = "\n mutation removeReclameAquiInstance($input: RemoveReclameAquiInstanceInput!) {\n removeReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
253
253
  export declare const SendReclameAquiModerationRequestDocument = "\n mutation sendReclameAquiModerationRequest($input: SendReclameAquiModerationRequestInput!) {\n sendReclameAquiModerationRequest(input: $input) {\n success\n }\n}\n ";
254
254
  export declare const RequestReclameAquiTicketEvaluationDocument = "\n mutation requestReclameAquiTicketEvaluation($input: RequestReclameAquiTicketEvaluationInput!) {\n requestReclameAquiTicketEvaluation(input: $input) {\n success\n }\n}\n ";
255
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
256
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
255
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
256
+ export declare function getSdk<C>(requester: Requester<C>): {
257
257
  getReclameAquiInstance(variables: GetReclameAquiInstanceQueryVariables, options?: C): Promise<GetReclameAquiInstanceQuery>;
258
258
  listReclameAquiInstances(variables?: ListReclameAquiInstancesQueryVariables, options?: C): Promise<ListReclameAquiInstancesQuery>;
259
259
  listReclameAquiCompanies(variables: ListReclameAquiCompaniesQueryVariables, options?: C): Promise<ListReclameAquiCompaniesQuery>;
@@ -240,6 +240,7 @@ export type ZendeskTicketSessionAttributes = {
240
240
  organization?: Maybe<Scalars['JSON']['output']>;
241
241
  products?: Maybe<Array<Scalars['JSON']['output']>>;
242
242
  sessionId: Scalars['ID']['output'];
243
+ source?: Maybe<Scalars['JSON']['output']>;
243
244
  ticketId: Scalars['ID']['output'];
244
245
  triggerApp: TriggerApp;
245
246
  };
@@ -283,7 +284,7 @@ export type GetTicketSessionAttributesQueryVariables = Exact<{
283
284
  ticketId: Scalars['ID']['input'];
284
285
  }>;
285
286
  export type GetTicketSessionAttributesQuery = {
286
- getTicketSessionAttributes?: Maybe<(Pick<ZendeskTicketSessionAttributes, 'sessionId' | 'instanceId' | 'order' | 'products' | 'organization'> & {
287
+ getTicketSessionAttributes?: Maybe<(Pick<ZendeskTicketSessionAttributes, 'sessionId' | 'instanceId' | 'organization' | 'source' | 'order' | 'products'> & {
287
288
  customer: ZendeskCustomerFragment;
288
289
  triggerApp: Pick<TriggerApp, 'id' | 'name' | 'description'>;
289
290
  })>;
@@ -313,12 +314,12 @@ export declare const ListZendeskInstancesDocument = "\n query listZendeskInst
313
314
  export declare const ListZendeskTicketCustomFieldsDocument = "\n query listZendeskTicketCustomFields($credentialId: ID!, $domain: String!) {\n listZendeskTicketCustomFields(credentialId: $credentialId, domain: $domain) {\n id\n title\n type\n active\n required\n }\n}\n ";
314
315
  export declare const ListZendeskRolesDocument = "\n query listZendeskRoles($credentialId: ID!, $domain: String!) {\n listZendeskRoles(credentialId: $credentialId, domain: $domain) {\n id\n name\n }\n}\n ";
315
316
  export declare const AssertCanUserInteractDocument = "\n query assertCanUserInteract($ticketId: ID!, $userId: Float!) {\n assertCanUserInteract(ticketId: $ticketId, userId: $userId)\n}\n ";
316
- export declare const GetTicketSessionAttributesDocument = "\n query getTicketSessionAttributes($ticketId: ID!) {\n getTicketSessionAttributes(ticketId: $ticketId) {\n sessionId\n instanceId\n customer {\n ...zendeskCustomer\n }\n order\n products\n organization\n triggerApp {\n id\n name\n description\n }\n }\n}\n \n fragment zendeskCustomer on ZendeskCustomer {\n id\n name\n email\n phone\n externalId\n document\n createdAt\n updatedAt\n}\n ";
317
+ export declare const GetTicketSessionAttributesDocument = "\n query getTicketSessionAttributes($ticketId: ID!) {\n getTicketSessionAttributes(ticketId: $ticketId) {\n sessionId\n instanceId\n organization\n customer {\n ...zendeskCustomer\n }\n source\n order\n products\n triggerApp {\n id\n name\n description\n }\n }\n}\n \n fragment zendeskCustomer on ZendeskCustomer {\n id\n name\n email\n phone\n externalId\n document\n createdAt\n updatedAt\n}\n ";
317
318
  export declare const CreateZendeskInstanceDocument = "\n mutation createZendeskInstance($input: CreateZendeskInstanceInput!) {\n createZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n ";
318
319
  export declare const UpdateZendeskInstanceDocument = "\n mutation updateZendeskInstance($input: UpdateZendeskInstanceInput!) {\n updateZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n ";
319
320
  export declare const RemoveZendeskInstanceDocument = "\n mutation removeZendeskInstance($input: RemoveZendeskInstanceInput!) {\n removeZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n ";
320
- export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
321
- export declare function getSdk<C, E>(requester: Requester<C, E>): {
321
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
322
+ export declare function getSdk<C>(requester: Requester<C>): {
322
323
  getZendeskInstance(variables: GetZendeskInstanceQueryVariables, options?: C): Promise<GetZendeskInstanceQuery>;
323
324
  listZendeskInstances(variables?: ListZendeskInstancesQueryVariables, options?: C): Promise<ListZendeskInstancesQuery>;
324
325
  listZendeskTicketCustomFields(variables: ListZendeskTicketCustomFieldsQueryVariables, options?: C): Promise<ListZendeskTicketCustomFieldsQuery>;
@@ -91,12 +91,13 @@ exports.GetTicketSessionAttributesDocument = `
91
91
  getTicketSessionAttributes(ticketId: $ticketId) {
92
92
  sessionId
93
93
  instanceId
94
+ organization
94
95
  customer {
95
96
  ...zendeskCustomer
96
97
  }
98
+ source
97
99
  order
98
100
  products
99
- organization
100
101
  triggerApp {
101
102
  id
102
103
  name