2020-07-21 13:20:51 +00:00
|
|
|
/**
|
|
|
|
* This module was automatically generated by `ts-interface-builder`
|
|
|
|
*/
|
|
|
|
import * as t from "ts-interface-checker";
|
|
|
|
// tslint:disable:object-literal-key-quotes
|
|
|
|
|
2023-11-30 19:08:46 +00:00
|
|
|
export const ClientJsonMemoryLimits = t.iface([], {
|
|
|
|
"totalSize": t.opt("number"),
|
|
|
|
"jsonResponseReservation": t.opt("number"),
|
|
|
|
"maxReservationSize": t.opt(t.union("number", "null")),
|
|
|
|
});
|
|
|
|
|
2020-07-21 13:20:51 +00:00
|
|
|
export const ITestingHooks = t.iface([], {
|
|
|
|
"getOwnPort": t.func("number"),
|
|
|
|
"getPort": t.func("number"),
|
2021-04-26 21:54:09 +00:00
|
|
|
"setLoginSessionProfile": t.func("void", t.param("gristSidCookie", "string"), t.param("profile", t.union("UserProfile", "null")), t.param("org", "string", true)),
|
2020-07-21 13:20:51 +00:00
|
|
|
"setServerVersion": t.func("void", t.param("version", t.union("string", "null"))),
|
|
|
|
"disconnectClients": t.func("void"),
|
|
|
|
"commShutdown": t.func("void"),
|
|
|
|
"commRestart": t.func("void"),
|
2022-06-04 04:12:30 +00:00
|
|
|
"commSetClientPersistence": t.func("number", t.param("ttlMs", "number")),
|
2023-11-30 19:08:46 +00:00
|
|
|
"commSetClientJsonMemoryLimits": t.func("ClientJsonMemoryLimits", t.param("limits", "ClientJsonMemoryLimits")),
|
2020-07-21 13:20:51 +00:00
|
|
|
"closeDocs": t.func("void"),
|
2021-04-26 21:54:09 +00:00
|
|
|
"setDocWorkerActivation": t.func("void", t.param("workerId", "string"), t.param("active", t.union(t.lit('active'), t.lit('inactive'), t.lit('crash')))),
|
2020-07-21 13:20:51 +00:00
|
|
|
"flushAuthorizerCache": t.func("void"),
|
2022-03-07 14:27:43 +00:00
|
|
|
"flushDocs": t.func("void"),
|
2020-07-21 13:20:51 +00:00
|
|
|
"getDocClientCounts": t.func(t.array(t.tuple("string", "number"))),
|
|
|
|
"setActiveDocTimeout": t.func("number", t.param("seconds", "number")),
|
2021-10-01 14:24:23 +00:00
|
|
|
"setDiscourseConnectVar": t.func(t.union("string", "null"), t.param("varName", "string"), t.param("value", t.union("string", "null"))),
|
2021-11-26 10:43:55 +00:00
|
|
|
"setWidgetRepositoryUrl": t.func("void", t.param("url", "string")),
|
2023-08-07 14:28:17 +00:00
|
|
|
"getMemoryUsage": t.func("object"),
|
2023-11-30 19:08:46 +00:00
|
|
|
"tickleUnhandledErrors": t.func("void", t.param("errType", "string")),
|
2020-07-21 13:20:51 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
const exportedTypeSuite: t.ITypeSuite = {
|
2023-11-30 19:08:46 +00:00
|
|
|
ClientJsonMemoryLimits,
|
2020-07-21 13:20:51 +00:00
|
|
|
ITestingHooks,
|
|
|
|
};
|
|
|
|
export default exportedTypeSuite;
|