chat8 ops

API de Chat

In-app messaging between accounts and threaded conversations.

Consultas

CONSULTA

messages

#

Argumentos

  • threadId!
  • limitInt!

    Por defecto

    50
  • offsetInt!

    Por defecto

    0
Devuelve[!]!
CONSULTA

myChatThread

#

One conversation of mine, by id. myChatThreads was the only place a non-admin could read a thread's lock state, topic and counterparties, so a client opening a single conversation had to page the list and search it — both service apps scanned the first 100 rows. Past that the header fell back to a role name and the lock stopped being read, leaving the composer up on a closed thread until the send was refused. None when the caller is not a participant, which is the same answer as "no such thread" on purpose: a thread's existence is not something to confirm to someone who is not in it.

Argumentos

  • threadId!
Devuelve
CONSULTA

myChatThreads

#

My conversations, newest activity first. Three queries regardless of page size: my participant rows, the threads they point at, and the other participants of those threads.

Argumentos

  • activeOnlyBoolean!

    Por defecto

    true
  • limitInt!

    Por defecto

    50
  • offsetInt!

    Por defecto

    0
Devuelve[!]!
CONSULTA

myThreads

#

Argumentos

  • activeOnlyBoolean!

    Por defecto

    true
  • limitInt!

    Por defecto

    50
  • offsetInt!

    Por defecto

    0
Devuelve[!]!
CONSULTA

orderChatMessages

#

Fetch all chat messages for a specific order. # Authorization Requires TenantAdmin or PlatformAdmin role. # Arguments * order_id - The order ID to fetch messages for # Returns List of chat messages associated with the order's chat thread. Returns empty list if no chat thread exists for the order.

Argumentos

  • orderId!
Devuelve[!]!

Mutaciones

MUTACIÓN

createThread

#

Argumentos

  • input!
Devuelve!
MUTACIÓN

markAsRead

#

Argumentos

  • input!
DevuelveBoolean!
MUTACIÓN

sendMessage

#

Argumentos

  • input!
Devuelve!