You need to know this about GraphQL Terminals and the related “Terminal” queries and mutations (ie. “Terminal Tickets”):
registerTerminal() is a reference to a Terminal (via terminalId) that is “locked” to the User who registered the Terminal (the Terminal Name is arbitrary), and that User can see only Terminal Tickets (via getTerminalTickets()) which are “owned” by that GQL Terminal User, even if the User is an Admin.
So if a User named “John” on a SambaPOS Terminal creates a Ticket, then the User named “Mary” on a GQL Terminal will not be able to see that Ticket (via getTerminalTickets).
By the same token, if a User named “Frank” on a GQL Terminal creates a Ticket, then the User named “Mary” on a GQL Terminal will not be able to see that Ticket (via getTerminalTickets). And “Frank” will not be able to see the Tickets owned by John, nor Mary.
However, the GQL query getTickets() will return ALL Tickets belonging to ANY user. And because of that, User “Mary” on a GQL Terminal, for example, will be able to “see” those Tickets (if presented in a list), and “Mary” can consequently open that Ticket via the Ticket Id.
The Ticket Lister in SambaPOS will generally show ALL Tickets, but it may depend on the Role Permission “Can View Other User Tickets”.
The lesson here is that a with a GQL Terminal, the functions related to “Terminal” (ie. any query or mutation containing the word “Terminal”) are not really related to a Terminal per-say, but rather the USER that invokes the Terminal functions. The word “Terminal” in GQL in this regard is a bit of a misnomer, and should probably have contained the word “User” instead, for example:
registerTerminal() // should be registerUser()
unregisterTerminal() // should be unregisterUser()
getTerminalTickets() // should be getUserTickets()
getTerminalTicket() // should be getUserTicket()
createTerminalTicket() // should be createUserTicket()
loadTerminalTicket() // should be loadUserTicket()
...
etc... // any query or mutation containing the word "Terminal" could/should be replaced by the word "User"