@droz-js/sdk
Advanced tools
Comparing version 0.6.7 to 0.6.8
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -17,2 +17,5 @@ import { CreatePresignedUploadUrlInput } from './sdks/nucleus'; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentQuery>; | ||
getAgents(variables: import("./sdks/nucleus").Exact<{ | ||
ids: string | string[]; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentsQuery>; | ||
listAgents(variables?: import("./sdks/nucleus").Exact<{ | ||
@@ -19,0 +22,0 @@ next?: object; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
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.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.TicketMessageFragmentDoc = 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.TicketMessageRecipient = exports.SubscriptionAction = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = void 0; | ||
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.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.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = 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.TicketMessageRecipient = exports.SubscriptionAction = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = void 0; | ||
var AppInstanceStatus; | ||
@@ -208,2 +208,45 @@ (function (AppInstanceStatus) { | ||
`; | ||
exports.FacetsFragmentDoc = ` | ||
fragment facets on TicketsSearchResultsFacet { | ||
... on SearchResultsFacet { | ||
name | ||
values { | ||
value | ||
count | ||
} | ||
stats { | ||
min | ||
max | ||
} | ||
} | ||
... on AgentSearchResultsFacet { | ||
name | ||
values { | ||
agent { | ||
id | ||
name | ||
} | ||
count | ||
} | ||
stats { | ||
min | ||
max | ||
} | ||
} | ||
... on ChannelSearchResultsFacet { | ||
name | ||
values { | ||
channel { | ||
id | ||
name | ||
} | ||
count | ||
} | ||
stats { | ||
min | ||
max | ||
} | ||
} | ||
} | ||
`; | ||
exports.GetDrozChatChannelDocument = ` | ||
@@ -371,15 +414,8 @@ query getDrozChatChannel($id: ID!) { | ||
facets { | ||
name | ||
values { | ||
value | ||
count | ||
} | ||
stats { | ||
min | ||
max | ||
} | ||
...facets | ||
} | ||
} | ||
} | ||
${exports.TicketFragmentDoc}`; | ||
${exports.TicketFragmentDoc} | ||
${exports.FacetsFragmentDoc}`; | ||
exports.CreateTicketDocument = ` | ||
@@ -386,0 +422,0 @@ mutation createTicket($input: CreateTicketInput!) { |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = void 0; | ||
exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = void 0; | ||
var AppInstanceStatus; | ||
@@ -318,2 +318,9 @@ (function (AppInstanceStatus) { | ||
${exports.AgentFragmentDoc}`; | ||
exports.GetAgentsDocument = ` | ||
query getAgents($ids: [ID!]!) { | ||
getAgents(ids: $ids) { | ||
...agent | ||
} | ||
} | ||
${exports.AgentFragmentDoc}`; | ||
exports.ListAgentsDocument = ` | ||
@@ -827,2 +834,5 @@ query listAgents($next: Base64) { | ||
}, | ||
getAgents(variables, options) { | ||
return requester(exports.GetAgentsDocument, variables, options); | ||
}, | ||
listAgents(variables, options) { | ||
@@ -829,0 +839,0 @@ return requester(exports.ListAgentsDocument, variables, options); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
565837
12599