mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
[CORL-149] Persisted Queries (#2445)
* feat: enable persisted queries on the client * fix: use `id` inside websocket message * feat: initial server support for PQ * feat: deeper server support * feat: abstracted persisted query replacing logic
This commit is contained in:
@@ -295,4 +295,17 @@ export enum ERROR_CODES {
|
||||
* someone now allowed when it is disabled on the tenant level.
|
||||
*/
|
||||
LIVE_UPDATES_DISABLED = "LIVE_UPDATES_DISABLED",
|
||||
|
||||
/**
|
||||
* PERSISTED_QUERY_NOT_FOUND is returned when a query is executed specifying a
|
||||
* persisted query that can not be found.
|
||||
*/
|
||||
PERSISTED_QUERY_NOT_FOUND = "PERSISTED_QUERY_NOT_FOUND",
|
||||
|
||||
/**
|
||||
* RAW_QUERY_NOT_AUTHORIZED is returned when a query is executed that is not a
|
||||
* persisted query when the server has configured such queries are required by
|
||||
* all non-admin users.
|
||||
*/
|
||||
RAW_QUERY_NOT_AUTHORIZED = "RAW_QUERY_NOT_AUTHORIZED",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user