From 3840d75e2a343506bf547aebce4df553c4a68603 Mon Sep 17 00:00:00 2001 From: Trevor Martin Date: Thu, 1 Apr 2021 15:06:42 -0400 Subject: [PATCH 1/5] lowercase sql table name --- data/migrations/20210401182811_word-update.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 data/migrations/20210401182811_word-update.js diff --git a/data/migrations/20210401182811_word-update.js b/data/migrations/20210401182811_word-update.js new file mode 100644 index 00000000..6d66edce --- /dev/null +++ b/data/migrations/20210401182811_word-update.js @@ -0,0 +1,9 @@ +// rename the "Played" table to "Score" + +exports.up = function (knex) { + return knex.schema.renameTable("Words", "words"); +}; + +exports.down = function (knex) { + return knex.schema.renameTable("words", "Words"); +}; From cb70322f0479406f620376e359c2528d4705b194 Mon Sep 17 00:00:00 2001 From: Trevor Martin Date: Thu, 1 Apr 2021 15:08:16 -0400 Subject: [PATCH 2/5] add columns --- .../migrations/20210401182916_word-upgrade.js | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 data/migrations/20210401182916_word-upgrade.js diff --git a/data/migrations/20210401182916_word-upgrade.js b/data/migrations/20210401182916_word-upgrade.js new file mode 100644 index 00000000..04650d0c --- /dev/null +++ b/data/migrations/20210401182916_word-upgrade.js @@ -0,0 +1,23 @@ +const tableName = "words"; +// alter score table to include timestamps & points +exports.up = async function (knex) { + await knex.schema.alterTable(tableName, function (tbl) { + // add timestamps + tbl.timestamps(false, true); + tbl.string("format", 255).defaultTo("word"); + }); + + await knex.raw(` + CREATE TRIGGER update_timestamp + BEFORE UPDATE + ON ${tableName} + FOR EACH ROW + EXECUTE PROCEDURE update_timestamp();`); +}; + +exports.down = async function (knex) { + await knex.schema.alterTable(tableName, function (tbl) { + tbl.dropTimestamps(); + tbl.dropColumns(["format"]); + }); +}; From 1a0457285271d76a421b4651498ff3a4a5662048 Mon Sep 17 00:00:00 2001 From: Trevor Martin Date: Thu, 1 Apr 2021 15:09:44 -0400 Subject: [PATCH 3/5] update words table --- data/seeds/01-words.js | 2 +- data/seeds/03-big_chonk_list.js | 2 +- .../migrations/20210401182811_word-update.js | 9 ++++++++ .../migrations/20210401182916_word-upgrade.js | 23 +++++++++++++++++++ 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 dist/data/migrations/20210401182811_word-update.js create mode 100644 dist/data/migrations/20210401182916_word-upgrade.js diff --git a/data/seeds/01-words.js b/data/seeds/01-words.js index 29817bf5..220eb439 100644 --- a/data/seeds/01-words.js +++ b/data/seeds/01-words.js @@ -17,5 +17,5 @@ const words = [ }; }); exports.seed = function (knex) { - return knex("Words").insert(words); + return knex("words").insert(words); }; \ No newline at end of file diff --git a/data/seeds/03-big_chonk_list.js b/data/seeds/03-big_chonk_list.js index 25c25476..8e302bc6 100644 --- a/data/seeds/03-big_chonk_list.js +++ b/data/seeds/03-big_chonk_list.js @@ -24,7 +24,7 @@ exports.seed = async function (knex) { total -= chunk.length; start += chunk.length; try { - await knex("Words").insert(chunk); + await knex("words").insert(chunk); inserts += 1; } catch (err) { // console.log(err) diff --git a/dist/data/migrations/20210401182811_word-update.js b/dist/data/migrations/20210401182811_word-update.js new file mode 100644 index 00000000..6d66edce --- /dev/null +++ b/dist/data/migrations/20210401182811_word-update.js @@ -0,0 +1,9 @@ +// rename the "Played" table to "Score" + +exports.up = function (knex) { + return knex.schema.renameTable("Words", "words"); +}; + +exports.down = function (knex) { + return knex.schema.renameTable("words", "Words"); +}; diff --git a/dist/data/migrations/20210401182916_word-upgrade.js b/dist/data/migrations/20210401182916_word-upgrade.js new file mode 100644 index 00000000..04650d0c --- /dev/null +++ b/dist/data/migrations/20210401182916_word-upgrade.js @@ -0,0 +1,23 @@ +const tableName = "words"; +// alter score table to include timestamps & points +exports.up = async function (knex) { + await knex.schema.alterTable(tableName, function (tbl) { + // add timestamps + tbl.timestamps(false, true); + tbl.string("format", 255).defaultTo("word"); + }); + + await knex.raw(` + CREATE TRIGGER update_timestamp + BEFORE UPDATE + ON ${tableName} + FOR EACH ROW + EXECUTE PROCEDURE update_timestamp();`); +}; + +exports.down = async function (knex) { + await knex.schema.alterTable(tableName, function (tbl) { + tbl.dropTimestamps(); + tbl.dropColumns(["format"]); + }); +}; From bee02e0e567d1d3b99fef07960336bdb30e04436 Mon Sep 17 00:00:00 2001 From: Trevor Martin Date: Thu, 1 Apr 2021 15:11:01 -0400 Subject: [PATCH 4/5] lowercase table name --- src/api/admin/model.ts | 4 ++-- src/api/game/model.ts | 4 ++-- src/api/words/model.ts | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/api/admin/model.ts b/src/api/admin/model.ts index 6b89fde6..a16398f3 100644 --- a/src/api/admin/model.ts +++ b/src/api/admin/model.ts @@ -30,7 +30,7 @@ async function getRound(roundId: number) { // I get around (get around round round I get around) const round: any = await db("Rounds").where({ id: roundId }).first(); // From town to town (get around round round I get around) - const word: any = await db("Words").where({ id: round.word_id }).first(); + const word: any = await db("words").where({ id: round.word_id }).first(); // I'm a real cool head (get around round round I get around) // I'm makin' real good bread (get around round round I get around) const choices: any = await db("host-choices") @@ -49,7 +49,7 @@ async function getRound(roundId: number) { async function getWordDetails(word_id: number) { //get word - const word: any = await db("Words").where({ id: word_id }); + const word: any = await db("words").where({ id: word_id }); //get rounds with word const rounds: Array = await db("Rounds").where({ word_id }); //get definitions for each round diff --git a/src/api/game/model.ts b/src/api/game/model.ts index 6bf4b371..cf2a77ab 100644 --- a/src/api/game/model.ts +++ b/src/api/game/model.ts @@ -44,7 +44,7 @@ async function leaderBoard(game_id: string) { .join("definitions", "definitions.id", "score.top_definition_id") .join("Player", "Player.id", "definitions.player_id") .join("Rounds", "Rounds.id", "definitions.round_id") - .join("Words", "Words.id", "Rounds.word_id") + .join("words", "words.id", "Rounds.word_id") .select( "Player.id as player_id", "Player.name as name", @@ -52,7 +52,7 @@ async function leaderBoard(game_id: string) { "score.top_definition_id as top_definition_id", "definitions.definition as top_definition", "definitions.score as top_definition_score", - "Words.word as word" + "words.word as word" ) .whereNot({ top_definition_id: null }) .where("score.game_id", game_id); diff --git a/src/api/words/model.ts b/src/api/words/model.ts index 580f6e6b..ecd866d5 100644 --- a/src/api/words/model.ts +++ b/src/api/words/model.ts @@ -3,35 +3,35 @@ import db from "../../dbConfig"; export default { getByName, getById, add, getUnmoderatedWord, getApprovedWords, update, getUnmoderatedWordIds, getApprovedWordIds }; function getById(id: number) { - return db("Words").where({ id }).first(); + return db("words").where({ id }).first(); } function getByName(name: string) { - return db("Words").where({ word:name }).first(); + return db("words").where({ word:name }).first(); } function add(word: object) { - return db("Words").insert(word).returning("id"); + return db("words").insert(word).returning("id"); } function getUnmoderatedWord() { - return db("Words").where({ moderated: false }).first(); + return db("words").where({ moderated: false }).first(); } function getApprovedWords() { - return db("Words").where({ moderated: true, approved: true }); + return db("words").where({ moderated: true, approved: true }); } function getApprovedWordIds() { - return db("Words").select("id").where({ moderated: true, approved: true }) + return db("words").select("id").where({ moderated: true, approved: true }) } function getUnmoderatedWordIds() { - return db("Words").select("id").where({ moderated: false, approved: false }) + return db("words").select("id").where({ moderated: false, approved: false }) } async function update(id: number, changes: object) { - await db("Words") + await db("words") .where({ id }) .update(changes); return getById(id); From ef863bf23d60e5af566ed5d810d698692858e657 Mon Sep 17 00:00:00 2001 From: Trevor Martin Date: Thu, 1 Apr 2021 15:17:45 -0400 Subject: [PATCH 5/5] update dist --- dist/data/seeds/01-words.js | 2 +- dist/data/seeds/03-big_chonk_list.js | 2 +- dist/src/api/admin/model.js | 4 +- dist/src/api/game/model.js | 4 +- dist/src/api/words/model.js | 16 ++++---- ...6db89.b65ab165.js => 0146db89.517e0dc4.js} | 2 +- ...8c8f4.3e24b589.js => 0cb8c8f4.79eba1b4.js} | 2 +- ...16770.f9772302.js => 0f116770.5eb9429f.js} | 2 +- ...80e53.0cb872d6.js => 10880e53.811de6c8.js} | 2 +- ...4ae38.d57a7910.js => 1964ae38.0c0f47bc.js} | 2 +- ...73240.853ca105.js => 21f73240.3d135705.js} | 2 +- ...6359f.e21c72da.js => 31f6359f.499f2fbf.js} | 2 +- ...1dd64.a888649d.js => 3a41dd64.ddd7a1de.js} | 2 +- ...abbfe.f9331fb1.js => 3e7abbfe.6023ca8f.js} | 2 +- dist/src/docs/404.html | 8 ++-- ...7721a.2a443df4.js => 50e7721a.0e215f8e.js} | 2 +- ...f92e4.9f485c17.js => 529f92e4.0bdf2e19.js} | 2 +- ...c8413.9d015166.js => 533c8413.8e105cb5.js} | 2 +- ...cd87b.3b1baa39.js => 5aacd87b.cd4d6ddf.js} | 2 +- ...49d3e.f4470620.js => 5b049d3e.dc41c5d2.js} | 2 +- ...553fe.d86d8998.js => 603553fe.ffb00cc5.js} | 2 +- dist/src/docs/786cc507.c83f6238.js | 1 - dist/src/docs/786cc507.cdec1f0a.js | 1 + ...ad63b.47171b3e.js => 8abad63b.27030d09.js} | 2 +- dist/src/docs/8cf6cc7e.0a60e67c.js | 1 - dist/src/docs/8cf6cc7e.1ab78431.js | 1 + dist/src/docs/93974a4f.d2d351c6.js | 1 + dist/src/docs/93974a4f.e5d6098a.js | 1 - ...3277c.caf0d69b.js => 9b03277c.fde33acb.js} | 2 +- ...a0c8d.ef77513c.js => a91a0c8d.62dcb605.js} | 2 +- dist/src/docs/blog/Welcome/index.html | 18 ++++----- dist/src/docs/blog/aha/index.html | 18 ++++----- dist/src/docs/blog/dragons/index.html | 18 ++++----- dist/src/docs/blog/index.html | 26 ++++++------ dist/src/docs/blog/simple/index.html | 14 +++---- dist/src/docs/blog/tags/index.html | 14 +++---- dist/src/docs/blog/tags/storysquad/index.html | 26 ++++++------ .../docs/blog/tags/tricktionary/index.html | 26 ++++++------ dist/src/docs/blog/trex/index.html | 14 +++---- ...f631f.56d8849a.js => dc7f631f.afbbac50.js} | 2 +- dist/src/docs/dee707fb.2e6c4ad1.js | 1 + dist/src/docs/dee707fb.8852d0f9.js | 1 - dist/src/docs/docs/api/index.html | 8 ++-- dist/src/docs/docs/api/modules/index.html | 8 ++-- dist/src/docs/docs/database/index.html | 8 ++-- dist/src/docs/docs/dataflow/index.html | 8 ++-- dist/src/docs/docs/doc1/index.html | 8 ++-- dist/src/docs/docs/doc2/index.html | 8 ++-- dist/src/docs/docs/doc3/index.html | 8 ++-- dist/src/docs/docs/eb1/index.html | 8 ++-- dist/src/docs/docs/index.html | 8 ++-- dist/src/docs/docs/mdx/index.html | 8 ++-- dist/src/docs/docs/sockets/index.html | 8 ++-- .../docs/tricktionary/EB-README/index.html | 8 ++-- .../docs/docs/tricktionary/README/index.html | 8 ++-- .../interfaces/crontab.crontask/index.html | 14 +++---- .../crontab.crontaskindex/index.html | 8 ++-- .../tricktionary/modules/common/index.html | 14 +++---- .../tricktionary/modules/crontab/index.html | 14 +++---- .../modules/handledisconnection/index.html | 14 +++---- .../modules/handleemojismash/index.html | 14 +++---- .../modules/handleerrormessage/index.html | 14 +++---- .../modules/handlegetreactions/index.html | 14 +++---- .../modules/handleguess/index.html | 14 +++---- .../modules/handlelobbycreate/index.html | 14 +++---- .../modules/handlelobbyjoin/index.html | 14 +++---- .../modules/handlelobbyleave/index.html | 14 +++---- .../modules/handlemessagehost/index.html | 14 +++---- .../modules/handlemessageplayer/index.html | 14 +++---- .../modules/handlenewplayer/index.html | 14 +++---- .../modules/handleplayagain/index.html | 14 +++---- .../modules/handleremotepaint/index.html | 14 +++---- .../modules/handlereturningplayer/index.html | 14 +++---- .../modules/handlerevealresults/index.html | 14 +++---- .../modules/handlesetfinale/index.html | 14 +++---- .../modules/handlesetnewhost/index.html | 14 +++---- .../modules/handlesetphase/index.html | 14 +++---- .../modules/handlestartgame/index.html | 14 +++---- .../modules/handlesubmitdefinition/index.html | 14 +++---- .../modules/handletimesync/index.html | 14 +++---- .../modules/handleupdateusername/index.html | 14 +++---- .../docs/docs/tricktionary/modules/index.html | 8 ++-- .../docs/tricktionary/src-api-auth/index.html | 8 ++-- .../tricktionary/src-api-clever/index.html | 8 ++-- .../src-api-definitionReactions/index.html | 8 ++-- .../src-api-definitions/index.html | 8 ++-- .../tricktionary/src-api-player/index.html | 8 ++-- .../tricktionary/src-api-reactions/index.html | 8 ++-- .../tricktionary/src-api-rounds/index.html | 8 ++-- .../tricktionary/src-api-score/index.html | 8 ++-- .../tricktionary/src-api-smash/index.html | 8 ++-- .../src-api-userRounds/index.html | 8 ++-- .../tricktionary/src-api-votes/index.html | 8 ++-- .../tricktionary/src-api-words/index.html | 8 ++-- ...e70c5.aa9d2969.js => e5de70c5.0dd0b1cc.js} | 2 +- ...359aa.492f0f1d.js => e76359aa.b63a8722.js} | 2 +- ...3b75a.e790d11a.js => ea23b75a.60748c3b.js} | 2 +- dist/src/docs/ea767194.847d2813.js | 1 - dist/src/docs/ea767194.dfd15a03.js | 1 + ...6f619.33f0e8e6.js => edc6f619.3dec05d1.js} | 2 +- ...4990d.b11b11f9.js => f1d4990d.c0ed2fc3.js} | 2 +- ...3d367.5cb1c6a0.js => f643d367.05dafe63.js} | 2 +- ...e4a43.6f759959.js => fd2e4a43.4f7dd4f7.js} | 2 +- ...eaf1c.26e45f23.js => feceaf1c.7ea413ff.js} | 2 +- dist/src/docs/index.html | 8 ++-- .../{main.ebd5f1e7.js => main.2c6e354b.js} | 4 +- ...CENSE.txt => main.2c6e354b.js.LICENSE.txt} | 0 ...n.4975b85b.js => runtime~main.7fdb0735.js} | 2 +- .../interfaces/crontab.crontask.md | 14 +++---- trex/docs/tricktionary/modules/common.md | 40 +++++++++---------- trex/docs/tricktionary/modules/crontab.md | 12 +++--- .../modules/handledisconnection.md | 4 +- .../tricktionary/modules/handleemojismash.md | 2 +- .../modules/handleerrormessage.md | 2 +- .../modules/handlegetreactions.md | 2 +- trex/docs/tricktionary/modules/handleguess.md | 2 +- .../tricktionary/modules/handlelobbycreate.md | 2 +- .../tricktionary/modules/handlelobbyjoin.md | 2 +- .../tricktionary/modules/handlelobbyleave.md | 2 +- .../tricktionary/modules/handlemessagehost.md | 2 +- .../modules/handlemessageplayer.md | 2 +- .../tricktionary/modules/handlenewplayer.md | 2 +- .../tricktionary/modules/handleplayagain.md | 2 +- .../tricktionary/modules/handleremotepaint.md | 2 +- .../modules/handlereturningplayer.md | 2 +- .../modules/handlerevealresults.md | 2 +- .../tricktionary/modules/handlesetfinale.md | 2 +- .../tricktionary/modules/handlesetnewhost.md | 2 +- .../tricktionary/modules/handlesetphase.md | 2 +- .../tricktionary/modules/handlestartgame.md | 2 +- .../modules/handlesubmitdefinition.md | 2 +- .../tricktionary/modules/handletimesync.md | 2 +- .../modules/handleupdateusername.md | 2 +- 133 files changed, 483 insertions(+), 483 deletions(-) rename dist/src/docs/{0146db89.b65ab165.js => 0146db89.517e0dc4.js} (99%) rename dist/src/docs/{0cb8c8f4.3e24b589.js => 0cb8c8f4.79eba1b4.js} (99%) rename dist/src/docs/{0f116770.f9772302.js => 0f116770.5eb9429f.js} (99%) rename dist/src/docs/{10880e53.0cb872d6.js => 10880e53.811de6c8.js} (86%) rename dist/src/docs/{1964ae38.d57a7910.js => 1964ae38.0c0f47bc.js} (61%) rename dist/src/docs/{21f73240.853ca105.js => 21f73240.3d135705.js} (70%) rename dist/src/docs/{31f6359f.e21c72da.js => 31f6359f.499f2fbf.js} (99%) rename dist/src/docs/{3a41dd64.a888649d.js => 3a41dd64.ddd7a1de.js} (98%) rename dist/src/docs/{3e7abbfe.f9331fb1.js => 3e7abbfe.6023ca8f.js} (98%) rename dist/src/docs/{50e7721a.2a443df4.js => 50e7721a.0e215f8e.js} (99%) rename dist/src/docs/{529f92e4.9f485c17.js => 529f92e4.0bdf2e19.js} (99%) rename dist/src/docs/{533c8413.9d015166.js => 533c8413.8e105cb5.js} (61%) rename dist/src/docs/{5aacd87b.3b1baa39.js => 5aacd87b.cd4d6ddf.js} (99%) rename dist/src/docs/{5b049d3e.f4470620.js => 5b049d3e.dc41c5d2.js} (81%) rename dist/src/docs/{603553fe.d86d8998.js => 603553fe.ffb00cc5.js} (99%) delete mode 100644 dist/src/docs/786cc507.c83f6238.js create mode 100644 dist/src/docs/786cc507.cdec1f0a.js rename dist/src/docs/{8abad63b.47171b3e.js => 8abad63b.27030d09.js} (84%) delete mode 100644 dist/src/docs/8cf6cc7e.0a60e67c.js create mode 100644 dist/src/docs/8cf6cc7e.1ab78431.js create mode 100644 dist/src/docs/93974a4f.d2d351c6.js delete mode 100644 dist/src/docs/93974a4f.e5d6098a.js rename dist/src/docs/{9b03277c.caf0d69b.js => 9b03277c.fde33acb.js} (98%) rename dist/src/docs/{a91a0c8d.ef77513c.js => a91a0c8d.62dcb605.js} (97%) rename dist/src/docs/{dc7f631f.56d8849a.js => dc7f631f.afbbac50.js} (98%) create mode 100644 dist/src/docs/dee707fb.2e6c4ad1.js delete mode 100644 dist/src/docs/dee707fb.8852d0f9.js rename dist/src/docs/{e5de70c5.aa9d2969.js => e5de70c5.0dd0b1cc.js} (93%) rename dist/src/docs/{e76359aa.492f0f1d.js => e76359aa.b63a8722.js} (98%) rename dist/src/docs/{ea23b75a.e790d11a.js => ea23b75a.60748c3b.js} (79%) delete mode 100644 dist/src/docs/ea767194.847d2813.js create mode 100644 dist/src/docs/ea767194.dfd15a03.js rename dist/src/docs/{edc6f619.33f0e8e6.js => edc6f619.3dec05d1.js} (97%) rename dist/src/docs/{f1d4990d.b11b11f9.js => f1d4990d.c0ed2fc3.js} (98%) rename dist/src/docs/{f643d367.5cb1c6a0.js => f643d367.05dafe63.js} (99%) rename dist/src/docs/{fd2e4a43.6f759959.js => fd2e4a43.4f7dd4f7.js} (86%) rename dist/src/docs/{feceaf1c.26e45f23.js => feceaf1c.7ea413ff.js} (99%) rename dist/src/docs/{main.ebd5f1e7.js => main.2c6e354b.js} (99%) rename dist/src/docs/{main.ebd5f1e7.js.LICENSE.txt => main.2c6e354b.js.LICENSE.txt} (100%) rename dist/src/docs/{runtime~main.4975b85b.js => runtime~main.7fdb0735.js} (51%) diff --git a/dist/data/seeds/01-words.js b/dist/data/seeds/01-words.js index 29817bf5..220eb439 100644 --- a/dist/data/seeds/01-words.js +++ b/dist/data/seeds/01-words.js @@ -17,5 +17,5 @@ const words = [ }; }); exports.seed = function (knex) { - return knex("Words").insert(words); + return knex("words").insert(words); }; \ No newline at end of file diff --git a/dist/data/seeds/03-big_chonk_list.js b/dist/data/seeds/03-big_chonk_list.js index 25c25476..8e302bc6 100644 --- a/dist/data/seeds/03-big_chonk_list.js +++ b/dist/data/seeds/03-big_chonk_list.js @@ -24,7 +24,7 @@ exports.seed = async function (knex) { total -= chunk.length; start += chunk.length; try { - await knex("Words").insert(chunk); + await knex("words").insert(chunk); inserts += 1; } catch (err) { // console.log(err) diff --git a/dist/src/api/admin/model.js b/dist/src/api/admin/model.js index 2952c50d..ec235636 100644 --- a/dist/src/api/admin/model.js +++ b/dist/src/api/admin/model.js @@ -42,7 +42,7 @@ function getRound(roundId) { // I get around (get around round round I get around) const round = yield dbConfig_1.default("Rounds").where({ id: roundId }).first(); // From town to town (get around round round I get around) - const word = yield dbConfig_1.default("Words").where({ id: round.word_id }).first(); + const word = yield dbConfig_1.default("words").where({ id: round.word_id }).first(); // I'm a real cool head (get around round round I get around) // I'm makin' real good bread (get around round round I get around) const choices = yield dbConfig_1.default("host-choices") @@ -62,7 +62,7 @@ function getRound(roundId) { function getWordDetails(word_id) { return __awaiter(this, void 0, void 0, function* () { //get word - const word = yield dbConfig_1.default("Words").where({ id: word_id }); + const word = yield dbConfig_1.default("words").where({ id: word_id }); //get rounds with word const rounds = yield dbConfig_1.default("Rounds").where({ word_id }); //get definitions for each round diff --git a/dist/src/api/game/model.js b/dist/src/api/game/model.js index aab72c41..320d071a 100644 --- a/dist/src/api/game/model.js +++ b/dist/src/api/game/model.js @@ -64,8 +64,8 @@ function leaderBoard(game_id) { .join("definitions", "definitions.id", "score.top_definition_id") .join("Player", "Player.id", "definitions.player_id") .join("Rounds", "Rounds.id", "definitions.round_id") - .join("Words", "Words.id", "Rounds.word_id") - .select("Player.id as player_id", "Player.name as name", "score.points as score", "score.top_definition_id as top_definition_id", "definitions.definition as top_definition", "definitions.score as top_definition_score", "Words.word as word") + .join("words", "words.id", "Rounds.word_id") + .select("Player.id as player_id", "Player.name as name", "score.points as score", "score.top_definition_id as top_definition_id", "definitions.definition as top_definition", "definitions.score as top_definition_score", "words.word as word") .whereNot({ top_definition_id: null }) .where("score.game_id", game_id); } diff --git a/dist/src/api/words/model.js b/dist/src/api/words/model.js index 3ca759ca..483a3785 100644 --- a/dist/src/api/words/model.js +++ b/dist/src/api/words/model.js @@ -15,29 +15,29 @@ Object.defineProperty(exports, "__esModule", { value: true }); const dbConfig_1 = __importDefault(require("../../dbConfig")); exports.default = { getByName, getById, add, getUnmoderatedWord, getApprovedWords, update, getUnmoderatedWordIds, getApprovedWordIds }; function getById(id) { - return dbConfig_1.default("Words").where({ id }).first(); + return dbConfig_1.default("words").where({ id }).first(); } function getByName(name) { - return dbConfig_1.default("Words").where({ word: name }).first(); + return dbConfig_1.default("words").where({ word: name }).first(); } function add(word) { - return dbConfig_1.default("Words").insert(word).returning("id"); + return dbConfig_1.default("words").insert(word).returning("id"); } function getUnmoderatedWord() { - return dbConfig_1.default("Words").where({ moderated: false }).first(); + return dbConfig_1.default("words").where({ moderated: false }).first(); } function getApprovedWords() { - return dbConfig_1.default("Words").where({ moderated: true, approved: true }); + return dbConfig_1.default("words").where({ moderated: true, approved: true }); } function getApprovedWordIds() { - return dbConfig_1.default("Words").select("id").where({ moderated: true, approved: true }); + return dbConfig_1.default("words").select("id").where({ moderated: true, approved: true }); } function getUnmoderatedWordIds() { - return dbConfig_1.default("Words").select("id").where({ moderated: false, approved: false }); + return dbConfig_1.default("words").select("id").where({ moderated: false, approved: false }); } function update(id, changes) { return __awaiter(this, void 0, void 0, function* () { - yield dbConfig_1.default("Words") + yield dbConfig_1.default("words") .where({ id }) .update(changes); return getById(id); diff --git a/dist/src/docs/0146db89.b65ab165.js b/dist/src/docs/0146db89.517e0dc4.js similarity index 99% rename from dist/src/docs/0146db89.b65ab165.js rename to dist/src/docs/0146db89.517e0dc4.js index 94daf241..e4e3e8d5 100644 --- a/dist/src/docs/0146db89.b65ab165.js +++ b/dist/src/docs/0146db89.517e0dc4.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var r=n(0),a=n.n(r);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),s=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=s(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,b=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),p=s(n),u=r,m=p["".concat(c,".").concat(u)]||p[u]||d[u]||b;return n?a.a.createElement(m,o(o({ref:t},l),{},{components:n})):a.a.createElement(m,o({ref:t},l))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var b=n.length,c=new Array(b);c[0]=u;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:r,c[1]=o;for(var l=2;l"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"guesses")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"),"[]")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleGuess.ts#L5"},"handleGuess.ts:5")))}s.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var r=n(0),a=n.n(r);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),s=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=s(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,b=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),p=s(n),u=r,m=p["".concat(c,".").concat(u)]||p[u]||d[u]||b;return n?a.a.createElement(m,o(o({ref:t},l),{},{components:n})):a.a.createElement(m,o({ref:t},l))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var b=n.length,c=new Array(b);c[0]=u;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:r,c[1]=o;for(var l=2;l"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"guesses")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"),"[]")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleGuess.ts#L5"},"handleGuess.ts:5")))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/0cb8c8f4.3e24b589.js b/dist/src/docs/0cb8c8f4.79eba1b4.js similarity index 99% rename from dist/src/docs/0cb8c8f4.3e24b589.js rename to dist/src/docs/0cb8c8f4.79eba1b4.js index 4ddeb058..fbf67e1d 100644 --- a/dist/src/docs/0cb8c8f4.3e24b589.js +++ b/dist/src/docs/0cb8c8f4.79eba1b4.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,b=e.originalType,c=e.parentName,l=o(e,["components","mdxType","originalType","parentName"]),d=p(n),u=r,s=d["".concat(c,".").concat(u)]||d[u]||m[u]||b;return n?a.a.createElement(s,i(i({ref:t},l),{},{components:n})):a.a.createElement(s,i({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var b=n.length,c=new Array(b);c[0]=u;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i.mdxType="string"==typeof e?e:r,c[1]=i;for(var l=2;l"),Object(b.b)("p",null,"Determine whether or not the player should auto re-join an existing game."),Object(b.b)("p",null,"In the case of a rejoin; It calls ",Object(b.b)("strong",{parentName:"p"},"handleLobbyJoin"),"\n",Object(b.b)("em",{parentName:"p"},"after marking the old player with the incoming socket.id")),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"token")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")," ","|"," ",Object(b.b)("em",{parentName:"td"},"undefined")),Object(b.b)("td",{parentName:"tr",align:"left"},"JWT")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"game-state")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleReturningPlayer.ts#L17"},"handleReturningPlayer.ts:17")))}p.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,b=e.originalType,c=e.parentName,l=o(e,["components","mdxType","originalType","parentName"]),d=p(n),u=r,s=d["".concat(c,".").concat(u)]||d[u]||m[u]||b;return n?a.a.createElement(s,i(i({ref:t},l),{},{components:n})):a.a.createElement(s,i({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var b=n.length,c=new Array(b);c[0]=u;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i.mdxType="string"==typeof e?e:r,c[1]=i;for(var l=2;l"),Object(b.b)("p",null,"Determine whether or not the player should auto re-join an existing game."),Object(b.b)("p",null,"In the case of a rejoin; It calls ",Object(b.b)("strong",{parentName:"p"},"handleLobbyJoin"),"\n",Object(b.b)("em",{parentName:"p"},"after marking the old player with the incoming socket.id")),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"token")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")," ","|"," ",Object(b.b)("em",{parentName:"td"},"undefined")),Object(b.b)("td",{parentName:"tr",align:"left"},"JWT")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"game-state")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleReturningPlayer.ts#L17"},"handleReturningPlayer.ts:17")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/0f116770.f9772302.js b/dist/src/docs/0f116770.5eb9429f.js similarity index 99% rename from dist/src/docs/0f116770.f9772302.js rename to dist/src/docs/0f116770.5eb9429f.js index a9987ae4..389fac0c 100644 --- a/dist/src/docs/0f116770.f9772302.js +++ b/dist/src/docs/0f116770.5eb9429f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var r=n(0),a=n.n(r);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,b=e.parentName,l=c(e,["components","mdxType","originalType","parentName"]),d=p(n),u=r,f=d["".concat(b,".").concat(u)]||d[u]||m[u]||i;return n?a.a.createElement(f,o(o({ref:t},l),{},{components:n})):a.a.createElement(f,o({ref:t},l))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,b=new Array(i);b[0]=u;var o={};for(var c in t)hasOwnProperty.call(t,c)&&(o[c]=t[c]);o.originalType=e,o.mdxType="string"==typeof e?e:r,b[1]=o;for(var l=2;l"),Object(i.b)("h4",{id:"parameters"},"Parameters:"),Object(i.b)("table",null,Object(i.b)("thead",{parentName:"table"},Object(i.b)("tr",{parentName:"thead"},Object(i.b)("th",{parentName:"tr",align:"left"},"Name"),Object(i.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(i.b)("tbody",{parentName:"table"},Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"io")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"any"))),Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"socket")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"any"))),Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"definition")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"string"))),Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"any"))),Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"lobbies")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"any"))))),Object(i.b)("p",null,Object(i.b)("strong",{parentName:"p"},"Returns:")," ",Object(i.b)("em",{parentName:"p"},"Promise"),""),Object(i.b)("p",null,"Defined in: ",Object(i.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleSubmitDefinition.ts#L5"},"handleSubmitDefinition.ts:5")))}p.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var r=n(0),a=n.n(r);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,b=e.parentName,l=c(e,["components","mdxType","originalType","parentName"]),d=p(n),u=r,f=d["".concat(b,".").concat(u)]||d[u]||m[u]||i;return n?a.a.createElement(f,o(o({ref:t},l),{},{components:n})):a.a.createElement(f,o({ref:t},l))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,b=new Array(i);b[0]=u;var o={};for(var c in t)hasOwnProperty.call(t,c)&&(o[c]=t[c]);o.originalType=e,o.mdxType="string"==typeof e?e:r,b[1]=o;for(var l=2;l"),Object(i.b)("h4",{id:"parameters"},"Parameters:"),Object(i.b)("table",null,Object(i.b)("thead",{parentName:"table"},Object(i.b)("tr",{parentName:"thead"},Object(i.b)("th",{parentName:"tr",align:"left"},"Name"),Object(i.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(i.b)("tbody",{parentName:"table"},Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"io")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"any"))),Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"socket")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"any"))),Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"definition")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"string"))),Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"any"))),Object(i.b)("tr",{parentName:"tbody"},Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("inlineCode",{parentName:"td"},"lobbies")),Object(i.b)("td",{parentName:"tr",align:"left"},Object(i.b)("em",{parentName:"td"},"any"))))),Object(i.b)("p",null,Object(i.b)("strong",{parentName:"p"},"Returns:")," ",Object(i.b)("em",{parentName:"p"},"Promise"),""),Object(i.b)("p",null,"Defined in: ",Object(i.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleSubmitDefinition.ts#L5"},"handleSubmitDefinition.ts:5")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/10880e53.0cb872d6.js b/dist/src/docs/10880e53.811de6c8.js similarity index 86% rename from dist/src/docs/10880e53.0cb872d6.js rename to dist/src/docs/10880e53.811de6c8.js index 0322fc6b..754c1727 100644 --- a/dist/src/docs/10880e53.0cb872d6.js +++ b/dist/src/docs/10880e53.811de6c8.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},s=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,l=b(e,["components","mdxType","originalType","parentName"]),d=p(n),s=r,u=d["".concat(c,".").concat(s)]||d[s]||m[s]||o;return n?a.a.createElement(u,i(i({ref:t},l),{},{components:n})):a.a.createElement(u,i({ref:t},l))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,c=new Array(o);c[0]=s;var i={};for(var b in t)hasOwnProperty.call(t,b)&&(i[b]=t[b]);i.originalType=e,i.mdxType="string"==typeof e?e:r,c[1]=i;for(var l=2;l"),Object(o.b)("p",null,"Allows the host to store and retrieve"),Object(o.b)("p",null,"1) three top scoring users\n2) these users' top-three definitions for the whole game (from any round)"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"key-string")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"memo-object")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleSetFinale.ts#L23"},"handleSetFinale.ts:23")))}p.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):b(b({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},s=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),s=r,u=d["".concat(c,".").concat(s)]||d[s]||m[s]||o;return n?a.a.createElement(u,b(b({ref:t},l),{},{components:n})):a.a.createElement(u,b({ref:t},l))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,c=new Array(o);c[0]=s;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:r,c[1]=b;for(var l=2;l"),Object(o.b)("p",null,"Allows the host to store and retrieve"),Object(o.b)("p",null,"1) three top scoring users\n2) these users' top-three definitions for the whole game (from any round)"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"key-string")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"memo-object")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleSetFinale.ts#L23"},"handleSetFinale.ts:23")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/1964ae38.d57a7910.js b/dist/src/docs/1964ae38.0c0f47bc.js similarity index 61% rename from dist/src/docs/1964ae38.d57a7910.js rename to dist/src/docs/1964ae38.0c0f47bc.js index 2078e174..8d151c80 100644 --- a/dist/src/docs/1964ae38.d57a7910.js +++ b/dist/src/docs/1964ae38.0c0f47bc.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{151:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return y}));var n=r(0),a=r.n(n);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=a.a.createContext({}),l=function(e){var t=a.a.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return a.a.createElement(p.Provider,{value:t},e.children)},b={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},f=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,i=e.parentName,p=u(e,["components","mdxType","originalType","parentName"]),s=l(r),f=n,y=s["".concat(i,".").concat(f)]||s[f]||b[f]||o;return r?a.a.createElement(y,c(c({ref:t},p),{},{components:r})):a.a.createElement(y,c({ref:t},p))}));function y(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,i=new Array(o);i[0]=f;var c={};for(var u in t)hasOwnProperty.call(t,u)&&(c[u]=t[u]);c.originalType=e,c.mdxType="string"==typeof e?e:n,i[1]=c;for(var p=2;p=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=a.a.createContext({}),l=function(e){var t=a.a.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return a.a.createElement(u.Provider,{value:t},e.children)},b={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},f=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=l(r),f=n,m=s["".concat(i,".").concat(f)]||s[f]||b[f]||o;return r?a.a.createElement(m,c(c({ref:t},u),{},{components:r})):a.a.createElement(m,c({ref:t},u))}));function m(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,i=new Array(o);i[0]=f;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c.mdxType="string"==typeof e?e:n,i[1]=c;for(var u=2;u=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},m=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=a,u=d["".concat(c,".").concat(m)]||d[m]||s[m]||b;return n?r.a.createElement(u,o(o({ref:t},l),{},{components:n})):r.a.createElement(u,o({ref:t},l))}));function u(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,c=new Array(b);c[0]=m;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:a,c[1]=o;for(var l=2;l"),Object(b.b)("p",null,"Allows the host to change game state. *experimental feature"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"key-string")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"phase")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"gamestate-string")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleSetPhase.ts#L14"},"handleSetPhase.ts:14")))}p.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},m=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=a,u=d["".concat(c,".").concat(m)]||d[m]||s[m]||b;return n?r.a.createElement(u,o(o({ref:t},l),{},{components:n})):r.a.createElement(u,o({ref:t},l))}));function u(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,c=new Array(b);c[0]=m;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:a,c[1]=o;for(var l=2;l"),Object(b.b)("p",null,"Allows the host to change game state. *experimental feature"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"key-string")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"phase")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"gamestate-string")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleSetPhase.ts#L14"},"handleSetPhase.ts:14")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/3a41dd64.a888649d.js b/dist/src/docs/3a41dd64.ddd7a1de.js similarity index 98% rename from dist/src/docs/3a41dd64.a888649d.js rename to dist/src/docs/3a41dd64.ddd7a1de.js index bdde2582..794be1a9 100644 --- a/dist/src/docs/3a41dd64.a888649d.js +++ b/dist/src/docs/3a41dd64.ddd7a1de.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var b=a.a.createContext({}),p=function(e){var t=a.a.useContext(b),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(b.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,b=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=r,s=d["".concat(c,".").concat(m)]||d[m]||u[m]||o;return n?a.a.createElement(s,l(l({ref:t},b),{},{components:n})):a.a.createElement(s,l({ref:t},b))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,c=new Array(o);c[0]=m;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l.mdxType="string"==typeof e?e:r,c[1]=l;for(var b=2;b"),Object(o.b)("p",null,"Create a new Player record for this user"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socket io)")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleNewPlayer.ts#L9"},"handleNewPlayer.ts:9")))}p.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var b=a.a.createContext({}),p=function(e){var t=a.a.useContext(b),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(b.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,b=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=r,s=d["".concat(c,".").concat(m)]||d[m]||u[m]||o;return n?a.a.createElement(s,l(l({ref:t},b),{},{components:n})):a.a.createElement(s,l({ref:t},b))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,c=new Array(o);c[0]=m;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l.mdxType="string"==typeof e?e:r,c[1]=l;for(var b=2;b"),Object(o.b)("p",null,"Create a new Player record for this user"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socket io)")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleNewPlayer.ts#L9"},"handleNewPlayer.ts:9")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/3e7abbfe.f9331fb1.js b/dist/src/docs/3e7abbfe.6023ca8f.js similarity index 98% rename from dist/src/docs/3e7abbfe.f9331fb1.js rename to dist/src/docs/3e7abbfe.6023ca8f.js index b40431b2..402cdbe6 100644 --- a/dist/src/docs/3e7abbfe.f9331fb1.js +++ b/dist/src/docs/3e7abbfe.6023ca8f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,b=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=r,s=d["".concat(o,".").concat(m)]||d[m]||u[m]||b;return n?a.a.createElement(s,c(c({ref:t},l),{},{components:n})):a.a.createElement(s,c({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var b=n.length,o=new Array(b);o[0]=m;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:r,o[1]=c;for(var l=2;l"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"username")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleLobbyCreate.ts#L11"},"handleLobbyCreate.ts:11")))}p.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,b=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=r,s=d["".concat(o,".").concat(m)]||d[m]||u[m]||b;return n?a.a.createElement(s,c(c({ref:t},l),{},{components:n})):a.a.createElement(s,c({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var b=n.length,o=new Array(b);o[0]=m;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:r,o[1]=c;for(var l=2;l"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"username")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleLobbyCreate.ts#L11"},"handleLobbyCreate.ts:11")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/404.html b/dist/src/docs/404.html index 2e63b379..3fe18f51 100644 --- a/dist/src/docs/404.html +++ b/dist/src/docs/404.html @@ -7,14 +7,14 @@ Page Not Found | Tricktionary - - + +

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- - + + \ No newline at end of file diff --git a/dist/src/docs/50e7721a.2a443df4.js b/dist/src/docs/50e7721a.0e215f8e.js similarity index 99% rename from dist/src/docs/50e7721a.2a443df4.js rename to dist/src/docs/50e7721a.0e215f8e.js index 37ef3d19..3f3ab01e 100644 --- a/dist/src/docs/50e7721a.2a443df4.js +++ b/dist/src/docs/50e7721a.0e215f8e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):b(b({},t),e)),n},m=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,c=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),m=p(n),u=r,s=m["".concat(o,".").concat(u)]||m[u]||d[u]||c;return n?a.a.createElement(s,b(b({ref:t},l),{},{components:n})):a.a.createElement(s,b({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var c=n.length,o=new Array(c);o[0]=u;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:r,o[1]=b;for(var l=2;l"),Object(c.b)("p",null,'emit ("synchronize", seconds) to all ',Object(c.b)("em",{parentName:"p"},"connected")," players; excluding the current host"),Object(c.b)("h4",{id:"parameters"},"Parameters:"),Object(c.b)("table",null,Object(c.b)("thead",{parentName:"table"},Object(c.b)("tr",{parentName:"thead"},Object(c.b)("th",{parentName:"tr",align:"left"},"Name"),Object(c.b)("th",{parentName:"tr",align:"left"},"Type"),Object(c.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(c.b)("tbody",{parentName:"table"},Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"io")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any")),Object(c.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"socket")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any")),Object(c.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"lobbies")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any")),Object(c.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"seconds")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"number")),Object(c.b)("td",{parentName:"tr",align:"left"},"-")))),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},"Returns:")," ",Object(c.b)("em",{parentName:"p"},"Promise"),""),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleTimeSync.ts#L17"},"handleTimeSync.ts:17")))}p.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):b(b({},t),e)),n},m=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,c=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),m=p(n),u=r,s=m["".concat(o,".").concat(u)]||m[u]||d[u]||c;return n?a.a.createElement(s,b(b({ref:t},l),{},{components:n})):a.a.createElement(s,b({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var c=n.length,o=new Array(c);o[0]=u;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:r,o[1]=b;for(var l=2;l"),Object(c.b)("p",null,'emit ("synchronize", seconds) to all ',Object(c.b)("em",{parentName:"p"},"connected")," players; excluding the current host"),Object(c.b)("h4",{id:"parameters"},"Parameters:"),Object(c.b)("table",null,Object(c.b)("thead",{parentName:"table"},Object(c.b)("tr",{parentName:"thead"},Object(c.b)("th",{parentName:"tr",align:"left"},"Name"),Object(c.b)("th",{parentName:"tr",align:"left"},"Type"),Object(c.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(c.b)("tbody",{parentName:"table"},Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"io")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any")),Object(c.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"socket")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any")),Object(c.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"lobbies")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any")),Object(c.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"seconds")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"number")),Object(c.b)("td",{parentName:"tr",align:"left"},"-")))),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},"Returns:")," ",Object(c.b)("em",{parentName:"p"},"Promise"),""),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleTimeSync.ts#L17"},"handleTimeSync.ts:17")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/529f92e4.9f485c17.js b/dist/src/docs/529f92e4.0bdf2e19.js similarity index 99% rename from dist/src/docs/529f92e4.9f485c17.js rename to dist/src/docs/529f92e4.0bdf2e19.js index 82acbfe4..030028ca 100644 --- a/dist/src/docs/529f92e4.9f485c17.js +++ b/dist/src/docs/529f92e4.0bdf2e19.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{151:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return u}));var n=r(0),a=r.n(n);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):b(b({},t),e)),r},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},s=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(r),s=n,u=d["".concat(c,".").concat(s)]||d[s]||m[s]||o;return r?a.a.createElement(u,b(b({ref:t},l),{},{components:r})):a.a.createElement(u,b({ref:t},l))}));function u(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=s;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:n,c[1]=b;for(var l=2;l"),Object(o.b)("p",null,'emit "error" message to player at socket.id'),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"code")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"number")),Object(o.b)("td",{parentName:"tr",align:"left"},"-")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"error")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"string")," ","|"," ",Object(o.b)("em",{parentName:"td"},"undefined")),Object(o.b)("td",{parentName:"tr",align:"left"},"string")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleErrorMessage.ts#L9"},"handleErrorMessage.ts:9")))}p.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{151:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return u}));var n=r(0),a=r.n(n);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):b(b({},t),e)),r},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},s=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(r),s=n,u=d["".concat(c,".").concat(s)]||d[s]||m[s]||o;return r?a.a.createElement(u,b(b({ref:t},l),{},{components:r})):a.a.createElement(u,b({ref:t},l))}));function u(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=s;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:n,c[1]=b;for(var l=2;l"),Object(o.b)("p",null,'emit "error" message to player at socket.id'),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"code")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"number")),Object(o.b)("td",{parentName:"tr",align:"left"},"-")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"error")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"string")," ","|"," ",Object(o.b)("em",{parentName:"td"},"undefined")),Object(o.b)("td",{parentName:"tr",align:"left"},"string")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleErrorMessage.ts#L9"},"handleErrorMessage.ts:9")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/533c8413.9d015166.js b/dist/src/docs/533c8413.8e105cb5.js similarity index 61% rename from dist/src/docs/533c8413.9d015166.js rename to dist/src/docs/533c8413.8e105cb5.js index 0d479e22..d979484e 100644 --- a/dist/src/docs/533c8413.9d015166.js +++ b/dist/src/docs/533c8413.8e105cb5.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{151:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return y}));var n=r(0),a=r.n(n);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=a.a.createContext({}),l=function(e){var t=a.a.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return a.a.createElement(p.Provider,{value:t},e.children)},b={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},f=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,i=e.parentName,p=u(e,["components","mdxType","originalType","parentName"]),s=l(r),f=n,y=s["".concat(i,".").concat(f)]||s[f]||b[f]||o;return r?a.a.createElement(y,c(c({ref:t},p),{},{components:r})):a.a.createElement(y,c({ref:t},p))}));function y(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,i=new Array(o);i[0]=f;var c={};for(var u in t)hasOwnProperty.call(t,u)&&(c[u]=t[u]);c.originalType=e,c.mdxType="string"==typeof e?e:n,i[1]=c;for(var p=2;p=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=a.a.createContext({}),l=function(e){var t=a.a.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return a.a.createElement(u.Provider,{value:t},e.children)},b={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},f=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=l(r),f=n,m=s["".concat(i,".").concat(f)]||s[f]||b[f]||o;return r?a.a.createElement(m,c(c({ref:t},u),{},{components:r})):a.a.createElement(m,c({ref:t},u))}));function m(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,i=new Array(o);i[0]=f;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c.mdxType="string"==typeof e?e:n,i[1]=c;for(var u=2;u=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},m=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},u=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),m=p(n),u=a,s=m["".concat(c,".").concat(u)]||m[u]||d[u]||b;return n?r.a.createElement(s,o(o({ref:t},l),{},{components:n})):r.a.createElement(s,o({ref:t},l))}));function s(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,c=new Array(b);c[0]=u;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:a,c[1]=o;for(var l=2;l"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"settings")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"hostChoice")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleStartGame.ts#L11"},"handleStartGame.ts:11")))}p.isMDXComponent=!0}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{151:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return s}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},m=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},u=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),m=p(n),u=a,s=m["".concat(c,".").concat(u)]||m[u]||d[u]||b;return n?r.a.createElement(s,o(o({ref:t},l),{},{components:n})):r.a.createElement(s,o({ref:t},l))}));function s(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,c=new Array(b);c[0]=u;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:a,c[1]=o;for(var l=2;l"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"settings")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"hostChoice")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleStartGame.ts#L11"},"handleStartGame.ts:11")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/dist/src/docs/5b049d3e.f4470620.js b/dist/src/docs/5b049d3e.dc41c5d2.js similarity index 81% rename from dist/src/docs/5b049d3e.f4470620.js rename to dist/src/docs/5b049d3e.dc41c5d2.js index 90efcfe7..bd6be027 100644 --- a/dist/src/docs/5b049d3e.f4470620.js +++ b/dist/src/docs/5b049d3e.dc41c5d2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{151:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return y}));var n=r(0),a=r.n(n);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=a.a.createContext({}),l=function(e){var t=a.a.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=l(e.components);return a.a.createElement(p.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},b=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,p=u(e,["components","mdxType","originalType","parentName"]),s=l(r),b=n,y=s["".concat(c,".").concat(b)]||s[b]||f[b]||o;return r?a.a.createElement(y,i(i({ref:t},p),{},{components:r})):a.a.createElement(y,i({ref:t},p))}));function y(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=b;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i.mdxType="string"==typeof e?e:n,c[1]=i;for(var p=2;p=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=a.a.createContext({}),l=function(e){var t=a.a.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=l(e.components);return a.a.createElement(p.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},b=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,p=u(e,["components","mdxType","originalType","parentName"]),s=l(r),b=n,y=s["".concat(c,".").concat(b)]||s[b]||f[b]||o;return r?a.a.createElement(y,i(i({ref:t},p),{},{components:r})):a.a.createElement(y,i({ref:t},p))}));function y(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=b;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i.mdxType="string"==typeof e?e:n,c[1]=i;for(var p=2;p"),Object(o.b)("p",null,"increase emoji (reactionID) smash counter for definitionID"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"definitionId")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"number"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"reactionId")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"number"))))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleEmojiSmash.ts#L13"},"handleEmojiSmash.ts:13")))}m.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return u}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),m=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},p=function(e){var t=m(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},s=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,i=e.parentName,l=b(e,["components","mdxType","originalType","parentName"]),p=m(n),s=r,u=p["".concat(i,".").concat(s)]||p[s]||d[s]||o;return n?a.a.createElement(u,c(c({ref:t},l),{},{components:n})):a.a.createElement(u,c({ref:t},l))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=s;var c={};for(var b in t)hasOwnProperty.call(t,b)&&(c[b]=t[b]);c.originalType=e,c.mdxType="string"==typeof e?e:r,i[1]=c;for(var l=2;l"),Object(o.b)("p",null,"increase emoji (reactionID) smash counter for definitionID"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"definitionId")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"number"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"reactionId")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"number"))))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleEmojiSmash.ts#L13"},"handleEmojiSmash.ts:13")))}m.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return u}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),m=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},p=function(e){var t=m(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},s=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,i=e.parentName,l=b(e,["components","mdxType","originalType","parentName"]),p=m(n),s=r,u=p["".concat(i,".").concat(s)]||p[s]||d[s]||o;return n?a.a.createElement(u,c(c({ref:t},l),{},{components:n})):a.a.createElement(u,c({ref:t},l))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=s;var c={};for(var b in t)hasOwnProperty.call(t,b)&&(c[b]=t[b]);c.originalType=e,c.mdxType="string"==typeof e?e:r,i[1]=c;for(var l=2;l=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=a.a.createContext({}),l=function(e){var t=a.a.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=l(e.components);return a.a.createElement(p.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},b=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,p=u(e,["components","mdxType","originalType","parentName"]),s=l(r),b=n,y=s["".concat(c,".").concat(b)]||s[b]||f[b]||o;return r?a.a.createElement(y,i(i({ref:t},p),{},{components:r})):a.a.createElement(y,i({ref:t},p))}));function y(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=b;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i.mdxType="string"==typeof e?e:n,c[1]=i;for(var p=2;p=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=a.a.createContext({}),l=function(e){var t=a.a.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=l(e.components);return a.a.createElement(p.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},b=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,p=u(e,["components","mdxType","originalType","parentName"]),s=l(r),b=n,y=s["".concat(c,".").concat(b)]||s[b]||f[b]||o;return r?a.a.createElement(y,i(i({ref:t},p),{},{components:r})):a.a.createElement(y,i({ref:t},p))}));function y(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=b;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i.mdxType="string"==typeof e?e:n,c[1]=i;for(var p=2;p"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"game-state")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"category")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"string")),Object(o.b)("td",{parentName:"tr",align:"left"},"what host should listen for")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"message")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"information being sent to the host")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleMessageHost.ts#L11"},"handleMessageHost.ts:11")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var a=n(0),r=n.n(a);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function b(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):b(b({},t),e)),n},s=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},m=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,u=s["".concat(c,".").concat(m)]||s[m]||d[m]||o;return n?r.a.createElement(u,b(b({ref:t},l),{},{components:n})):r.a.createElement(u,b({ref:t},l))}));function u(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,c=new Array(o);c[0]=m;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:a,c[1]=b;for(var l=2;l"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"game-state")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"category")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"string")),Object(o.b)("td",{parentName:"tr",align:"left"},"what host should listen for")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"message")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"information being sent to the host")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleMessageHost.ts#L11"},"handleMessageHost.ts:11")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var a=n(0),r=n.n(a);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},s=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},m=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,b=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,u=s["".concat(b,".").concat(m)]||s[m]||d[m]||o;return n?r.a.createElement(u,c(c({ref:t},l),{},{components:n})):r.a.createElement(u,c({ref:t},l))}));function u(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,b=new Array(o);b[0]=m;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:a,b[1]=c;for(var l=2;l=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},b={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},y=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,l=u(e,["components","mdxType","originalType","parentName"]),s=p(r),y=n,f=s["".concat(c,".").concat(y)]||s[y]||b[y]||o;return r?a.a.createElement(f,i(i({ref:t},l),{},{components:r})):a.a.createElement(f,i({ref:t},l))}));function f(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=y;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i.mdxType="string"==typeof e?e:n,c[1]=i;for(var l=2;l=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=a.a.createContext({}),u=function(e){var t=a.a.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=u(e.components);return a.a.createElement(p.Provider,{value:t},e.children)},b={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),s=u(r),m=n,y=s["".concat(c,".").concat(m)]||s[m]||b[m]||o;return r?a.a.createElement(y,i(i({ref:t},p),{},{components:r})):a.a.createElement(y,i({ref:t},p))}));function y(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=m;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:n,c[1]=i;for(var p=2;p"),Object(b.b)("p",null,"Reveal results to players"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"key-string")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"guesses")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"),"[]"),Object(b.b)("td",{parentName:"tr",align:"left"},"array")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleRevealResults.ts#L13"},"handleRevealResults.ts:13")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m}));var r=n(0),a=n.n(r);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=a.a.createContext({}),p=function(e){var t=a.a.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(i.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,b=e.originalType,l=e.parentName,i=o(e,["components","mdxType","originalType","parentName"]),d=p(n),u=r,m=d["".concat(l,".").concat(u)]||d[u]||s[u]||b;return n?a.a.createElement(m,c(c({ref:t},i),{},{components:n})):a.a.createElement(m,c({ref:t},i))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var b=n.length,l=new Array(b);l[0]=u;var c={};for(var o in t)hasOwnProperty.call(t,o)&&(c[o]=t[o]);c.originalType=e,c.mdxType="string"==typeof e?e:r,l[1]=c;for(var i=2;i"),Object(l.b)("p",null,"Reveal results to players"),Object(l.b)("h4",{id:"parameters"},"Parameters:"),Object(l.b)("table",null,Object(l.b)("thead",{parentName:"table"},Object(l.b)("tr",{parentName:"thead"},Object(l.b)("th",{parentName:"tr",align:"left"},"Name"),Object(l.b)("th",{parentName:"tr",align:"left"},"Type"),Object(l.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(l.b)("tbody",{parentName:"table"},Object(l.b)("tr",{parentName:"tbody"},Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("inlineCode",{parentName:"td"},"io")),Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("em",{parentName:"td"},"any")),Object(l.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(l.b)("tr",{parentName:"tbody"},Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("inlineCode",{parentName:"td"},"socket")),Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("em",{parentName:"td"},"any")),Object(l.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(l.b)("tr",{parentName:"tbody"},Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("em",{parentName:"td"},"string")),Object(l.b)("td",{parentName:"tr",align:"left"},"key-string")),Object(l.b)("tr",{parentName:"tbody"},Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("inlineCode",{parentName:"td"},"lobbies")),Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("em",{parentName:"td"},"any")),Object(l.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(l.b)("tr",{parentName:"tbody"},Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("inlineCode",{parentName:"td"},"guesses")),Object(l.b)("td",{parentName:"tr",align:"left"},Object(l.b)("em",{parentName:"td"},"any"),"[]"),Object(l.b)("td",{parentName:"tr",align:"left"},"array")))),Object(l.b)("p",null,Object(l.b)("strong",{parentName:"p"},"Returns:")," ",Object(l.b)("em",{parentName:"p"},"Promise"),""),Object(l.b)("p",null,"Defined in: ",Object(l.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleRevealResults.ts#L13"},"handleRevealResults.ts:13")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m}));var r=n(0),a=n.n(r);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=a.a.createContext({}),p=function(e){var t=a.a.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(i.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,b=e.parentName,i=o(e,["components","mdxType","originalType","parentName"]),d=p(n),u=r,m=d["".concat(b,".").concat(u)]||d[u]||s[u]||l;return n?a.a.createElement(m,c(c({ref:t},i),{},{components:n})):a.a.createElement(m,c({ref:t},i))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,b=new Array(l);b[0]=u;var c={};for(var o in t)hasOwnProperty.call(t,o)&&(c[o]=t[o]);c.originalType=e,c.mdxType="string"==typeof e?e:r,b[1]=c;for(var i=2;i=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},u=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),u=a,O=d["".concat(c,".").concat(u)]||d[u]||m[u]||b;return n?r.a.createElement(O,o(o({ref:t},l),{},{components:n})):r.a.createElement(O,o({ref:t},l))}));function O(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,c=new Array(b);c[0]=u;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:a,c[1]=o;for(var l=2;l=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},u=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),u=a,O=d["".concat(c,".").concat(u)]||d[u]||m[u]||b;return n?r.a.createElement(O,o(o({ref:t},l),{},{components:n})):r.a.createElement(O,o({ref:t},l))}));function O(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,c=new Array(b);c[0]=u;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:a,c[1]=o;for(var l=2;l ",Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"encode")),Object(r.b)("td",{parentName:"tr",align:"left"},"(",Object(r.b)("inlineCode",{parentName:"td"},"str"),": ",Object(r.b)("em",{parentName:"td"},"string"),") => ",Object(r.b)("em",{parentName:"td"},"string"))))),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L306"},"common.ts:306")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"localaxios"},"localAxios"),Object(r.b)("p",null,"\u2022 ",Object(r.b)("inlineCode",{parentName:"p"},"Const")," ",Object(r.b)("strong",{parentName:"p"},"localAxios"),": AxiosInstance"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L6"},"common.ts:6")),Object(r.b)("h2",{id:"functions-1"},"Functions"),Object(r.b)("h3",{id:"checksettings"},"checkSettings"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"checkSettings"),"(",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any")," }"),Object(r.b)("h4",{id:"parameters"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"settings")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any")," }"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L142"},"common.ts:142")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"contributeword"},"contributeWord"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"contributeWord"),"(",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"definition"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"source"),": ",Object(r.b)("em",{parentName:"p"},"string"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"definition"),": ",Object(r.b)("em",{parentName:"p"},"string")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"id"),": ",Object(r.b)("em",{parentName:"p"},"number")," = 0; ",Object(r.b)("inlineCode",{parentName:"p"},"source"),": ",Object(r.b)("em",{parentName:"p"},"string")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"string")," }",">"),Object(r.b)("h4",{id:"parameters-1"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"word")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"definition")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"source")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"definition"),": ",Object(r.b)("em",{parentName:"p"},"string")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"id"),": ",Object(r.b)("em",{parentName:"p"},"number")," = 0; ",Object(r.b)("inlineCode",{parentName:"p"},"source"),": ",Object(r.b)("em",{parentName:"p"},"string")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"string")," }",">"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L156"},"common.ts:156")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"doit"},"doIt"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"doIt"),"(",Object(r.b)("inlineCode",{parentName:"p"},"game_id"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"firstPlace"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"secondPlace?"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"thirdPlace?"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-2"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"game_id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"firstPlace")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"secondPlace?")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"thirdPlace?")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L370"},"common.ts:370")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"gameexists"},"gameExists"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"gameExists"),"(",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"boolean")),Object(r.b)("p",null,"returns true if LobbyCode can be found in Lobbies"),Object(r.b)("h4",{id:"parameters-3"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"),Object(r.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"LobbyCode of game")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"socket-handler games")))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"boolean")),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L314"},"common.ts:314")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"getdef"},"getDef"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"getDef"),"(",Object(r.b)("inlineCode",{parentName:"p"},"user_id"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"definitionId"),": ",Object(r.b)("em",{parentName:"p"},"number"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-4"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"user_id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"definitionId")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"number"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L61"},"common.ts:61")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"playeridwashost"},"playerIdWasHost"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"playerIdWasHost"),"(",Object(r.b)("inlineCode",{parentName:"p"},"playerId"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false }"),Object(r.b)("h4",{id:"parameters-5"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"playerId")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false }"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L133"},"common.ts:133")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"playerishost"},"playerIsHost"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"playerIsHost"),"(",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false }"),Object(r.b)("h4",{id:"parameters-6"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false }"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L124"},"common.ts:124")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"privatemessage"},"privateMessage"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"privateMessage"),"(",Object(r.b)("inlineCode",{parentName:"p"},"io"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"listener"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"string"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"send message to socket.id"),Object(r.b)("h4",{id:"parameters-7"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"),Object(r.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"io")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"listener")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"string")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"message")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"string helper function; not directly exposed to the public. please handle all necessary authority role checks, prior to invocation.")))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L91"},"common.ts:91")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"sendtohost"},"sendToHost"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"sendToHost"),"(",Object(r.b)("inlineCode",{parentName:"p"},"io"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"category"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-8"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"io")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"category")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"message")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L106"},"common.ts:106")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"startnewround"},"startNewRound"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"startNewRound"),"(",Object(r.b)("inlineCode",{parentName:"p"},"host"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbySettings"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"any")," }",">"),Object(r.b)("h4",{id:"parameters-9"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"host")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"word")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbySettings")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"any")," }",">"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L222"},"common.ts:222")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"tiebreakermatch"},"tieBreakerMatch"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"tieBreakerMatch"),"(",Object(r.b)("inlineCode",{parentName:"p"},"checkPoints"),": ",Object(r.b)("em",{parentName:"p"},"any"),"[], ",Object(r.b)("inlineCode",{parentName:"p"},"game_id"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),"[], ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-10"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"checkPoints")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"),"[]")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"game_id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"),"[]")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L415"},"common.ts:415")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"updateplayertoken"},"updatePlayerToken"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"updatePlayerToken"),"(",Object(r.b)("inlineCode",{parentName:"p"},"io"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"p_id"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"name"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"definition"),": ",Object(r.b)("em",{parentName:"p"},"string")," ","|"," ",Object(r.b)("em",{parentName:"p"},"undefined"),", ",Object(r.b)("inlineCode",{parentName:"p"},"points"),": ",Object(r.b)("em",{parentName:"p"},"number")," ","|"," ",Object(r.b)("em",{parentName:"p"},"undefined"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"info?"),": ",Object(r.b)("em",{parentName:"p"},"string"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-11"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"),Object(r.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"io")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"p_id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"Player UUID")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"name")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"Player's username")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"definition")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")," ","|"," ",Object(r.b)("em",{parentName:"td"},"undefined")),Object(r.b)("td",{parentName:"tr",align:"left"},"Player's definition")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"points")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"number")," ","|"," ",Object(r.b)("em",{parentName:"td"},"undefined")),Object(r.b)("td",{parentName:"tr",align:"left"},"Player's points")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"Players current game code")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"info?")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"-")))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L328"},"common.ts:328")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"whereami"},"whereAmI"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"whereAmI"),"(",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): lobbyCode"),Object(r.b)("h4",{id:"parameters-12"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"),Object(r.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"(socket io)")))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," lobbyCode"),Object(r.b)("p",null,"the lobby code attached to this socket (string)."),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L283"},"common.ts:283")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"wordfromid"},"wordFromID"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"wordFromID"),"(",Object(r.b)("inlineCode",{parentName:"p"},"id"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"any")," }",">"),Object(r.b)("h4",{id:"parameters-13"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"any")," }",">"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/common.ts#L181"},"common.ts:181")))}l.isMDXComponent=!0},151:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return j}));var b=a(0),n=a.n(b);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);t&&(b=b.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,b)}return a}function m(e){for(var t=1;t=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(b=0;b=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var i=n.a.createContext({}),l=function(e){var t=n.a.useContext(i),a=t;return e&&(a="function"==typeof e?e(t):m(m({},t),e)),a},o=function(e){var t=l(e.components);return n.a.createElement(i.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.a.createElement(n.a.Fragment,{},t)}},O=n.a.forwardRef((function(e,t){var a=e.components,b=e.mdxType,r=e.originalType,p=e.parentName,i=c(e,["components","mdxType","originalType","parentName"]),o=l(a),O=b,j=o["".concat(p,".").concat(O)]||o[O]||d[O]||r;return a?n.a.createElement(j,m(m({ref:t},i),{},{components:a})):n.a.createElement(j,m({ref:t},i))}));function j(e,t){var a=arguments,b=t&&t.mdxType;if("string"==typeof e||b){var r=a.length,p=new Array(r);p[0]=O;var m={};for(var c in t)hasOwnProperty.call(t,c)&&(m[c]=t[c]);m.originalType=e,m.mdxType="string"==typeof e?e:b,p[1]=m;for(var i=2;i ",Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"encode")),Object(r.b)("td",{parentName:"tr",align:"left"},"(",Object(r.b)("inlineCode",{parentName:"td"},"str"),": ",Object(r.b)("em",{parentName:"td"},"string"),") => ",Object(r.b)("em",{parentName:"td"},"string"))))),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L306"},"common.ts:306")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"localaxios"},"localAxios"),Object(r.b)("p",null,"\u2022 ",Object(r.b)("inlineCode",{parentName:"p"},"Const")," ",Object(r.b)("strong",{parentName:"p"},"localAxios"),": AxiosInstance"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L6"},"common.ts:6")),Object(r.b)("h2",{id:"functions-1"},"Functions"),Object(r.b)("h3",{id:"checksettings"},"checkSettings"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"checkSettings"),"(",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any")," }"),Object(r.b)("h4",{id:"parameters"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"settings")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"settings"),": ",Object(r.b)("em",{parentName:"p"},"any")," }"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L142"},"common.ts:142")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"contributeword"},"contributeWord"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"contributeWord"),"(",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"definition"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"source"),": ",Object(r.b)("em",{parentName:"p"},"string"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"definition"),": ",Object(r.b)("em",{parentName:"p"},"string")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"id"),": ",Object(r.b)("em",{parentName:"p"},"number")," = 0; ",Object(r.b)("inlineCode",{parentName:"p"},"source"),": ",Object(r.b)("em",{parentName:"p"},"string")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"string")," }",">"),Object(r.b)("h4",{id:"parameters-1"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"word")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"definition")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"source")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"definition"),": ",Object(r.b)("em",{parentName:"p"},"string")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"id"),": ",Object(r.b)("em",{parentName:"p"},"number")," = 0; ",Object(r.b)("inlineCode",{parentName:"p"},"source"),": ",Object(r.b)("em",{parentName:"p"},"string")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"string")," }",">"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L156"},"common.ts:156")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"doit"},"doIt"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"doIt"),"(",Object(r.b)("inlineCode",{parentName:"p"},"game_id"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"firstPlace"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"secondPlace?"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"thirdPlace?"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-2"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"game_id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"firstPlace")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"secondPlace?")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"thirdPlace?")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L370"},"common.ts:370")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"gameexists"},"gameExists"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"gameExists"),"(",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"boolean")),Object(r.b)("p",null,"returns true if LobbyCode can be found in Lobbies"),Object(r.b)("h4",{id:"parameters-3"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"),Object(r.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"LobbyCode of game")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"socket-handler games")))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"boolean")),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L314"},"common.ts:314")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"getdef"},"getDef"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"getDef"),"(",Object(r.b)("inlineCode",{parentName:"p"},"user_id"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"definitionId"),": ",Object(r.b)("em",{parentName:"p"},"number"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-4"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"user_id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"definitionId")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"number"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L61"},"common.ts:61")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"playeridwashost"},"playerIdWasHost"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"playerIdWasHost"),"(",Object(r.b)("inlineCode",{parentName:"p"},"playerId"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false }"),Object(r.b)("h4",{id:"parameters-5"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"playerId")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false }"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L133"},"common.ts:133")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"playerishost"},"playerIsHost"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"playerIsHost"),"(",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false }"),Object(r.b)("h4",{id:"parameters-6"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false }"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L124"},"common.ts:124")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"privatemessage"},"privateMessage"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"privateMessage"),"(",Object(r.b)("inlineCode",{parentName:"p"},"io"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"listener"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"string"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"send message to socket.id"),Object(r.b)("h4",{id:"parameters-7"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"),Object(r.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"io")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"listener")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"string")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"message")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"string helper function; not directly exposed to the public. please handle all necessary authority role checks, prior to invocation.")))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L91"},"common.ts:91")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"sendtohost"},"sendToHost"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"sendToHost"),"(",Object(r.b)("inlineCode",{parentName:"p"},"io"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"category"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-8"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"io")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"category")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"message")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L106"},"common.ts:106")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"startnewround"},"startNewRound"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"startNewRound"),"(",Object(r.b)("inlineCode",{parentName:"p"},"host"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbySettings"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"any")," }",">"),Object(r.b)("h4",{id:"parameters-9"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"host")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"word")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbySettings")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"result"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"roundId"),": ",Object(r.b)("em",{parentName:"p"},"any")," }",">"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L222"},"common.ts:222")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"tiebreakermatch"},"tieBreakerMatch"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"tieBreakerMatch"),"(",Object(r.b)("inlineCode",{parentName:"p"},"checkPoints"),": ",Object(r.b)("em",{parentName:"p"},"any"),"[], ",Object(r.b)("inlineCode",{parentName:"p"},"game_id"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(r.b)("em",{parentName:"p"},"any"),"[], ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-10"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"checkPoints")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"),"[]")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"game_id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string"))),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbies")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"),"[]")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L415"},"common.ts:415")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"updateplayertoken"},"updatePlayerToken"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"updatePlayerToken"),"(",Object(r.b)("inlineCode",{parentName:"p"},"io"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),", ",Object(r.b)("inlineCode",{parentName:"p"},"p_id"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"name"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"definition"),": ",Object(r.b)("em",{parentName:"p"},"string")," ","|"," ",Object(r.b)("em",{parentName:"p"},"undefined"),", ",Object(r.b)("inlineCode",{parentName:"p"},"points"),": ",Object(r.b)("em",{parentName:"p"},"number")," ","|"," ",Object(r.b)("em",{parentName:"p"},"undefined"),", ",Object(r.b)("inlineCode",{parentName:"p"},"lobbyCode"),": ",Object(r.b)("em",{parentName:"p"},"string"),", ",Object(r.b)("inlineCode",{parentName:"p"},"info?"),": ",Object(r.b)("em",{parentName:"p"},"string"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("h4",{id:"parameters-11"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"),Object(r.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"io")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"p_id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"Player UUID")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"name")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"Player's username")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"definition")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")," ","|"," ",Object(r.b)("em",{parentName:"td"},"undefined")),Object(r.b)("td",{parentName:"tr",align:"left"},"Player's definition")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"points")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"number")," ","|"," ",Object(r.b)("em",{parentName:"td"},"undefined")),Object(r.b)("td",{parentName:"tr",align:"left"},"Player's points")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"Players current game code")),Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"info?")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"string")),Object(r.b)("td",{parentName:"tr",align:"left"},"-")))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),""),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L328"},"common.ts:328")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"whereami"},"whereAmI"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"whereAmI"),"(",Object(r.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): lobbyCode"),Object(r.b)("h4",{id:"parameters-12"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"),Object(r.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"socket")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any")),Object(r.b)("td",{parentName:"tr",align:"left"},"(socket io)")))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," lobbyCode"),Object(r.b)("p",null,"the lobby code attached to this socket (string)."),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L283"},"common.ts:283")),Object(r.b)("hr",null),Object(r.b)("h3",{id:"wordfromid"},"wordFromID"),Object(r.b)("p",null,"\u25b8 ",Object(r.b)("strong",{parentName:"p"},"wordFromID"),"(",Object(r.b)("inlineCode",{parentName:"p"},"id"),": ",Object(r.b)("em",{parentName:"p"},"any"),"): ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"any")," }",">"),Object(r.b)("h4",{id:"parameters-13"},"Parameters:"),Object(r.b)("table",null,Object(r.b)("thead",{parentName:"table"},Object(r.b)("tr",{parentName:"thead"},Object(r.b)("th",{parentName:"tr",align:"left"},"Name"),Object(r.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(r.b)("tbody",{parentName:"table"},Object(r.b)("tr",{parentName:"tbody"},Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("inlineCode",{parentName:"td"},"id")),Object(r.b)("td",{parentName:"tr",align:"left"},Object(r.b)("em",{parentName:"td"},"any"))))),Object(r.b)("p",null,Object(r.b)("strong",{parentName:"p"},"Returns:")," ",Object(r.b)("em",{parentName:"p"},"Promise"),"<{ ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"any")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = false; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," } ","|"," { ",Object(r.b)("inlineCode",{parentName:"p"},"message"),": ",Object(r.b)("em",{parentName:"p"},"undefined")," ; ",Object(r.b)("inlineCode",{parentName:"p"},"ok"),": ",Object(r.b)("em",{parentName:"p"},"boolean")," = true; ",Object(r.b)("inlineCode",{parentName:"p"},"word"),": ",Object(r.b)("em",{parentName:"p"},"any")," }",">"),Object(r.b)("p",null,"Defined in: ",Object(r.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/common.ts#L181"},"common.ts:181")))}l.isMDXComponent=!0},151:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return j}));var b=a(0),n=a.n(b);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);t&&(b=b.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,b)}return a}function m(e){for(var t=1;t=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(b=0;b=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var i=n.a.createContext({}),l=function(e){var t=n.a.useContext(i),a=t;return e&&(a="function"==typeof e?e(t):m(m({},t),e)),a},o=function(e){var t=l(e.components);return n.a.createElement(i.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.a.createElement(n.a.Fragment,{},t)}},O=n.a.forwardRef((function(e,t){var a=e.components,b=e.mdxType,r=e.originalType,p=e.parentName,i=c(e,["components","mdxType","originalType","parentName"]),o=l(a),O=b,j=o["".concat(p,".").concat(O)]||o[O]||d[O]||r;return a?n.a.createElement(j,m(m({ref:t},i),{},{components:a})):n.a.createElement(j,m({ref:t},i))}));function j(e,t){var a=arguments,b=t&&t.mdxType;if("string"==typeof e||b){var r=a.length,p=new Array(r);p[0]=O;var m={};for(var c in t)hasOwnProperty.call(t,c)&&(m[c]=t[c]);m.originalType=e,m.mdxType="string"==typeof e?e:b,p[1]=m;for(var i=2;i Cosmic Dancer | Tricktionary - - + + - - + +
-
+
- - + + - - + + \ No newline at end of file diff --git a/dist/src/docs/blog/aha/index.html b/dist/src/docs/blog/aha/index.html index f52339ac..3ddf4af7 100644 --- a/dist/src/docs/blog/aha/index.html +++ b/dist/src/docs/blog/aha/index.html @@ -7,26 +7,26 @@ Take on me | Tricktionary - - + + - - + +
-
+ - - + + - - + + \ No newline at end of file diff --git a/dist/src/docs/blog/dragons/index.html b/dist/src/docs/blog/dragons/index.html index df7f894d..7472d93b 100644 --- a/dist/src/docs/blog/dragons/index.html +++ b/dist/src/docs/blog/dragons/index.html @@ -7,26 +7,26 @@ Futuristic Dragon | Tricktionary - - + + - - + +
-
+
- - + + - - + + \ No newline at end of file diff --git a/dist/src/docs/blog/index.html b/dist/src/docs/blog/index.html index 5f697186..818f4e5b 100644 --- a/dist/src/docs/blog/index.html +++ b/dist/src/docs/blog/index.html @@ -7,34 +7,34 @@ Blog | Tricktionary - - + + - - - - + + + +
-
+
- - + + - - - - + + + + diff --git a/dist/src/docs/blog/simple/index.html b/dist/src/docs/blog/simple/index.html index 137180d2..8bc7b035 100644 --- a/dist/src/docs/blog/simple/index.html +++ b/dist/src/docs/blog/simple/index.html @@ -7,26 +7,26 @@ Don't You (Forget About Me) | Tricktionary - - + + - +
-
+
- - + + - + \ No newline at end of file diff --git a/dist/src/docs/blog/tags/index.html b/dist/src/docs/blog/tags/index.html index b85b68b9..cf2d7420 100644 --- a/dist/src/docs/blog/tags/index.html +++ b/dist/src/docs/blog/tags/index.html @@ -7,24 +7,24 @@ Tags | Tricktionary - - + + - + + - - + + - + \ No newline at end of file diff --git a/dist/src/docs/blog/tags/storysquad/index.html b/dist/src/docs/blog/tags/storysquad/index.html index c7868bcc..c62aad66 100644 --- a/dist/src/docs/blog/tags/storysquad/index.html +++ b/dist/src/docs/blog/tags/storysquad/index.html @@ -7,34 +7,34 @@ Posts tagged "storysquad" | Tricktionary - - + + - - - - + + + +
-

5 posts tagged with "storysquad"

View All Tags
+

5 posts tagged with "storysquad"

View All Tags
- - + + - - - - + + + + diff --git a/dist/src/docs/blog/tags/tricktionary/index.html b/dist/src/docs/blog/tags/tricktionary/index.html index 5dbd3df1..fec76b47 100644 --- a/dist/src/docs/blog/tags/tricktionary/index.html +++ b/dist/src/docs/blog/tags/tricktionary/index.html @@ -7,34 +7,34 @@ Posts tagged "tricktionary" | Tricktionary - - + + - - - - + + + +
-

5 posts tagged with "tricktionary"

View All Tags
+

5 posts tagged with "tricktionary"

View All Tags
- - + + - - - - + + + + diff --git a/dist/src/docs/blog/trex/index.html b/dist/src/docs/blog/trex/index.html index 5e6a7a68..6a3eb1af 100644 --- a/dist/src/docs/blog/trex/index.html +++ b/dist/src/docs/blog/trex/index.html @@ -7,26 +7,26 @@ T.Rex | Tricktionary - - + + - +
-
+
- - + + - + \ No newline at end of file diff --git a/dist/src/docs/dc7f631f.56d8849a.js b/dist/src/docs/dc7f631f.afbbac50.js similarity index 98% rename from dist/src/docs/dc7f631f.56d8849a.js rename to dist/src/docs/dc7f631f.afbbac50.js index 131d43d4..967328de 100644 --- a/dist/src/docs/dc7f631f.56d8849a.js +++ b/dist/src/docs/dc7f631f.afbbac50.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{130:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return b})),n.d(t,"metadata",(function(){return c})),n.d(t,"toc",(function(){return l})),n.d(t,"default",(function(){return p}));var r=n(3),a=n(7),o=(n(0),n(151)),b={},c={unversionedId:"tricktionary/modules/handlelobbyleave",id:"tricktionary/modules/handlelobbyleave",isDocsHomePage:!1,title:"handlelobbyleave",description:"tricktionary-be / Exports / handleLobbyLeave",source:"@site/docs/tricktionary/modules/handlelobbyleave.md",slug:"/tricktionary/modules/handlelobbyleave",permalink:"/help/docs/tricktionary/modules/handlelobbyleave",version:"current"},l=[{value:"Table of contents",id:"table-of-contents",children:[{value:"Functions",id:"functions",children:[]}]},{value:"Functions",id:"functions-1",children:[{value:"default",id:"default",children:[]}]}],i={toc:l};function p(e){var t=e.components,n=Object(a.a)(e,["components"]);return Object(o.b)("wrapper",Object(r.a)({},i,n,{components:t,mdxType:"MDXLayout"}),Object(o.b)("p",null,Object(o.b)("a",{parentName:"p",href:"/help/docs/tricktionary/README"},"tricktionary-be")," / ",Object(o.b)("a",{parentName:"p",href:"/help/docs/tricktionary/modules"},"Exports")," / handleLobbyLeave"),Object(o.b)("h1",{id:"module-handlelobbyleave"},"Module: handleLobbyLeave"),Object(o.b)("h2",{id:"table-of-contents"},"Table of contents"),Object(o.b)("h3",{id:"functions"},"Functions"),Object(o.b)("ul",null,Object(o.b)("li",{parentName:"ul"},Object(o.b)("a",{parentName:"li",href:"/help/docs/tricktionary/modules/handlelobbyleave#default"},"default"))),Object(o.b)("h2",{id:"functions-1"},"Functions"),Object(o.b)("h3",{id:"default"},"default"),Object(o.b)("p",null,"\u25b8 ",Object(o.b)("strong",{parentName:"p"},"default"),"(",Object(o.b)("inlineCode",{parentName:"p"},"io"),": ",Object(o.b)("em",{parentName:"p"},"any"),", ",Object(o.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(o.b)("em",{parentName:"p"},"any"),", ",Object(o.b)("inlineCode",{parentName:"p"},"lobbies"),": ",Object(o.b)("em",{parentName:"p"},"any"),"): ",Object(o.b)("em",{parentName:"p"},"void")),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"void")),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleLobbyLeave.ts#L1"},"handleLobbyLeave.ts:1")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=a.a.createContext({}),p=function(e){var t=a.a.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(i.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,b=e.parentName,i=l(e,["components","mdxType","originalType","parentName"]),d=p(n),m=r,s=d["".concat(b,".").concat(m)]||d[m]||u[m]||o;return n?a.a.createElement(s,c(c({ref:t},i),{},{components:n})):a.a.createElement(s,c({ref:t},i))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,b=new Array(o);b[0]=m;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c.mdxType="string"==typeof e?e:r,b[1]=c;for(var i=2;i=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=a.a.createContext({}),p=function(e){var t=a.a.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(i.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,b=e.parentName,i=l(e,["components","mdxType","originalType","parentName"]),d=p(n),m=r,s=d["".concat(b,".").concat(m)]||d[m]||u[m]||o;return n?a.a.createElement(s,c(c({ref:t},i),{},{components:n})):a.a.createElement(s,c({ref:t},i))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,b=new Array(o);b[0]=m;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c.mdxType="string"==typeof e?e:r,b[1]=c;for(var i=2;i=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=a.a.createContext({}),u=function(e){var t=a.a.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=u(e.components);return a.a.createElement(p.Provider,{value:t},e.children)},b={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),s=u(r),m=n,y=s["".concat(c,".").concat(m)]||s[m]||b[m]||o;return r?a.a.createElement(y,i(i({ref:t},p),{},{components:r})):a.a.createElement(y,i({ref:t},p))}));function y(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=m;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:n,c[1]=i;for(var p=2;p=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},b={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},y=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,l=u(e,["components","mdxType","originalType","parentName"]),s=p(r),y=n,f=s["".concat(c,".").concat(y)]||s[y]||b[y]||o;return r?a.a.createElement(f,i(i({ref:t},l),{},{components:r})):a.a.createElement(f,i({ref:t},l))}));function f(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=y;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i.mdxType="string"==typeof e?e:n,c[1]=i;for(var l=2;l Endpoints | Tricktionary - - + + @@ -21,8 +21,8 @@ - - + + diff --git a/dist/src/docs/docs/api/modules/index.html b/dist/src/docs/docs/api/modules/index.html index 51dc75c2..9736fa2b 100644 --- a/dist/src/docs/docs/api/modules/index.html +++ b/dist/src/docs/docs/api/modules/index.html @@ -7,8 +7,8 @@ tricktionary-be | Tricktionary - - + + @@ -21,8 +21,8 @@

tricktionary-be#

- - + + diff --git a/dist/src/docs/docs/database/index.html b/dist/src/docs/docs/database/index.html index 0d57b3b3..7431e546 100644 --- a/dist/src/docs/docs/database/index.html +++ b/dist/src/docs/docs/database/index.html @@ -7,8 +7,8 @@ Database Considerations | Tricktionary - - + + @@ -21,8 +21,8 @@

Database Considerations

designed to support anonymous players.#

img

note

the Played table was created to illustrate connecting a player with a game. It contains no records at the moment and may disappear in future releases.

Player#

The Player record represents an anonymous player securely connected via websocket over HTTPS.

- - + + diff --git a/dist/src/docs/docs/dataflow/index.html b/dist/src/docs/docs/dataflow/index.html index 9d53933f..18e0c0db 100644 --- a/dist/src/docs/docs/dataflow/index.html +++ b/dist/src/docs/docs/dataflow/index.html @@ -7,8 +7,8 @@ Software Architecture | Tricktionary - - + + @@ -23,8 +23,8 @@ Security should always be considered first.

Starting with a secure design.#

tip

The separation of form and function provides us with our first layer of secure design.

It's very tempting to just import a new technology and start coupling it with your resources. More often than not, the story ends as a "lesson learned".

How to avoid that?

important

We obey our own rules.

  • Our database is limited to speaking with the RESTful API.

  • websockets are limited to speaking with web servers.

  • We connect the two by making API calls from websocket handlers, internally

No shortcuts.

Re-usable functions just seem to natually crop up due to these constraints.

- - + + diff --git a/dist/src/docs/docs/doc1/index.html b/dist/src/docs/docs/doc1/index.html index daf2e2d9..6d575707 100644 --- a/dist/src/docs/docs/doc1/index.html +++ b/dist/src/docs/docs/doc1/index.html @@ -7,8 +7,8 @@ Style Guide | Tricktionary - - + + @@ -21,8 +21,8 @@

Style Guide

You can write content using GitHub-flavored Markdown syntax.

Markdown Syntax#

To serve as an example page when styling markdown based Docusaurus sites.

Headers#

H1 - Create the best documentation#

H2 - Create the best documentation#

H3 - Create the best documentation#

H4 - Create the best documentation#

H5 - Create the best documentation#
H6 - Create the best documentation#

Emphasis#

Emphasis, aka italics, with asterisks or underscores.

Strong emphasis, aka bold, with asterisks or underscores.

Combined emphasis with asterisks and underscores.

Strikethrough uses two tildes. Scratch this.


Lists#

  1. First ordered list item
  2. Another item
    • Unordered sub-list.
  3. Actual numbers don't matter, just that it's a number
    1. Ordered sub-list
  4. And another item.
  • Unordered list can use asterisks
  • Or minuses
  • Or pluses

Links#

I'm an inline-style link

I'm an inline-style link with title

I'm a reference-style link

You can use numbers for reference-style link definitions

Or leave it empty and use the link text itself.

URLs and URLs in angle brackets will automatically get turned into links. http://www.example.com/ or http://www.example.com/ and sometimes example.com (but not on GitHub, for example).

Some text to show that the reference links can follow later.


Images#

Here's our logo (hover to see the title text):

Inline-style: alt text

Reference-style: alt text

Images from any folder can be used by providing path to file. Path should be relative to markdown file.

img


Code#

var s = 'JavaScript syntax highlighting';
alert(s);
s = "Python syntax highlighting"
print(s)
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.
function highlightMe() {
console.log('This line can be highlighted!');
}

Tables#

Colons can be used to align columns.

TablesAreCool
col 3 isright-aligned\$1600
col 2 iscentered\$12
zebra stripesare neat\$1

There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.

MarkdownLessPretty
Stillrendersnicely
123

Blockquotes#

Blockquotes are very handy in email to emulate reply text. This line is part of the same quote.

Quote break.

This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can put Markdown into a blockquote.


Inline HTML#

Definition list
Is something people use sometimes.
Markdown in HTML
Does *not* work **very** well. Use HTML tags.

Line Breaks#

Here's a line for us to start with.

This line is separated from the one above by two newlines, so it will be a separate paragraph.

This line is also a separate paragraph, but... This line is only separated by a single newline, so it's a separate line in the same paragraph.


Admonitions#

note

This is a note

tip

This is a tip

important

This is important

caution

This is a caution

warning

This is a warning

- - + + diff --git a/dist/src/docs/docs/doc2/index.html b/dist/src/docs/docs/doc2/index.html index 4a5cdae3..b7148102 100644 --- a/dist/src/docs/docs/doc2/index.html +++ b/dist/src/docs/docs/doc2/index.html @@ -7,8 +7,8 @@ Document Number 2 | Tricktionary - - + + @@ -21,8 +21,8 @@
- - + + diff --git a/dist/src/docs/docs/doc3/index.html b/dist/src/docs/docs/doc3/index.html index fd36c242..b64ef322 100644 --- a/dist/src/docs/docs/doc3/index.html +++ b/dist/src/docs/docs/doc3/index.html @@ -7,8 +7,8 @@ This is Document Number 3 | Tricktionary - - + + @@ -21,8 +21,8 @@

This is Document Number 3

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ac euismod odio, eu consequat dui. Nullam molestie consectetur risus id imperdiet. Proin sodales ornare turpis, non mollis massa ultricies id. Nam at nibh scelerisque, feugiat ante non, dapibus tortor. Vivamus volutpat diam quis tellus elementum bibendum. Praesent semper gravida velit quis aliquam. Etiam in cursus neque. Nam lectus ligula, malesuada et mauris a, bibendum faucibus mi. Phasellus ut interdum felis. Phasellus in odio pulvinar, porttitor urna eget, fringilla lectus. Aliquam sollicitudin est eros. Mauris consectetur quam vitae mauris interdum hendrerit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Duis et egestas libero, imperdiet faucibus ipsum. Sed posuere eget urna vel feugiat. Vivamus a arcu sagittis, fermentum urna dapibus, congue lectus. Fusce vulputate porttitor nisl, ac cursus elit volutpat vitae. Nullam vitae ipsum egestas, convallis quam non, porta nibh. Morbi gravida erat nec neque bibendum, eu pellentesque velit posuere. Fusce aliquam erat eu massa eleifend tristique.

Sed consequat sollicitudin ipsum eget tempus. Integer a aliquet velit. In justo nibh, pellentesque non suscipit eget, gravida vel lacus. Donec odio ante, malesuada in massa quis, pharetra tristique ligula. Donec eros est, tristique eget finibus quis, semper non nisl. Vivamus et elit nec enim ornare placerat. Sed posuere odio a elit cursus sagittis.

Phasellus feugiat purus eu tortor ultrices finibus. Ut libero nibh, lobortis et libero nec, dapibus posuere eros. Sed sagittis euismod justo at consectetur. Nulla finibus libero placerat, cursus sapien at, eleifend ligula. Vivamus elit nisl, hendrerit ac nibh eu, ultrices tempus dui. Nam tellus neque, commodo non rhoncus eu, gravida in risus. Nullam id iaculis tortor.

Nullam at odio in sem varius tempor sit amet vel lorem. Etiam eu hendrerit nisl. Fusce nibh mauris, vulputate sit amet ex vitae, congue rhoncus nisl. Sed eget tellus purus. Nullam tempus commodo erat ut tristique. Cras accumsan massa sit amet justo consequat eleifend. Integer scelerisque vitae tellus id consectetur.

- - + + diff --git a/dist/src/docs/docs/eb1/index.html b/dist/src/docs/docs/eb1/index.html index 216d5aee..7f52395a 100644 --- a/dist/src/docs/docs/eb1/index.html +++ b/dist/src/docs/docs/eb1/index.html @@ -7,8 +7,8 @@ Elastic Beanstalk | Tricktionary - - + + @@ -21,8 +21,8 @@ - - + + diff --git a/dist/src/docs/docs/index.html b/dist/src/docs/docs/index.html index b3454e20..bc1c9db1 100644 --- a/dist/src/docs/docs/index.html +++ b/dist/src/docs/docs/index.html @@ -7,8 +7,8 @@ Start here | Tricktionary - - + + @@ -23,8 +23,8 @@
cd tricktionary-be
npm install

#

Commands

#

npm run build
  • Clean, lint, & transpile TS -> JS.

#

npm start
  • start the app.

#

- - + + diff --git a/dist/src/docs/docs/mdx/index.html b/dist/src/docs/docs/mdx/index.html index 8a151e8c..759f6ab5 100644 --- a/dist/src/docs/docs/mdx/index.html +++ b/dist/src/docs/docs/mdx/index.html @@ -7,8 +7,8 @@ Powered by MDX | Tricktionary - - + + @@ -21,8 +21,8 @@

Powered by MDX

You can write JSX and use React components within your Markdown thanks to MDX.

Docusaurus green and Facebook blue are my favorite colors.

I can write Markdown alongside my JSX!

- - + + diff --git a/dist/src/docs/docs/sockets/index.html b/dist/src/docs/docs/sockets/index.html index c54161a7..2f29999e 100644 --- a/dist/src/docs/docs/sockets/index.html +++ b/dist/src/docs/docs/sockets/index.html @@ -7,8 +7,8 @@ Web Sockets | Tricktionary - - + + @@ -21,8 +21,8 @@

Web Sockets

Web Socket library: Socket.io

Event Handlers

The web socket handlers provide us with a realtime engine to:

  • publish current game-state to the players
  • communicate with the host
  • handle server-side game logic
  • make calls to the API, persisting data
caution

The following documentation was automatically generated and may not feel as friendly as this warning.

HERE BE MODULES

- - + + diff --git a/dist/src/docs/docs/tricktionary/EB-README/index.html b/dist/src/docs/docs/tricktionary/EB-README/index.html index 0087b6cb..da1827a1 100644 --- a/dist/src/docs/docs/tricktionary/EB-README/index.html +++ b/dist/src/docs/docs/tricktionary/EB-README/index.html @@ -7,8 +7,8 @@ EB-README | Tricktionary - - + + @@ -22,8 +22,8 @@

EB-README

Tricktionary & The Elastic Beanstalk.#

a StorySquad API

Starring

  • NodeJS
  • TypeScript
  • Express
  • Knex
  • SocketIO

Deployed by

To deploy this on elastic beanstalk, download and install the eb CLI. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html#eb-cli3-install.scripts

#

initialize and create the environment

  • generate your .elasticbeanstalk/config.yml and be sure to choose the Nodejs platform during the initialization process.
eb init
  • create instance on the elastic beanstalk
eb create

#

develop, build, test

  • transpile the latest TypeScript
npm run build
  • run locally and test
npm run start

#

Deploymen via eb CLI

After writing a new feature or fixing a broken piece of legacy code.

  • make your pull request, then
eb deploy

#

*To simplify the deployment process, all transpiled code is committed. img

Node.js 12 running on 64bit Amazon Linux 2/5.2.5

- - + + diff --git a/dist/src/docs/docs/tricktionary/README/index.html b/dist/src/docs/docs/tricktionary/README/index.html index 382f8025..ec33c848 100644 --- a/dist/src/docs/docs/tricktionary/README/index.html +++ b/dist/src/docs/docs/tricktionary/README/index.html @@ -7,8 +7,8 @@ About Tricktionary | Tricktionary - - + + @@ -21,8 +21,8 @@ - - + + diff --git a/dist/src/docs/docs/tricktionary/interfaces/crontab.crontask/index.html b/dist/src/docs/docs/tricktionary/interfaces/crontab.crontask/index.html index b893376c..e42c83f4 100644 --- a/dist/src/docs/docs/tricktionary/interfaces/crontab.crontask/index.html +++ b/dist/src/docs/docs/tricktionary/interfaces/crontab.crontask/index.html @@ -7,28 +7,28 @@ crontab.crontask | Tricktionary - - + + - +
-

crontab.crontask

tricktionary-be / Exports / crontab / cronTask

Interface: cronTask#

crontab.cronTask

a Tricktionary scheduled-task

name - semantic name of this task; ie "pulse check"

lobbycode - location code of game requiring this task

limit - maximum number of times to run this task

count - number of times this task has been run

created - timestamp when this task was created

last - timestamp when this task was last run

task - cron.ScheduledTask

Table of contents#

Properties#

Properties#

count#

count: number

Defined in: crontab.ts:26


created#

created: number

Defined in: crontab.ts:27


last#

last: number

Defined in: crontab.ts:28


limit#

limit: number

Defined in: crontab.ts:25


lobbyCode#

lobbyCode: string

Defined in: crontab.ts:24


name#

name: string

Defined in: crontab.ts:23


task#

task: ScheduledTask

Defined in: crontab.ts:29

+

crontab.crontask

tricktionary-be / Exports / crontab / cronTask

Interface: cronTask#

crontab.cronTask

a Tricktionary scheduled-task

name - semantic name of this task; ie "pulse check"

lobbycode - location code of game requiring this task

limit - maximum number of times to run this task

count - number of times this task has been run

created - timestamp when this task was created

last - timestamp when this task was last run

task - cron.ScheduledTask

Table of contents#

Properties#

Properties#

count#

count: number

Defined in: crontab.ts:26


created#

created: number

Defined in: crontab.ts:27


last#

last: number

Defined in: crontab.ts:28


limit#

limit: number

Defined in: crontab.ts:25


lobbyCode#

lobbyCode: string

Defined in: crontab.ts:24


name#

name: string

Defined in: crontab.ts:23


task#

task: ScheduledTask

Defined in: crontab.ts:29

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/interfaces/crontab.crontaskindex/index.html b/dist/src/docs/docs/tricktionary/interfaces/crontab.crontaskindex/index.html index 000467d8..c9b2e659 100644 --- a/dist/src/docs/docs/tricktionary/interfaces/crontab.crontaskindex/index.html +++ b/dist/src/docs/docs/tricktionary/interfaces/crontab.crontaskindex/index.html @@ -7,8 +7,8 @@ crontab.crontaskindex | Tricktionary - - + + @@ -21,8 +21,8 @@

crontab.crontaskindex

tricktionary-be / Exports / crontab / cronTaskIndex

Interface: cronTaskIndex#

crontab.cronTaskIndex

Tricktionary cronTask memo; indexed by lobbyCode

Indexable#

▪ [key: string]: cronTask

Tricktionary cronTask memo; indexed by lobbyCode

- - + + diff --git a/dist/src/docs/docs/tricktionary/modules/common/index.html b/dist/src/docs/docs/tricktionary/modules/common/index.html index 6730bbc0..1619eae1 100644 --- a/dist/src/docs/docs/tricktionary/modules/common/index.html +++ b/dist/src/docs/docs/tricktionary/modules/common/index.html @@ -7,28 +7,28 @@ common | Tricktionary - - + + - +
-

common

tricktionary-be / Exports / common

Module: common#

Table of contents#

Variables#

Functions#

Variables#

LC_LENGTH#

Const LC_LENGTH: number

Number of characters in lobbyCode

Defined in: common.ts:21


MAX_PLAYERS#

Const MAX_PLAYERS: string | 30

maximum number of players per lobby

Defined in: common.ts:16


VALUE_OF_BLUFF#

Const VALUE_OF_BLUFF: number

POINTS AWARDED when others choose your definition

Defined in: common.ts:35


VALUE_OF_TRUTH#

Const VALUE_OF_TRUTH: number

POINTS AWARDED when you choose correctly

Defined in: common.ts:28


b64#

Const b64: object

Base64 string operatoins

Type declaration:#

NameType
decode(str: string) => string
encode(str: string) => string

Defined in: common.ts:306


localAxios#

Const localAxios: AxiosInstance

Defined in: common.ts:6

Functions#

checkSettings#

checkSettings(settings: any): { message: any ; ok: boolean = false; settings: any } | { message: undefined ; ok: boolean = true; settings: any }

Parameters:#

NameType
settingsany

Returns: { message: any ; ok: boolean = false; settings: any } | { message: undefined ; ok: boolean = true; settings: any }

Defined in: common.ts:142


contributeWord#

contributeWord(word: string, definition: string, source: string): Promise<{ definition: string ; id: number = 0; source: string ; word: string }>

Parameters:#

NameType
wordstring
definitionstring
sourcestring

Returns: Promise<{ definition: string ; id: number = 0; source: string ; word: string }>

Defined in: common.ts:156


doIt#

doIt(game_id: string, firstPlace: any, secondPlace?: any, thirdPlace?: any): Promise<any[]>

Parameters:#

NameType
game_idstring
firstPlaceany
secondPlace?any
thirdPlace?any

Returns: Promise<any[]>

Defined in: common.ts:370


gameExists#

gameExists(lobbyCode: string, lobbies: any): boolean

returns true if LobbyCode can be found in Lobbies

Parameters:#

NameTypeDescription
lobbyCodestringLobbyCode of game
lobbiesanysocket-handler games

Returns: boolean

Defined in: common.ts:314


getDef#

getDef(user_id: string, definitionId: number): Promise<undefined | { definition: any ; user_id: string ; word: any }>

Parameters:#

NameType
user_idstring
definitionIdnumber

Returns: Promise<undefined | { definition: any ; user_id: string ; word: any }>

Defined in: common.ts:61


playerIdWasHost#

playerIdWasHost(playerId: string, lobbyCode: any, lobbies: any): { message: undefined ; ok: boolean } | { message: any ; ok: boolean = false }

Parameters:#

NameType
playerIdstring
lobbyCodeany
lobbiesany

Returns: { message: undefined ; ok: boolean } | { message: any ; ok: boolean = false }

Defined in: common.ts:133


playerIsHost#

playerIsHost(socket: any, lobbyCode: any, lobbies: any): { message: undefined ; ok: boolean } | { message: any ; ok: boolean = false }

Parameters:#

NameType
socketany
lobbyCodeany
lobbiesany

Returns: { message: undefined ; ok: boolean } | { message: any ; ok: boolean = false }

Defined in: common.ts:124


privateMessage#

privateMessage(io: any, socket: any, listener: string, message: string): Promise<void>

send message to socket.id

Parameters:#

NameTypeDescription
ioanyany (socketio)
socketanyany (socketio)
listenerstringstring
messagestringstring helper function; not directly exposed to the public. please handle all necessary authority role checks, prior to invocation.

Returns: Promise<void>

Defined in: common.ts:91


sendToHost#

sendToHost(io: any, socket: any, lobbies: any, category: string, message: any): Promise<boolean>

Parameters:#

NameType
ioany
socketany
lobbiesany
categorystring
messageany

Returns: Promise<boolean>

Defined in: common.ts:106


startNewRound#

startNewRound(host: string, word: any, lobbies: any, lobbyCode: string, lobbySettings: any): Promise<{ lobbies: undefined ; message: any ; ok: boolean = false; result: undefined ; roundId: undefined } | { lobbies: any ; message: undefined ; ok: boolean = false; result: any ; roundId: undefined } | { lobbies: any ; message: undefined ; ok: boolean = true; result: any ; roundId: any }>

Parameters:#

NameType
hoststring
wordany
lobbiesany
lobbyCodestring
lobbySettingsany

Returns: Promise<{ lobbies: undefined ; message: any ; ok: boolean = false; result: undefined ; roundId: undefined } | { lobbies: any ; message: undefined ; ok: boolean = false; result: any ; roundId: undefined } | { lobbies: any ; message: undefined ; ok: boolean = true; result: any ; roundId: any }>

Defined in: common.ts:222


tieBreakerMatch#

tieBreakerMatch(checkPoints: any[], game_id: string, lobbies: any[], lobbyCode: any): Promise<any[]>

Parameters:#

NameType
checkPointsany[]
game_idstring
lobbiesany[]
lobbyCodeany

Returns: Promise<any[]>

Defined in: common.ts:415


updatePlayerToken#

updatePlayerToken(io: any, socket: any, p_id: string, name: string, definition: string | undefined, points: number | undefined, lobbyCode: string, info?: string): Promise<any>

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
p_idstringPlayer UUID
namestringPlayer's username
definitionstring | undefinedPlayer's definition
pointsnumber | undefinedPlayer's points
lobbyCodestringPlayers current game code
info?string-

Returns: Promise<any>

Defined in: common.ts:328


whereAmI#

whereAmI(socket: any): lobbyCode

Parameters:#

NameTypeDescription
socketany(socket io)

Returns: lobbyCode

the lobby code attached to this socket (string).

Defined in: common.ts:283


wordFromID#

wordFromID(id: any): Promise<{ message: any ; ok: boolean = false; word: undefined } | { message: undefined ; ok: boolean = true; word: any }>

Parameters:#

NameType
idany

Returns: Promise<{ message: any ; ok: boolean = false; word: undefined } | { message: undefined ; ok: boolean = true; word: any }>

Defined in: common.ts:181

+

common

tricktionary-be / Exports / common

Module: common#

Table of contents#

Variables#

Functions#

Variables#

LC_LENGTH#

Const LC_LENGTH: number

Number of characters in lobbyCode

Defined in: common.ts:21


MAX_PLAYERS#

Const MAX_PLAYERS: string | 30

maximum number of players per lobby

Defined in: common.ts:16


VALUE_OF_BLUFF#

Const VALUE_OF_BLUFF: number

POINTS AWARDED when others choose your definition

Defined in: common.ts:35


VALUE_OF_TRUTH#

Const VALUE_OF_TRUTH: number

POINTS AWARDED when you choose correctly

Defined in: common.ts:28


b64#

Const b64: object

Base64 string operatoins

Type declaration:#

NameType
decode(str: string) => string
encode(str: string) => string

Defined in: common.ts:306


localAxios#

Const localAxios: AxiosInstance

Defined in: common.ts:6

Functions#

checkSettings#

checkSettings(settings: any): { message: any ; ok: boolean = false; settings: any } | { message: undefined ; ok: boolean = true; settings: any }

Parameters:#

NameType
settingsany

Returns: { message: any ; ok: boolean = false; settings: any } | { message: undefined ; ok: boolean = true; settings: any }

Defined in: common.ts:142


contributeWord#

contributeWord(word: string, definition: string, source: string): Promise<{ definition: string ; id: number = 0; source: string ; word: string }>

Parameters:#

NameType
wordstring
definitionstring
sourcestring

Returns: Promise<{ definition: string ; id: number = 0; source: string ; word: string }>

Defined in: common.ts:156


doIt#

doIt(game_id: string, firstPlace: any, secondPlace?: any, thirdPlace?: any): Promise<any[]>

Parameters:#

NameType
game_idstring
firstPlaceany
secondPlace?any
thirdPlace?any

Returns: Promise<any[]>

Defined in: common.ts:370


gameExists#

gameExists(lobbyCode: string, lobbies: any): boolean

returns true if LobbyCode can be found in Lobbies

Parameters:#

NameTypeDescription
lobbyCodestringLobbyCode of game
lobbiesanysocket-handler games

Returns: boolean

Defined in: common.ts:314


getDef#

getDef(user_id: string, definitionId: number): Promise<undefined | { definition: any ; user_id: string ; word: any }>

Parameters:#

NameType
user_idstring
definitionIdnumber

Returns: Promise<undefined | { definition: any ; user_id: string ; word: any }>

Defined in: common.ts:61


playerIdWasHost#

playerIdWasHost(playerId: string, lobbyCode: any, lobbies: any): { message: undefined ; ok: boolean } | { message: any ; ok: boolean = false }

Parameters:#

NameType
playerIdstring
lobbyCodeany
lobbiesany

Returns: { message: undefined ; ok: boolean } | { message: any ; ok: boolean = false }

Defined in: common.ts:133


playerIsHost#

playerIsHost(socket: any, lobbyCode: any, lobbies: any): { message: undefined ; ok: boolean } | { message: any ; ok: boolean = false }

Parameters:#

NameType
socketany
lobbyCodeany
lobbiesany

Returns: { message: undefined ; ok: boolean } | { message: any ; ok: boolean = false }

Defined in: common.ts:124


privateMessage#

privateMessage(io: any, socket: any, listener: string, message: string): Promise<void>

send message to socket.id

Parameters:#

NameTypeDescription
ioanyany (socketio)
socketanyany (socketio)
listenerstringstring
messagestringstring helper function; not directly exposed to the public. please handle all necessary authority role checks, prior to invocation.

Returns: Promise<void>

Defined in: common.ts:91


sendToHost#

sendToHost(io: any, socket: any, lobbies: any, category: string, message: any): Promise<boolean>

Parameters:#

NameType
ioany
socketany
lobbiesany
categorystring
messageany

Returns: Promise<boolean>

Defined in: common.ts:106


startNewRound#

startNewRound(host: string, word: any, lobbies: any, lobbyCode: string, lobbySettings: any): Promise<{ lobbies: undefined ; message: any ; ok: boolean = false; result: undefined ; roundId: undefined } | { lobbies: any ; message: undefined ; ok: boolean = false; result: any ; roundId: undefined } | { lobbies: any ; message: undefined ; ok: boolean = true; result: any ; roundId: any }>

Parameters:#

NameType
hoststring
wordany
lobbiesany
lobbyCodestring
lobbySettingsany

Returns: Promise<{ lobbies: undefined ; message: any ; ok: boolean = false; result: undefined ; roundId: undefined } | { lobbies: any ; message: undefined ; ok: boolean = false; result: any ; roundId: undefined } | { lobbies: any ; message: undefined ; ok: boolean = true; result: any ; roundId: any }>

Defined in: common.ts:222


tieBreakerMatch#

tieBreakerMatch(checkPoints: any[], game_id: string, lobbies: any[], lobbyCode: any): Promise<any[]>

Parameters:#

NameType
checkPointsany[]
game_idstring
lobbiesany[]
lobbyCodeany

Returns: Promise<any[]>

Defined in: common.ts:415


updatePlayerToken#

updatePlayerToken(io: any, socket: any, p_id: string, name: string, definition: string | undefined, points: number | undefined, lobbyCode: string, info?: string): Promise<any>

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
p_idstringPlayer UUID
namestringPlayer's username
definitionstring | undefinedPlayer's definition
pointsnumber | undefinedPlayer's points
lobbyCodestringPlayers current game code
info?string-

Returns: Promise<any>

Defined in: common.ts:328


whereAmI#

whereAmI(socket: any): lobbyCode

Parameters:#

NameTypeDescription
socketany(socket io)

Returns: lobbyCode

the lobby code attached to this socket (string).

Defined in: common.ts:283


wordFromID#

wordFromID(id: any): Promise<{ message: any ; ok: boolean = false; word: undefined } | { message: undefined ; ok: boolean = true; word: any }>

Parameters:#

NameType
idany

Returns: Promise<{ message: any ; ok: boolean = false; word: undefined } | { message: undefined ; ok: boolean = true; word: any }>

Defined in: common.ts:181

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/crontab/index.html b/dist/src/docs/docs/tricktionary/modules/crontab/index.html index 8f70a6f3..3626a2d9 100644 --- a/dist/src/docs/docs/tricktionary/modules/crontab/index.html +++ b/dist/src/docs/docs/tricktionary/modules/crontab/index.html @@ -7,28 +7,28 @@ crontab | Tricktionary - - + + - +
-

crontab

tricktionary-be / Exports / crontab

Module: crontab#

Table of contents#

Interfaces#

Variables#

Functions#

Variables#

lobbyTasks#

Const lobbyTasks: cronTaskIndex

Defined in: crontab.ts:39

Functions#

getScheduledTask#

getScheduledTask(lobbyCode: string): cronTask

Parameters:#

NameType
lobbyCodestring

Returns: cronTask

a Tricktionary scheduled-task

Defined in: crontab.ts:143


schedulePulseCheck#

schedulePulseCheck(io: any, lobbies: any, lobbyCode: string, limit: number): void

schedule a 'pulse check' for re-connected players in this game (lobbyCode)

creates a Tricktionary scheduled-task

Parameters:#

NameType
ioany
lobbiesany
lobbyCodestring
limitnumber

Returns: void

Defined in: crontab.ts:69


scheduleTimer#

scheduleTimer(io: any, lobbyCode: string, limit: number): void

Parameters:#

NameType
ioany
lobbyCodestring
limitnumber

Returns: void

Defined in: crontab.ts:153


startScheduledTask#

startScheduledTask(lobbyCode: string): void

Parameters:#

NameType
lobbyCodestring

Returns: void

Defined in: crontab.ts:130


stopScheduledTask#

stopScheduledTask(lobbyCode: string): void

Parameters:#

NameType
lobbyCodestring

Returns: void

Defined in: crontab.ts:120

+

crontab

tricktionary-be / Exports / crontab

Module: crontab#

Table of contents#

Interfaces#

Variables#

Functions#

Variables#

lobbyTasks#

Const lobbyTasks: cronTaskIndex

Defined in: crontab.ts:39

Functions#

getScheduledTask#

getScheduledTask(lobbyCode: string): cronTask

Parameters:#

NameType
lobbyCodestring

Returns: cronTask

a Tricktionary scheduled-task

Defined in: crontab.ts:143


schedulePulseCheck#

schedulePulseCheck(io: any, lobbies: any, lobbyCode: string, limit: number): void

schedule a 'pulse check' for re-connected players in this game (lobbyCode)

creates a Tricktionary scheduled-task

Parameters:#

NameType
ioany
lobbiesany
lobbyCodestring
limitnumber

Returns: void

Defined in: crontab.ts:69


scheduleTimer#

scheduleTimer(io: any, lobbyCode: string, limit: number): void

Parameters:#

NameType
ioany
lobbyCodestring
limitnumber

Returns: void

Defined in: crontab.ts:153


startScheduledTask#

startScheduledTask(lobbyCode: string): void

Parameters:#

NameType
lobbyCodestring

Returns: void

Defined in: crontab.ts:130


stopScheduledTask#

stopScheduledTask(lobbyCode: string): void

Parameters:#

NameType
lobbyCodestring

Returns: void

Defined in: crontab.ts:120

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handledisconnection/index.html b/dist/src/docs/docs/tricktionary/modules/handledisconnection/index.html index 806e0e65..d5c38299 100644 --- a/dist/src/docs/docs/tricktionary/modules/handledisconnection/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handledisconnection/index.html @@ -7,28 +7,28 @@ handledisconnection | Tricktionary - - + + - +
-
+
- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handleemojismash/index.html b/dist/src/docs/docs/tricktionary/modules/handleemojismash/index.html index e2d0d121..9ed1da81 100644 --- a/dist/src/docs/docs/tricktionary/modules/handleemojismash/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handleemojismash/index.html @@ -7,28 +7,28 @@ handleemojismash | Tricktionary - - + + - +
-

handleemojismash

tricktionary-be / Exports / handleEmojiSmash

Module: handleEmojiSmash#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, definitionId: number, reactionId: number): Promise<void>

increase emoji (reactionID) smash counter for definitionID

Parameters:#

NameType
ioany
socketany
lobbiesany
definitionIdnumber
reactionIdnumber

Returns: Promise<void>

Defined in: handleEmojiSmash.ts:13

+

handleemojismash

tricktionary-be / Exports / handleEmojiSmash

Module: handleEmojiSmash#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, definitionId: number, reactionId: number): Promise<void>

increase emoji (reactionID) smash counter for definitionID

Parameters:#

NameType
ioany
socketany
lobbiesany
definitionIdnumber
reactionIdnumber

Returns: Promise<void>

Defined in: handleEmojiSmash.ts:13

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handleerrormessage/index.html b/dist/src/docs/docs/tricktionary/modules/handleerrormessage/index.html index 330a338c..12164542 100644 --- a/dist/src/docs/docs/tricktionary/modules/handleerrormessage/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handleerrormessage/index.html @@ -7,28 +7,28 @@ handleerrormessage | Tricktionary - - + + - +
-

handleerrormessage

tricktionary-be / Exports / handleErrorMessage

Module: handleErrorMessage#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, code: number, error: string | undefined): Promise<void>

emit "error" message to player at socket.id

Parameters:#

NameTypeDescription
ioanyany (socketio)
socketanyany (socketio)
codenumber-
errorstring | undefinedstring

Returns: Promise<void>

Defined in: handleErrorMessage.ts:9

+

handleerrormessage

tricktionary-be / Exports / handleErrorMessage

Module: handleErrorMessage#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, code: number, error: string | undefined): Promise<void>

emit "error" message to player at socket.id

Parameters:#

NameTypeDescription
ioanyany (socketio)
socketanyany (socketio)
codenumber-
errorstring | undefinedstring

Returns: Promise<void>

Defined in: handleErrorMessage.ts:9

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlegetreactions/index.html b/dist/src/docs/docs/tricktionary/modules/handlegetreactions/index.html index 13a42905..fd52c490 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlegetreactions/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlegetreactions/index.html @@ -7,28 +7,28 @@ handlegetreactions | Tricktionary - - + + - +
-

handlegetreactions

tricktionary-be / Exports / handleGetReactions

Module: handleGetReactions#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any): Promise<void>

Parameters:#

NameType
ioany
socketany
lobbiesany

Returns: Promise<void>

Defined in: handleGetReactions.ts:4

+

handlegetreactions

tricktionary-be / Exports / handleGetReactions

Module: handleGetReactions#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any): Promise<void>

Parameters:#

NameType
ioany
socketany
lobbiesany

Returns: Promise<void>

Defined in: handleGetReactions.ts:4

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handleguess/index.html b/dist/src/docs/docs/tricktionary/modules/handleguess/index.html index 4b179e33..d1e15315 100644 --- a/dist/src/docs/docs/tricktionary/modules/handleguess/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handleguess/index.html @@ -7,28 +7,28 @@ handleguess | Tricktionary - - + + - +
-

handleguess

tricktionary-be / Exports / handleGuess

Module: handleGuess#

Table of contents#

Functions#

Functions#

handleArrayOfGuesses#

handleArrayOfGuesses(io: any, socket: any, lobbyCode: any, lobbies: any, guesses: any[]): Promise<void>

Parameters:#

NameType
ioany
socketany
lobbyCodeany
lobbiesany
guessesany[]

Returns: Promise<void>

Defined in: handleGuess.ts:5

+

handleguess

tricktionary-be / Exports / handleGuess

Module: handleGuess#

Table of contents#

Functions#

Functions#

handleArrayOfGuesses#

handleArrayOfGuesses(io: any, socket: any, lobbyCode: any, lobbies: any, guesses: any[]): Promise<void>

Parameters:#

NameType
ioany
socketany
lobbyCodeany
lobbiesany
guessesany[]

Returns: Promise<void>

Defined in: handleGuess.ts:5

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlelobbycreate/index.html b/dist/src/docs/docs/tricktionary/modules/handlelobbycreate/index.html index 6374060f..8ea98d83 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlelobbycreate/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlelobbycreate/index.html @@ -7,28 +7,28 @@ handlelobbycreate | Tricktionary - - + + - +
-

handlelobbycreate

tricktionary-be / Exports / handleLobbyCreate

Module: handleLobbyCreate#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, username: string, lobbies: any): Promise<void>

Parameters:#

NameType
ioany
socketany
usernamestring
lobbiesany

Returns: Promise<void>

Defined in: handleLobbyCreate.ts:11

+

handlelobbycreate

tricktionary-be / Exports / handleLobbyCreate

Module: handleLobbyCreate#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, username: string, lobbies: any): Promise<void>

Parameters:#

NameType
ioany
socketany
usernamestring
lobbiesany

Returns: Promise<void>

Defined in: handleLobbyCreate.ts:11

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlelobbyjoin/index.html b/dist/src/docs/docs/tricktionary/modules/handlelobbyjoin/index.html index cdc6c6bd..381b661f 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlelobbyjoin/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlelobbyjoin/index.html @@ -7,28 +7,28 @@ handlelobbyjoin | Tricktionary - - + + - +
-

handlelobbyjoin

tricktionary-be / Exports / handleLobbyJoin

Module: handleLobbyJoin#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, username: string, lobbyCode: any, lobbies: any, doCheckPulse: boolean | undefined): Promise<void>

Connects the player with the active game being played.

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
usernamestringPlayer's name
lobbyCodeanyPlayer's join code
lobbiesanygame-state
doCheckPulseboolean | undefined-

Returns: Promise<void>

Defined in: handleLobbyJoin.ts:22

+

handlelobbyjoin

tricktionary-be / Exports / handleLobbyJoin

Module: handleLobbyJoin#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, username: string, lobbyCode: any, lobbies: any, doCheckPulse: boolean | undefined): Promise<void>

Connects the player with the active game being played.

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
usernamestringPlayer's name
lobbyCodeanyPlayer's join code
lobbiesanygame-state
doCheckPulseboolean | undefined-

Returns: Promise<void>

Defined in: handleLobbyJoin.ts:22

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlelobbyleave/index.html b/dist/src/docs/docs/tricktionary/modules/handlelobbyleave/index.html index bc055e91..9a5dcc5e 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlelobbyleave/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlelobbyleave/index.html @@ -7,28 +7,28 @@ handlelobbyleave | Tricktionary - - + + - +
-

handlelobbyleave

tricktionary-be / Exports / handleLobbyLeave

Module: handleLobbyLeave#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any): void

Parameters:#

NameType
ioany
socketany
lobbiesany

Returns: void

Defined in: handleLobbyLeave.ts:1

+

handlelobbyleave

tricktionary-be / Exports / handleLobbyLeave

Module: handleLobbyLeave#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any): void

Parameters:#

NameType
ioany
socketany
lobbiesany

Returns: void

Defined in: handleLobbyLeave.ts:1

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlemessagehost/index.html b/dist/src/docs/docs/tricktionary/modules/handlemessagehost/index.html index 184daae0..a2a1d046 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlemessagehost/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlemessagehost/index.html @@ -7,28 +7,28 @@ handlemessagehost | Tricktionary - - + + - +
-

handlemessagehost

tricktionary-be / Exports / handleMessageHost

Module: handleMessageHost#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, category: string, message: any): Promise<void>

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
lobbiesanygame-state
categorystringwhat host should listen for
messageanyinformation being sent to the host

Returns: Promise<void>

Defined in: handleMessageHost.ts:11

+

handlemessagehost

tricktionary-be / Exports / handleMessageHost

Module: handleMessageHost#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, category: string, message: any): Promise<void>

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
lobbiesanygame-state
categorystringwhat host should listen for
messageanyinformation being sent to the host

Returns: Promise<void>

Defined in: handleMessageHost.ts:11

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlemessageplayer/index.html b/dist/src/docs/docs/tricktionary/modules/handlemessageplayer/index.html index 1a6d142a..6fd74106 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlemessageplayer/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlemessageplayer/index.html @@ -7,28 +7,28 @@ handlemessageplayer | Tricktionary - - + + - +
-

handlemessageplayer

tricktionary-be / Exports / handleMessagePlayer

Module: handleMessagePlayer#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, playerId: string, category: string, message: any): Promise<void>

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
lobbiesanygame-state
playerIdstringsocket.id of recipient
categorystringrecipient listener event
messageanyinformation being sent to the recipient

Returns: Promise<void>

Defined in: handleMessagePlayer.ts:12

+

handlemessageplayer

tricktionary-be / Exports / handleMessagePlayer

Module: handleMessagePlayer#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, playerId: string, category: string, message: any): Promise<void>

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
lobbiesanygame-state
playerIdstringsocket.id of recipient
categorystringrecipient listener event
messageanyinformation being sent to the recipient

Returns: Promise<void>

Defined in: handleMessagePlayer.ts:12

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlenewplayer/index.html b/dist/src/docs/docs/tricktionary/modules/handlenewplayer/index.html index 5b3b5a4b..ee966a47 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlenewplayer/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlenewplayer/index.html @@ -7,28 +7,28 @@ handlenewplayer | Tricktionary - - + + - +
-

handlenewplayer

tricktionary-be / Exports / handleNewPlayer

Module: handleNewPlayer#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any): Promise<undefined | { message: any ; ok: boolean = false }>

Create a new Player record for this user

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)

Returns: Promise<undefined | { message: any ; ok: boolean = false }>

Defined in: handleNewPlayer.ts:9

+

handlenewplayer

tricktionary-be / Exports / handleNewPlayer

Module: handleNewPlayer#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any): Promise<undefined | { message: any ; ok: boolean = false }>

Create a new Player record for this user

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)

Returns: Promise<undefined | { message: any ; ok: boolean = false }>

Defined in: handleNewPlayer.ts:9

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handleplayagain/index.html b/dist/src/docs/docs/tricktionary/modules/handleplayagain/index.html index b93c219e..0f3d96c9 100644 --- a/dist/src/docs/docs/tricktionary/modules/handleplayagain/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handleplayagain/index.html @@ -7,28 +7,28 @@ handleplayagain | Tricktionary - - + + - +
-

handleplayagain

tricktionary-be / Exports / handlePlayAgain

Module: handlePlayAgain#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: any, lobbies: any, settings: any): void

Parameters:#

NameType
ioany
socketany
lobbyCodeany
lobbiesany
settingsany

Returns: void

Defined in: handlePlayAgain.ts:4

+

handleplayagain

tricktionary-be / Exports / handlePlayAgain

Module: handlePlayAgain#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: any, lobbies: any, settings: any): void

Parameters:#

NameType
ioany
socketany
lobbyCodeany
lobbiesany
settingsany

Returns: void

Defined in: handlePlayAgain.ts:4

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handleremotepaint/index.html b/dist/src/docs/docs/tricktionary/modules/handleremotepaint/index.html index 754ddb4e..6528dd85 100644 --- a/dist/src/docs/docs/tricktionary/modules/handleremotepaint/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handleremotepaint/index.html @@ -7,28 +7,28 @@ handleremotepaint | Tricktionary - - + + - +
-

handleremotepaint

tricktionary-be / Exports / handleRemotePaint

Module: handleRemotePaint#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, coords: number[]): Promise<void>

remote paint on canvas

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbiesanymemo-object
coordsnumber[]mouse coordinates [x, y, x, y]

Returns: Promise<void>

Defined in: handleRemotePaint.ts:13

+

handleremotepaint

tricktionary-be / Exports / handleRemotePaint

Module: handleRemotePaint#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, coords: number[]): Promise<void>

remote paint on canvas

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbiesanymemo-object
coordsnumber[]mouse coordinates [x, y, x, y]

Returns: Promise<void>

Defined in: handleRemotePaint.ts:13

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlereturningplayer/index.html b/dist/src/docs/docs/tricktionary/modules/handlereturningplayer/index.html index 8aedcbac..2b61bc98 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlereturningplayer/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlereturningplayer/index.html @@ -7,29 +7,29 @@ handlereturningplayer | Tricktionary - - + + - +

handlereturningplayer

tricktionary-be / Exports / handleReturningPlayer

Module: handleReturningPlayer#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, token: string | undefined, lobbies: any): Promise<undefined | { message: any ; ok: boolean = false }>

Determine whether or not the player should auto re-join an existing game.

In the case of a rejoin; It calls handleLobbyJoin -after marking the old player with the incoming socket.id

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
tokenstring | undefinedJWT
lobbiesanygame-state

Returns: Promise<undefined | { message: any ; ok: boolean = false }>

Defined in: handleReturningPlayer.ts:17

+after marking the old player with the incoming socket.id

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
tokenstring | undefinedJWT
lobbiesanygame-state

Returns: Promise<undefined | { message: any ; ok: boolean = false }>

Defined in: handleReturningPlayer.ts:17

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlerevealresults/index.html b/dist/src/docs/docs/tricktionary/modules/handlerevealresults/index.html index f5bdc73e..88210dfb 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlerevealresults/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlerevealresults/index.html @@ -7,28 +7,28 @@ handlerevealresults | Tricktionary - - + + - +
-

handlerevealresults

tricktionary-be / Exports / handleRevealResults

Module: handleRevealResults#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: string, lobbies: any, guesses: any[]): Promise<void>

Reveal results to players

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
lobbyCodestringkey-string
lobbiesanymemo-object
guessesany[]array

Returns: Promise<void>

Defined in: handleRevealResults.ts:13

+

handlerevealresults

tricktionary-be / Exports / handleRevealResults

Module: handleRevealResults#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: string, lobbies: any, guesses: any[]): Promise<void>

Reveal results to players

Parameters:#

NameTypeDescription
ioany(socket io)
socketany(socket io)
lobbyCodestringkey-string
lobbiesanymemo-object
guessesany[]array

Returns: Promise<void>

Defined in: handleRevealResults.ts:13

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlesetfinale/index.html b/dist/src/docs/docs/tricktionary/modules/handlesetfinale/index.html index ec1defe9..6eefec4e 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlesetfinale/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlesetfinale/index.html @@ -7,29 +7,29 @@ handlesetfinale | Tricktionary - - + + - +

handlesetfinale

tricktionary-be / Exports / handleSetFinale

Module: handleSetFinale#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: any, lobbies: any): Promise<void>

Allows the host to store and retrieve

1) three top scoring users -2) these users' top-three definitions for the whole game (from any round)

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbyCodeanykey-string
lobbiesanymemo-object

Returns: Promise<void>

Defined in: handleSetFinale.ts:23

+2) these users' top-three definitions for the whole game (from any round)

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbyCodeanykey-string
lobbiesanymemo-object

Returns: Promise<void>

Defined in: handleSetFinale.ts:23

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlesetnewhost/index.html b/dist/src/docs/docs/tricktionary/modules/handlesetnewhost/index.html index 0a276d25..4dd13753 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlesetnewhost/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlesetnewhost/index.html @@ -7,28 +7,28 @@ handlesetnewhost | Tricktionary - - + + - +
-

handlesetnewhost

tricktionary-be / Exports / handleSetNewHost

Module: handleSetNewHost#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: any, lobbies: any, newHost: string, guesses: any[]): Promise<void>

Allow the current host to trade roles with a player. *experimental feature

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbyCodeanykey-string
lobbiesanymemo-object
newHoststringplayerID-string
guessesany[]the hosts' list of the other player's guesses

Returns: Promise<void>

Defined in: handleSetNewHost.ts:15

+

handlesetnewhost

tricktionary-be / Exports / handleSetNewHost

Module: handleSetNewHost#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: any, lobbies: any, newHost: string, guesses: any[]): Promise<void>

Allow the current host to trade roles with a player. *experimental feature

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbyCodeanykey-string
lobbiesanymemo-object
newHoststringplayerID-string
guessesany[]the hosts' list of the other player's guesses

Returns: Promise<void>

Defined in: handleSetNewHost.ts:15

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlesetphase/index.html b/dist/src/docs/docs/tricktionary/modules/handlesetphase/index.html index 6ee8af92..1c4a7b5f 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlesetphase/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlesetphase/index.html @@ -7,28 +7,28 @@ handlesetphase | Tricktionary - - + + - +
-

handlesetphase

tricktionary-be / Exports / handleSetPhase

Module: handleSetPhase#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: any, lobbies: any, phase: string): Promise<void>

Allows the host to change game state. *experimental feature

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbyCodeanykey-string
lobbiesanymemo-object
phasestringgamestate-string

Returns: Promise<void>

Defined in: handleSetPhase.ts:14

+

handlesetphase

tricktionary-be / Exports / handleSetPhase

Module: handleSetPhase#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: any, lobbies: any, phase: string): Promise<void>

Allows the host to change game state. *experimental feature

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbyCodeanykey-string
lobbiesanymemo-object
phasestringgamestate-string

Returns: Promise<void>

Defined in: handleSetPhase.ts:14

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlestartgame/index.html b/dist/src/docs/docs/tricktionary/modules/handlestartgame/index.html index d3c3d528..d5437f43 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlestartgame/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlestartgame/index.html @@ -7,28 +7,28 @@ handlestartgame | Tricktionary - - + + - +
-

handlestartgame

tricktionary-be / Exports / handleStartGame

Module: handleStartGame#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: any, lobbies: any, settings: any, hostChoice: any): Promise<void>

Parameters:#

NameType
ioany
socketany
lobbyCodeany
lobbiesany
settingsany
hostChoiceany

Returns: Promise<void>

Defined in: handleStartGame.ts:11

+

handlestartgame

tricktionary-be / Exports / handleStartGame

Module: handleStartGame#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbyCode: any, lobbies: any, settings: any, hostChoice: any): Promise<void>

Parameters:#

NameType
ioany
socketany
lobbyCodeany
lobbiesany
settingsany
hostChoiceany

Returns: Promise<void>

Defined in: handleStartGame.ts:11

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handlesubmitdefinition/index.html b/dist/src/docs/docs/tricktionary/modules/handlesubmitdefinition/index.html index 04228dbc..afc54cb8 100644 --- a/dist/src/docs/docs/tricktionary/modules/handlesubmitdefinition/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handlesubmitdefinition/index.html @@ -7,28 +7,28 @@ handlesubmitdefinition | Tricktionary - - + + - +
-

handlesubmitdefinition

tricktionary-be / Exports / handleSubmitDefinition

Module: handleSubmitDefinition#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, definition: string, lobbyCode: any, lobbies: any): Promise<void>

Parameters:#

NameType
ioany
socketany
definitionstring
lobbyCodeany
lobbiesany

Returns: Promise<void>

Defined in: handleSubmitDefinition.ts:5

+

handlesubmitdefinition

tricktionary-be / Exports / handleSubmitDefinition

Module: handleSubmitDefinition#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, definition: string, lobbyCode: any, lobbies: any): Promise<void>

Parameters:#

NameType
ioany
socketany
definitionstring
lobbyCodeany
lobbiesany

Returns: Promise<void>

Defined in: handleSubmitDefinition.ts:5

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handletimesync/index.html b/dist/src/docs/docs/tricktionary/modules/handletimesync/index.html index 3af26ed7..d65a7619 100644 --- a/dist/src/docs/docs/tricktionary/modules/handletimesync/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handletimesync/index.html @@ -7,28 +7,28 @@ handletimesync | Tricktionary - - + + - +
-

handletimesync

tricktionary-be / Exports / handleTimeSync

Module: handleTimeSync#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, seconds: number): Promise<void>

emit ("synchronize", seconds) to all connected players; excluding the current host

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbiesanymemo-object
secondsnumber-

Returns: Promise<void>

Defined in: handleTimeSync.ts:17

+

handletimesync

tricktionary-be / Exports / handleTimeSync

Module: handleTimeSync#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, seconds: number): Promise<void>

emit ("synchronize", seconds) to all connected players; excluding the current host

Parameters:#

NameTypeDescription
ioany(socketio)
socketany(socketio)
lobbiesanymemo-object
secondsnumber-

Returns: Promise<void>

Defined in: handleTimeSync.ts:17

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/handleupdateusername/index.html b/dist/src/docs/docs/tricktionary/modules/handleupdateusername/index.html index 2693c8a8..11b408ef 100644 --- a/dist/src/docs/docs/tricktionary/modules/handleupdateusername/index.html +++ b/dist/src/docs/docs/tricktionary/modules/handleupdateusername/index.html @@ -7,28 +7,28 @@ handleupdateusername | Tricktionary - - + + - +
-

handleupdateusername

tricktionary-be / Exports / handleUpdateUsername

Module: handleUpdateUsername#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, newUsername: string): Promise<void>

Parameters:#

NameType
ioany
socketany
lobbiesany
newUsernamestring

Returns: Promise<void>

Defined in: handleUpdateUsername.ts:4

+

handleupdateusername

tricktionary-be / Exports / handleUpdateUsername

Module: handleUpdateUsername#

Table of contents#

Functions#

Functions#

default#

default(io: any, socket: any, lobbies: any, newUsername: string): Promise<void>

Parameters:#

NameType
ioany
socketany
lobbiesany
newUsernamestring

Returns: Promise<void>

Defined in: handleUpdateUsername.ts:4

- - + + - + \ No newline at end of file diff --git a/dist/src/docs/docs/tricktionary/modules/index.html b/dist/src/docs/docs/tricktionary/modules/index.html index 74fbc6ac..3b395efd 100644 --- a/dist/src/docs/docs/tricktionary/modules/index.html +++ b/dist/src/docs/docs/tricktionary/modules/index.html @@ -7,8 +7,8 @@ modules | Tricktionary - - + + @@ -21,8 +21,8 @@ - - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-auth/index.html b/dist/src/docs/docs/tricktionary/src-api-auth/index.html index cbe38f06..9457bf05 100644 --- a/dist/src/docs/docs/tricktionary/src-api-auth/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-auth/index.html @@ -7,8 +7,8 @@ src-api-auth | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-auth

Auth

MethodURLDescription
POST/api/auth/new-playercreate a new player record

Returns:

{
"player":
{
"id": UUID,
"token": TOKEN,
"last_played": "update me",
"last_user_id": SOCKET.ID,
"jump_code": UNUSED,
"name": UNUSED,
"created_at": TIMESTAMP (now)
}
}
MethodURLDescription
POST/api/auth/update-tokenupdate a player's token

Request body (any of):

{
s_id,
p_id,
name,
definition,
points
}

Returns:

{
"token": TOKEN
}
MethodURLDescription
GET/find-player/:last_user_idlookup by player's last socket id

Returns:

{
"player":
{
"id": UUID,
"token": TOKEN,
"last_played": LOBBYCODE,
"last_user_id": SOCKET.ID,
"jump_code": UNUSED,
"name": USERNAME,
"created_at": TIMESTAMP
}
}
MethodURLDescription
POST/loginconnect with Tricktionary

Request body:

{
"user_id": SOCKET.ID,
"last_token": TOKEN
}

Returns:

{
"message": "welcome",
"player":
{
"id": UUID,
"token": TOKEN,
"last_played": LOBBYCODE,
"last_user_id": SOCKET.ID,
"jump_code": UNUSED,
"name": USERNAME,
"created_at": TIMESTAMP
}
"token": NEW TOKEN,
}
MethodURLDescription
POST/api/auth/recalldecode a player token

Request body:

{
"token": TOKEN
}

Returns:

{
ok: BOOLEAN,
last_user_id: STRING,
player_id: UUID,
username: STRING,
definition: STRING,
points: NUMBER,
last_lobby: STRING
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-clever/index.html b/dist/src/docs/docs/tricktionary/src-api-clever/index.html index 6f238c37..f0f700ac 100644 --- a/dist/src/docs/docs/tricktionary/src-api-clever/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-clever/index.html @@ -7,8 +7,8 @@ src-api-clever | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-clever

Clever

MethodURLDescription
GET/api/clevertesting middleware

GET /api/clever#

Request Header:

{
Authorization: "Bearer TOKEN",
}

Returns:

{
ok: true,
message: "Clever student verified"
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-definitionReactions/index.html b/dist/src/docs/docs/tricktionary/src-api-definitionReactions/index.html index 4178b728..850abf10 100644 --- a/dist/src/docs/docs/tricktionary/src-api-definitionReactions/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-definitionReactions/index.html @@ -7,8 +7,8 @@ src-api-definitionReactions | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-definitionReactions

Definition Reactions

MethodURLDescription
POST/api/definition-reactionsplayer reacted to a definition

POST /api/definition-reactions#

Request body:

{
user_id: WAKAwakaWAKA,
round_id: 13,
reaction_id: 2,
definition_id: 1357,
game_finished: false
}

Returns:

{
"added" : true
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-definitions/index.html b/dist/src/docs/docs/tricktionary/src-api-definitions/index.html index 618cf4cc..967f2cff 100644 --- a/dist/src/docs/docs/tricktionary/src-api-definitions/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-definitions/index.html @@ -7,8 +7,8 @@ src-api-definitions | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-definitions

Definitions

MethodURLDescription
POST/api/definitions/newcalled from handleSubmitDefinition

POST /api/definitions/new#

Request body:

{
playerId: WAKAwakaWAKA,
definition: "a well documented app",
roundId: 13
}

Returns:

{
definitionId: 1357
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-player/index.html b/dist/src/docs/docs/tricktionary/src-api-player/index.html index c5051b2a..c31b7031 100644 --- a/dist/src/docs/docs/tricktionary/src-api-player/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-player/index.html @@ -7,8 +7,8 @@ src-api-player | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-player

Player

MethodURLDescription
GET/api/player/id/:UUIDlookup by player's uuid
GET/api/player/last-user-id/:SOCKET.IDlookup by player's last user_id

Returns:

{
"player":
{
"id": UUID,
"token": TOKEN,
"last_played": LOBBYCODE,
"last_user_id": SOCKET.ID,
"jump_code": UNUSED,
"name": USERNAME,
"created_at": TIMESTAMP
}
}
MethodURLDescription
PUT/api/player/id/:UUIDupdate a player's record

Request body (any of):

{
"token": TOKEN,
"last_played": LOBBYCODE,
"last_user_id": SOCKET.ID,
"jump_code": UNUSED,
"name": USERNAME,
}

Returns (updated):

{
"player":
{
"id": UUID,
"token": TOKEN,
"last_played": LOBBYCODE,
"last_user_id": SOCKET.ID,
"jump_code": UNUSED,
"name": USERNAME,
"created_at": TIMESTAMP
}
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-reactions/index.html b/dist/src/docs/docs/tricktionary/src-api-reactions/index.html index df7a16c1..d30ec6d2 100644 --- a/dist/src/docs/docs/tricktionary/src-api-reactions/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-reactions/index.html @@ -7,8 +7,8 @@ src-api-reactions | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-reactions

Reactions

MethodURLDescription
GET/api/reactionsavailable emoji reactions

GET /api/reactions#

Returns:

{ "available": [
{"id":1,"content":"👍"},
{"id":2,"content":"😂"},
{"id":3,"content":"😁"},
{"id":4,"content":"😎"},
{"id":5,"content":"🤔"},
{"id":6,"content":"😍"},
{"id":7,"content":"😴"},
{"id":8,"content":"😬"},
{"id":9,"content":"🙃"},
...
]
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-rounds/index.html b/dist/src/docs/docs/tricktionary/src-api-rounds/index.html index 5d3192e5..92309533 100644 --- a/dist/src/docs/docs/tricktionary/src-api-rounds/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-rounds/index.html @@ -7,8 +7,8 @@ src-api-rounds | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-rounds

Rounds

MethodURLDescription
POST/api/round/startstart a new round. called from handleStartGame
POST/api/round/finishfinish this round. called from handleGuess

POST /api/round/start#

Request body:

{
lobby: {...},
wordId: 42
}

Returns:

{
roundId: 13
}

#

POST /api/round/finish#

Request body:

{
roundId: 13
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-score/index.html b/dist/src/docs/docs/tricktionary/src-api-score/index.html index c417cd5a..56b69cf5 100644 --- a/dist/src/docs/docs/tricktionary/src-api-score/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-score/index.html @@ -7,8 +7,8 @@ src-api-score | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-score

score

The score cards collect data as the game unfolds

MethodURLDescription
GET/api/score/latest/${GAME_ID}the latest score

Returns:

[
{
"player_id": "45894df8-9420-470f-819d-c81cf2883bc8",
"points": 2,
"top_definition_id": 40
},
{
"player_id": "342a8db6-1a00-4809-a122-37535972e8d0",
"points": 1,
"top_definition_id": 42
},
{
"player_id": "d51cea91-3107-41d3-9134-346336b085c1",
"points": 0,
"top_definition_id": 41
},
{
"player_id": "88124fba-4a54-4275-a324-3b5228a36e11",
"points": 0,
"top_definition_id": null
}
]
MethodURLDescription
GET/api/definitions/game/${GAME_ID}/player/${PLAYER_ID}player's top definition
{
"top_definition": {
"id": 42,
"user_id": "Bu0Ms8pUmM0W4sbAAAAN",
"definition": "silly string",
"round_id": 13,
"created_at": "2021-03-26T01:01:19.593Z",
"updated_at": "2021-03-26T01:01:19.593Z",
"score": 0,
"player_id": "7a81148e-e750-4a4f-babf-932a9fd9c189",
"game_id": "3886d481-0160-45c3-97f0-f81f9e01e062"
}
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-smash/index.html b/dist/src/docs/docs/tricktionary/src-api-smash/index.html index 3282ae6b..e94d0b61 100644 --- a/dist/src/docs/docs/tricktionary/src-api-smash/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-smash/index.html @@ -7,8 +7,8 @@ src-api-smash | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-smash

smash

emoji smash

MethodURLDescription
GET/api/smash/totals/${GAME_ID}/${ROUND_ID}smash record

Returns:

[
{
"id": 1,
"created_at": "2021-03-26T00:48:49.038Z",
"game_id": "ecf8a1d8-30e1-4d6c-9597-03e5d9b96db1",
"round_id": 11,
"definition_id": 22,
"reaction_id": 8,
"count": 10
},
{
"id": 2,
"created_at": "2021-03-26T00:48:51.966Z",
"game_id": "ecf8a1d8-30e1-4d6c-9597-03e5d9b96db1",
"round_id": 11,
"definition_id": 22,
"reaction_id": 13,
"count": 13
},
...
]
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-userRounds/index.html b/dist/src/docs/docs/tricktionary/src-api-userRounds/index.html index 20b0c443..81c3294e 100644 --- a/dist/src/docs/docs/tricktionary/src-api-userRounds/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-userRounds/index.html @@ -7,8 +7,8 @@ src-api-userRounds | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-userRounds

User Rounds

called from handleStartGame

MethodURLDescription
POST/api/user-rounds/add-playersadd these players to this round

Request body:

{
players: [{...},],
roundId : 12
}

Returns:

{
"message": "...status message"
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-votes/index.html b/dist/src/docs/docs/tricktionary/src-api-votes/index.html index e49d804e..f8dcc8c9 100644 --- a/dist/src/docs/docs/tricktionary/src-api-votes/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-votes/index.html @@ -7,8 +7,8 @@ src-api-votes | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-votes

Votes

MethodURLDescription
POST/api/votesplayer chooses a definition

Request body:

{
userID: WAKAwakaWAKA,
definitionID: 7,
roundID: 12,
}

Returns:

{
"ok": true,
"voteID": 0
}
- - + + diff --git a/dist/src/docs/docs/tricktionary/src-api-words/index.html b/dist/src/docs/docs/tricktionary/src-api-words/index.html index bb48e0f7..0fa3ec26 100644 --- a/dist/src/docs/docs/tricktionary/src-api-words/index.html +++ b/dist/src/docs/docs/tricktionary/src-api-words/index.html @@ -7,8 +7,8 @@ src-api-words | Tricktionary - - + + @@ -21,8 +21,8 @@

src-api-words

Words

MethodURLDescription
POST/api/words/jsonbulk-add words to database
GET/api/wordsreturns an approved word
GET/api/words/unmoderatedreturns an unmoderated word
PUT/api/words/:idedits a word, currently in use for approving a word on the moderation page
PUT/api/words/:id/approveapproves a word without the ability to edit the definition (CURRENTLY NOT USED)
PUT/api/words/:id/rejectrejects a word from being considered as a game word

POST /api/words/json#

Request body:

[
{word1: definition1},
{word2: definition2},
.
.
.
{word1000: definition1000}
]

Returns:

{
"added": 1000,
"skipped": 0
}

GET /api/words#

Returns:

{
"word": {
"id": 32,
"word": "baldachin",
"definition": "A rich fabric of silk and gold brocade.",
"moderated": true,
"approved": true
}
}

GET /api/words/unmoderated#

Returns:

{
"id": 35,
"word": "boondocking",
"definition": "Present participle of boondock.",
"moderated": false,
"approved": false
}

PUT /api/words/:id#

Request body:

{
"definition": "testing",
"moderated": true,
"approved": true
}

Returns:

{
"updated": {
"id": 35,
"word": "boondocking",
"definition": "testing",
"moderated": true,
"approved": true
}
}

PUT /api/words/:id/approve NOT IN USE#

Request body:

None

Returns:

{
"word": {
"id": 35,
"word": "boondocking",
"definition": "testing",
"moderated": true,
"approved": true
}
}

PUT /api/words/:id/reject#

Request body:

None

Returns:

{
"word": {
"id": 35,
"word": "boondocking",
"definition": "testing",
"moderated": true,
"approved": false
}
}
- - + + diff --git a/dist/src/docs/e5de70c5.aa9d2969.js b/dist/src/docs/e5de70c5.0dd0b1cc.js similarity index 93% rename from dist/src/docs/e5de70c5.aa9d2969.js rename to dist/src/docs/e5de70c5.0dd0b1cc.js index 693e02ac..cd6b6455 100644 --- a/dist/src/docs/e5de70c5.aa9d2969.js +++ b/dist/src/docs/e5de70c5.0dd0b1cc.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[66],{134:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return b})),r.d(t,"metadata",(function(){return o})),r.d(t,"toc",(function(){return i})),r.d(t,"default",(function(){return l}));var n=r(3),a=r(7),c=(r(0),r(151)),b={},o={unversionedId:"tricktionary/interfaces/crontab.crontask",id:"tricktionary/interfaces/crontab.crontask",isDocsHomePage:!1,title:"crontab.crontask",description:"tricktionary-be / Exports / crontab / cronTask",source:"@site/docs/tricktionary/interfaces/crontab.crontask.md",slug:"/tricktionary/interfaces/crontab.crontask",permalink:"/help/docs/tricktionary/interfaces/crontab.crontask",version:"current"},i=[{value:"Table of contents",id:"table-of-contents",children:[{value:"Properties",id:"properties",children:[]}]},{value:"Properties",id:"properties-1",children:[{value:"count",id:"count",children:[]},{value:"created",id:"created",children:[]},{value:"last",id:"last",children:[]},{value:"limit",id:"limit",children:[]},{value:"lobbyCode",id:"lobbycode",children:[]},{value:"name",id:"name",children:[]},{value:"task",id:"task",children:[]}]}],s={toc:i};function l(e){var t=e.components,r=Object(a.a)(e,["components"]);return Object(c.b)("wrapper",Object(n.a)({},s,r,{components:t,mdxType:"MDXLayout"}),Object(c.b)("p",null,Object(c.b)("a",{parentName:"p",href:"/help/docs/tricktionary/README"},"tricktionary-be")," / ",Object(c.b)("a",{parentName:"p",href:"/help/docs/tricktionary/modules"},"Exports")," / ",Object(c.b)("a",{parentName:"p",href:"/help/docs/tricktionary/modules/crontab"},"crontab")," / cronTask"),Object(c.b)("h1",{id:"interface-crontask"},"Interface: cronTask"),Object(c.b)("p",null,Object(c.b)("a",{parentName:"p",href:"/help/docs/tricktionary/modules/crontab"},"crontab"),".cronTask"),Object(c.b)("p",null,"a Tricktionary scheduled-task"),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},Object(c.b)("inlineCode",{parentName:"strong"},"name")),' - semantic name of this task; ie "pulse check"'),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},Object(c.b)("inlineCode",{parentName:"strong"},"lobbycode"))," - location code of game requiring this task"),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},Object(c.b)("inlineCode",{parentName:"strong"},"limit"))," - maximum number of times to run this task"),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},Object(c.b)("inlineCode",{parentName:"strong"},"count"))," - number of times this task has been run"),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},Object(c.b)("inlineCode",{parentName:"strong"},"created"))," - timestamp when this task was created"),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},Object(c.b)("inlineCode",{parentName:"strong"},"last"))," - timestamp when this task was last run"),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},Object(c.b)("inlineCode",{parentName:"strong"},"task"))," - cron.ScheduledTask"),Object(c.b)("h2",{id:"table-of-contents"},"Table of contents"),Object(c.b)("h3",{id:"properties"},"Properties"),Object(c.b)("ul",null,Object(c.b)("li",{parentName:"ul"},Object(c.b)("a",{parentName:"li",href:"/help/docs/tricktionary/interfaces/crontab.crontask#count"},"count")),Object(c.b)("li",{parentName:"ul"},Object(c.b)("a",{parentName:"li",href:"/help/docs/tricktionary/interfaces/crontab.crontask#created"},"created")),Object(c.b)("li",{parentName:"ul"},Object(c.b)("a",{parentName:"li",href:"/help/docs/tricktionary/interfaces/crontab.crontask#last"},"last")),Object(c.b)("li",{parentName:"ul"},Object(c.b)("a",{parentName:"li",href:"/help/docs/tricktionary/interfaces/crontab.crontask#limit"},"limit")),Object(c.b)("li",{parentName:"ul"},Object(c.b)("a",{parentName:"li",href:"/help/docs/tricktionary/interfaces/crontab.crontask#lobbycode"},"lobbyCode")),Object(c.b)("li",{parentName:"ul"},Object(c.b)("a",{parentName:"li",href:"/help/docs/tricktionary/interfaces/crontab.crontask#name"},"name")),Object(c.b)("li",{parentName:"ul"},Object(c.b)("a",{parentName:"li",href:"/help/docs/tricktionary/interfaces/crontab.crontask#task"},"task"))),Object(c.b)("h2",{id:"properties-1"},"Properties"),Object(c.b)("h3",{id:"count"},"count"),Object(c.b)("p",null,"\u2022 ",Object(c.b)("strong",{parentName:"p"},"count"),": ",Object(c.b)("em",{parentName:"p"},"number")),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/crontab.ts#L26"},"crontab.ts:26")),Object(c.b)("hr",null),Object(c.b)("h3",{id:"created"},"created"),Object(c.b)("p",null,"\u2022 ",Object(c.b)("strong",{parentName:"p"},"created"),": ",Object(c.b)("em",{parentName:"p"},"number")),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/crontab.ts#L27"},"crontab.ts:27")),Object(c.b)("hr",null),Object(c.b)("h3",{id:"last"},"last"),Object(c.b)("p",null,"\u2022 ",Object(c.b)("strong",{parentName:"p"},"last"),": ",Object(c.b)("em",{parentName:"p"},"number")),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/crontab.ts#L28"},"crontab.ts:28")),Object(c.b)("hr",null),Object(c.b)("h3",{id:"limit"},"limit"),Object(c.b)("p",null,"\u2022 ",Object(c.b)("strong",{parentName:"p"},"limit"),": ",Object(c.b)("em",{parentName:"p"},"number")),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/crontab.ts#L25"},"crontab.ts:25")),Object(c.b)("hr",null),Object(c.b)("h3",{id:"lobbycode"},"lobbyCode"),Object(c.b)("p",null,"\u2022 ",Object(c.b)("strong",{parentName:"p"},"lobbyCode"),": ",Object(c.b)("em",{parentName:"p"},"string")),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/crontab.ts#L24"},"crontab.ts:24")),Object(c.b)("hr",null),Object(c.b)("h3",{id:"name"},"name"),Object(c.b)("p",null,"\u2022 ",Object(c.b)("strong",{parentName:"p"},"name"),": ",Object(c.b)("em",{parentName:"p"},"string")),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/crontab.ts#L23"},"crontab.ts:23")),Object(c.b)("hr",null),Object(c.b)("h3",{id:"task"},"task"),Object(c.b)("p",null,"\u2022 ",Object(c.b)("strong",{parentName:"p"},"task"),": ",Object(c.b)("em",{parentName:"p"},"ScheduledTask")),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/crontab.ts#L29"},"crontab.ts:29")))}l.isMDXComponent=!0},151:function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return O}));var n=r(0),a=r.n(n);function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var s=a.a.createContext({}),l=function(e){var t=a.a.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},p=function(e){var t=l(e.components);return a.a.createElement(s.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,c=e.originalType,b=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),p=l(r),m=n,O=p["".concat(b,".").concat(m)]||p[m]||u[m]||c;return r?a.a.createElement(O,o(o({ref:t},s),{},{components:r})):a.a.createElement(O,o({ref:t},s))}));function O(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var c=r.length,b=new Array(c);b[0]=m;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:n,b[1]=o;for(var s=2;s=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var s=a.a.createContext({}),l=function(e){var t=a.a.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},p=function(e){var t=l(e.components);return a.a.createElement(s.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,c=e.originalType,b=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),p=l(r),m=n,O=p["".concat(b,".").concat(m)]||p[m]||u[m]||c;return r?a.a.createElement(O,o(o({ref:t},s),{},{components:r})):a.a.createElement(O,o({ref:t},s))}));function O(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var c=r.length,b=new Array(c);b[0]=m;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:n,b[1]=o;for(var s=2;s"),Object(c.b)("h4",{id:"parameters"},"Parameters:"),Object(c.b)("table",null,Object(c.b)("thead",{parentName:"table"},Object(c.b)("tr",{parentName:"thead"},Object(c.b)("th",{parentName:"tr",align:"left"},"Name"),Object(c.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(c.b)("tbody",{parentName:"table"},Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"io")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any"))),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"socket")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any"))),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"lobbies")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any"))),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"newUsername")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"string"))))),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},"Returns:")," ",Object(c.b)("em",{parentName:"p"},"Promise"),""),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleUpdateUsername.ts#L4"},"handleUpdateUsername.ts:4")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):b(b({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,c=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=r,s=d["".concat(o,".").concat(m)]||d[m]||u[m]||c;return n?a.a.createElement(s,b(b({ref:t},l),{},{components:n})):a.a.createElement(s,b({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var c=n.length,o=new Array(c);o[0]=m;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:r,o[1]=b;for(var l=2;l"),Object(c.b)("h4",{id:"parameters"},"Parameters:"),Object(c.b)("table",null,Object(c.b)("thead",{parentName:"table"},Object(c.b)("tr",{parentName:"thead"},Object(c.b)("th",{parentName:"tr",align:"left"},"Name"),Object(c.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(c.b)("tbody",{parentName:"table"},Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"io")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any"))),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"socket")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any"))),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"lobbies")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"any"))),Object(c.b)("tr",{parentName:"tbody"},Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("inlineCode",{parentName:"td"},"newUsername")),Object(c.b)("td",{parentName:"tr",align:"left"},Object(c.b)("em",{parentName:"td"},"string"))))),Object(c.b)("p",null,Object(c.b)("strong",{parentName:"p"},"Returns:")," ",Object(c.b)("em",{parentName:"p"},"Promise"),""),Object(c.b)("p",null,"Defined in: ",Object(c.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleUpdateUsername.ts#L4"},"handleUpdateUsername.ts:4")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):b(b({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,c=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=r,s=d["".concat(o,".").concat(m)]||d[m]||u[m]||c;return n?a.a.createElement(s,b(b({ref:t},l),{},{components:n})):a.a.createElement(s,b({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var c=n.length,o=new Array(c);o[0]=m;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:r,o[1]=b;for(var l=2;l"),Object(b.b)("p",null,"Allow the current host to trade roles with a player. *experimental feature"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"key-string")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"newHost")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"playerID-string")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"guesses")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"),"[]"),Object(b.b)("td",{parentName:"tr",align:"left"},"the hosts' list of the other player's guesses")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleSetNewHost.ts#L15"},"handleSetNewHost.ts:15")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},m=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=a,u=d["".concat(o,".").concat(m)]||d[m]||s[m]||b;return n?r.a.createElement(u,c(c({ref:t},l),{},{components:n})):r.a.createElement(u,c({ref:t},l))}));function u(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,o=new Array(b);o[0]=m;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:a,o[1]=c;for(var l=2;l"),Object(b.b)("p",null,"Allow the current host to trade roles with a player. *experimental feature"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"key-string")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"newHost")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"playerID-string")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"guesses")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"),"[]"),Object(b.b)("td",{parentName:"tr",align:"left"},"the hosts' list of the other player's guesses")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleSetNewHost.ts#L15"},"handleSetNewHost.ts:15")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var r=n(0),a=n.n(r);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,b=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),m=r,u=d["".concat(o,".").concat(m)]||d[m]||s[m]||b;return n?a.a.createElement(u,c(c({ref:t},l),{},{components:n})):a.a.createElement(u,c({ref:t},l))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var b=n.length,o=new Array(b);o[0]=m;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:r,o[1]=c;for(var l=2;l=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var o=n.a.createContext({}),p=function(e){var t=n.a.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):l(l({},t),e)),a},d=function(e){var t=p(e.components);return n.a.createElement(o.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.a.createElement(n.a.Fragment,{},t)}},m=n.a.forwardRef((function(e,t){var a=e.components,r=e.mdxType,b=e.originalType,c=e.parentName,o=i(e,["components","mdxType","originalType","parentName"]),d=p(a),m=r,O=d["".concat(c,".").concat(m)]||d[m]||s[m]||b;return a?n.a.createElement(O,l(l({ref:t},o),{},{components:a})):n.a.createElement(O,l({ref:t},o))}));function O(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var b=a.length,c=new Array(b);c[0]=m;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l.mdxType="string"==typeof e?e:r,c[1]=l;for(var o=2;o=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(b=0;b=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=r.a.createContext({}),p=function(e){var t=r.a.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):l(l({},t),e)),a},d=function(e){var t=p(e.components);return r.a.createElement(o.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},m=r.a.forwardRef((function(e,t){var a=e.components,b=e.mdxType,n=e.originalType,c=e.parentName,o=i(e,["components","mdxType","originalType","parentName"]),d=p(a),m=b,O=d["".concat(c,".").concat(m)]||d[m]||s[m]||n;return a?r.a.createElement(O,l(l({ref:t},o),{},{components:a})):r.a.createElement(O,l({ref:t},o))}));function O(e,t){var a=arguments,b=t&&t.mdxType;if("string"==typeof e||b){var n=a.length,c=new Array(n);c[0]=m;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l.mdxType="string"==typeof e?e:b,c[1]=l;for(var o=2;o"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleGetReactions.ts#L4"},"handleGetReactions.ts:4")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},s=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,l=b(e,["components","mdxType","originalType","parentName"]),d=p(n),s=r,m=d["".concat(c,".").concat(s)]||d[s]||u[s]||o;return n?a.a.createElement(m,i(i({ref:t},l),{},{components:n})):a.a.createElement(m,i({ref:t},l))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,c=new Array(o);c[0]=s;var i={};for(var b in t)hasOwnProperty.call(t,b)&&(i[b]=t[b]);i.originalType=e,i.mdxType="string"==typeof e?e:r,c[1]=i;for(var l=2;l"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any"))))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleGetReactions.ts#L4"},"handleGetReactions.ts:4")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},s=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,l=b(e,["components","mdxType","originalType","parentName"]),d=p(n),s=r,m=d["".concat(c,".").concat(s)]||d[s]||u[s]||o;return n?a.a.createElement(m,i(i({ref:t},l),{},{components:n})):a.a.createElement(m,i({ref:t},l))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,c=new Array(o);c[0]=s;var i={};for(var b in t)hasOwnProperty.call(t,b)&&(i[b]=t[b]);i.originalType=e,i.mdxType="string"==typeof e?e:r,c[1]=i;for(var l=2;l"),Object(b.b)("h4",{id:"parameters-1"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleDisconnection.ts#L39"},"handleDisconnection.ts:39")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return O}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},s=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),s=a,O=d["".concat(o,".").concat(s)]||d[s]||m[s]||b;return n?r.a.createElement(O,c(c({ref:t},l),{},{components:n})):r.a.createElement(O,c({ref:t},l))}));function O(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,o=new Array(b);o[0]=s;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:a,o[1]=c;for(var l=2;l"),Object(b.b)("h4",{id:"parameters-1"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any"))))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleDisconnection.ts#L39"},"handleDisconnection.ts:39")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return O}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},s=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),s=a,O=d["".concat(o,".").concat(s)]||d[s]||m[s]||b;return n?r.a.createElement(O,c(c({ref:t},l),{},{components:n})):r.a.createElement(O,c({ref:t},l))}));function O(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,o=new Array(b);o[0]=s;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:a,o[1]=c;for(var l=2;l"),Object(b.b)("p",null,"Connects the player with the active game being played."),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"username")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"Player's name")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"Player's join code")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"game-state")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"doCheckPulse")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"boolean")," ","|"," ",Object(b.b)("em",{parentName:"td"},"undefined")),Object(b.b)("td",{parentName:"tr",align:"left"},"-")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleLobbyJoin.ts#L22"},"handleLobbyJoin.ts:22")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return O}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},u=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),u=a,O=d["".concat(o,".").concat(u)]||d[u]||m[u]||b;return n?r.a.createElement(O,c(c({ref:t},l),{},{components:n})):r.a.createElement(O,c({ref:t},l))}));function O(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,o=new Array(b);o[0]=u;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:a,o[1]=c;for(var l=2;l"),Object(b.b)("p",null,"Connects the player with the active game being played."),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"username")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"Player's name")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbyCode")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"Player's join code")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"game-state")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"doCheckPulse")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"boolean")," ","|"," ",Object(b.b)("em",{parentName:"td"},"undefined")),Object(b.b)("td",{parentName:"tr",align:"left"},"-")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleLobbyJoin.ts#L22"},"handleLobbyJoin.ts:22")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return O}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},u=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,o=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),u=a,O=d["".concat(o,".").concat(u)]||d[u]||m[u]||b;return n?r.a.createElement(O,c(c({ref:t},l),{},{components:n})):r.a.createElement(O,c({ref:t},l))}));function O(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,o=new Array(b);o[0]=u;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:a,o[1]=c;for(var l=2;l"),Object(o.b)("p",null,"remote paint on canvas"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"coords")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"number"),"[]"),Object(o.b)("td",{parentName:"tr",align:"left"},"mouse coordinates ","[x, y, x, y]")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleRemotePaint.ts#L13"},"handleRemotePaint.ts:13")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},m=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,l=b(e,["components","mdxType","originalType","parentName"]),m=p(n),u=r,s=m["".concat(c,".").concat(u)]||m[u]||d[u]||o;return n?a.a.createElement(s,i(i({ref:t},l),{},{components:n})):a.a.createElement(s,i({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,c=new Array(o);c[0]=u;var i={};for(var b in t)hasOwnProperty.call(t,b)&&(i[b]=t[b]);i.originalType=e,i.mdxType="string"==typeof e?e:r,c[1]=i;for(var l=2;l"),Object(o.b)("p",null,"remote paint on canvas"),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"(socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"lobbies")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"memo-object")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"coords")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"number"),"[]"),Object(o.b)("td",{parentName:"tr",align:"left"},"mouse coordinates ","[x, y, x, y]")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),""),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleRemotePaint.ts#L13"},"handleRemotePaint.ts:13")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return s}));var r=n(0),a=n.n(r);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):b(b({},t),e)),n},m=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},u=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),m=p(n),u=r,s=m["".concat(c,".").concat(u)]||m[u]||d[u]||o;return n?a.a.createElement(s,b(b({ref:t},l),{},{components:n})):a.a.createElement(s,b({ref:t},l))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,c=new Array(o);c[0]=u;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:r,c[1]=b;for(var l=2;l"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"game-state")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"playerId")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"socket.id of recipient")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"category")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"recipient listener event")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"message")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"information being sent to the recipient")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0a7e440/src/sockets/handleMessagePlayer.ts#L12"},"handleMessagePlayer.ts:12")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=r.a.createContext({}),p=function(e){var t=r.a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(o.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},s=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,c=e.parentName,o=l(e,["components","mdxType","originalType","parentName"]),d=p(n),s=a,u=d["".concat(c,".").concat(s)]||d[s]||m[s]||b;return n?r.a.createElement(u,i(i({ref:t},o),{},{components:n})):r.a.createElement(u,i({ref:t},o))}));function u(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,c=new Array(b);c[0]=s;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:a,c[1]=i;for(var o=2;o"),Object(b.b)("h4",{id:"parameters"},"Parameters:"),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",{parentName:"tr",align:"left"},"Name"),Object(b.b)("th",{parentName:"tr",align:"left"},"Type"),Object(b.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"io")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"socket")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"(socket io)")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"lobbies")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"game-state")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"playerId")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"socket.id of recipient")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"category")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"string")),Object(b.b)("td",{parentName:"tr",align:"left"},"recipient listener event")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("inlineCode",{parentName:"td"},"message")),Object(b.b)("td",{parentName:"tr",align:"left"},Object(b.b)("em",{parentName:"td"},"any")),Object(b.b)("td",{parentName:"tr",align:"left"},"information being sent to the recipient")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"Promise"),""),Object(b.b)("p",null,"Defined in: ",Object(b.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/bee02e0/src/sockets/handleMessagePlayer.ts#L12"},"handleMessagePlayer.ts:12")))}p.isMDXComponent=!0},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=r.a.createContext({}),p=function(e){var t=r.a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=p(e.components);return r.a.createElement(o.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},s=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,c=e.parentName,o=l(e,["components","mdxType","originalType","parentName"]),d=p(n),s=a,u=d["".concat(c,".").concat(s)]||d[s]||m[s]||b;return n?r.a.createElement(u,i(i({ref:t},o),{},{components:n})):r.a.createElement(u,i({ref:t},o))}));function u(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,c=new Array(b);c[0]=s;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:a,c[1]=i;for(var o=2;o Hello from Tricktionary | Tricktionary - - + + @@ -17,8 +17,8 @@

Your Docusaurus site did not load properly.

A very common reason is a wrong site baseUrl configuration.

Current configured baseUrl = /help/

We suggest trying baseUrl =

Tricktionary

the fun docs

Easy to Use

Easy to Use

Docusaurus was designed from the ground up to be easily installed and used to get your website up and running quickly.

Focus on What Matters

Focus on What Matters

Docusaurus lets you focus on your docs, and we'll do the chores. Go ahead and move your docs into the docs directory.

Powered by React

Powered by React

Extend or customize your website layout by reusing React. Docusaurus can be extended while reusing the same header and footer.

- - + + diff --git a/dist/src/docs/main.ebd5f1e7.js b/dist/src/docs/main.2c6e354b.js similarity index 99% rename from dist/src/docs/main.ebd5f1e7.js rename to dist/src/docs/main.2c6e354b.js index c4ff208a..9b5888b5 100644 --- a/dist/src/docs/main.ebd5f1e7.js +++ b/dist/src/docs/main.2c6e354b.js @@ -1,2 +1,2 @@ -/*! For license information please see main.ebd5f1e7.js.LICENSE.txt */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[79],[function(e,t,n){"use strict";e.exports=n(39)},function(e,t,n){e.exports=n(43)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return L})),n.d(t,"g",(function(){return D})),n.d(t,"h",(function(){return g})),n.d(t,"i",(function(){return S})),n.d(t,"j",(function(){return O})),n.d(t,"k",(function(){return M})),n.d(t,"l",(function(){return B})),n.d(t,"m",(function(){return z})),n.d(t,"n",(function(){return U})),n.d(t,"o",(function(){return j}));var r=n(4),o=n(0),a=n.n(o),i=(n(1),n(6)),l=n(20),u=n(5),s=n(3),c=n(21),d=n.n(c),p=(n(27),n(7)),f=n(33),m=n.n(f),h=function(e){var t=Object(l.a)();return t.displayName=e,t}("Router-History"),g=function(e){var t=Object(l.a)();return t.displayName=e,t}("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return a.a.createElement(g.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.a.createElement(h.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.a.Component);var b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o=0;p--){var f=i[p];"."===f?a(i,p):".."===f?(a(i,p),d++):d&&(a(i,p),d--)}if(!s)for(;d--;d)i.unshift("..");!s||""===i[0]||i[0]&&o(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=l(t),o=l(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},s=n(5);function c(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function h(e,t,n,o){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(a=Object(r.a)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=h(e,t,p(),w.location);c.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=w.index+e;return t>=0&&t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n(2),o=n(3),a=n(0),i=n.n(a);function l(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var o=e.path?Object(r.j)(t,e):n.length?n[n.length-1].match:r.e.computeRootMatch(t);return o&&(n.push({route:e,match:o}),e.routes&&l(e.routes,t,n)),o})),n}function u(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?i.a.createElement(r.g,n,e.map((function(e,n){return i.a.createElement(r.d,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render(Object(o.a)({},n,{},t,{route:e})):i.a.createElement(e.component,Object(o.a)({},n,t,{route:e}))}})}))):null}},function(e,t,n){"use strict";n.r(t),t.default={plugins:[["docusaurus-plugin-typedoc",{entryPoints:["../src/index.ts"],tsconfig:"../tsconfig.json"}]],title:"Tricktionary",tagline:"the fun docs",url:"https://dev.tricktionary.monster",baseUrl:"/help/",onBrokenLinks:"warn",onBrokenMarkdownLinks:"warn",favicon:"img/favicon.ico",organizationName:"storysquad",projectName:"docusaurus",themeConfig:{navbar:{title:"T. rex",logo:{alt:"Tricktionary",src:"img/logo.svg"},items:[{to:"docs/tricktionary/README",label:"Docs",position:"left"},{to:"blog",label:"Blog",position:"left"},{href:"https://github.com/story-squad/tricktionary-be",label:"GitHub",position:"right"}],hideOnScroll:!1},footer:{style:"dark",links:[{title:"Docs",items:[{to:"docs/tricktionary/README",label:"Tricktionary",position:"left"},{to:"docs/",label:"Style",position:"left"}]},{title:"Community",items:[{label:"Story Squad",href:"https://storysquad.app"},{label:"Tricktionary",href:"https://tricktionary.storysquad.app/"},{label:"Product Hunt",href:"https://www.producthunt.com/@story_hq"}]},{title:"More",items:[{label:"Blog",to:"blog"},{label:"GitHub",href:"https://github.com/story-squad/tricktionary-be"}]}],copyright:"Copyright \xa9 2021 StorySquad, Built with Docusaurus."},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1,switchConfig:{darkIcon:"\ud83c\udf1c",darkIconStyle:{},lightIcon:"\ud83c\udf1e",lightIconStyle:{}}},docs:{versionPersistence:"localStorage"},metadatas:[],prism:{additionalLanguages:[]},hideableSidebar:!1},presets:[["@docusaurus/preset-classic",{docs:{sidebarPath:"/home/tm/development/tricktionary-be/trex/sidebars.js"},blog:{showReadingTime:!0,editUrl:"https://github.com/story-squad/tricktionary-be/tree/main/trex"},theme:{customCss:"/home/tm/development/tricktionary-be/trex/src/css/custom.css"}}]],baseUrlIssueBanner:!0,i18n:{defaultLocale:"en",locales:["en"],localeConfigs:{}},onDuplicateRoutes:"warn",customFields:{},themes:[],titleDelimiter:"|",noIndex:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return k}));var r=n(2);n.d(t,"d",(function(){return r.a})),n.d(t,"f",(function(){return r.b})),n.d(t,"g",(function(){return r.c})),n.d(t,"h",(function(){return r.d})),n.d(t,"i",(function(){return r.e})),n.d(t,"j",(function(){return r.f})),n.d(t,"k",(function(){return r.g})),n.d(t,"l",(function(){return r.i})),n.d(t,"m",(function(){return r.j})),n.d(t,"n",(function(){return r.k})),n.d(t,"o",(function(){return r.l})),n.d(t,"p",(function(){return r.m})),n.d(t,"q",(function(){return r.n})),n.d(t,"r",(function(){return r.o}));var o=n(4),a=n(0),i=n.n(a),l=n(6),u=(n(1),n(3)),s=n(7),c=n(5),d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o
'};function o(e,t,n){return en?n:e}function a(e){return 100*(-1+e)}function i(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+a(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+a(e)+"%,0)"}:{"margin-left":a(e)+"%"}).transition="all "+t+"ms "+n,o}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var a=n.render(!t),s=a.querySelector(r.barSelector),c=r.speed,d=r.easing;return a.offsetWidth,l((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),u(s,i(e,c,d)),1===e?(u(a,{transition:"none",opacity:1}),a.offsetWidth,setTimeout((function(){u(a,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),c)}),c)):setTimeout(t,c)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,i=t.querySelector(r.barSelector),l=e?"-100":a(n.status||0),s=document.querySelector(r.parent);return u(i,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&f(o),s!=document.body&&c(s,"nprogress-custom-parent"),s.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),u=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+a)in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&a(e,n,r);else a(e,o[1],o[2])}}();function s(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=p(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?r.call(t,n,t,e):r)||(e.exports=o)},,,function(e,t,n){var r={"./":48};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=18},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(0),u=n(1),s=[],c=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=d(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return l.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function m(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var m=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),h=null;function g(){return h||(h=e(m.loader)),h.promise}return s.push(g),"function"==typeof m.webpack&&c.push((function(){if(e=m.webpack,"object"===r(n.m)&&e().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g();var e})),p=d=function(t){function n(r){o(this,n);var i=a(this,t.call(this,r));return i.retry=function(){i.setState({error:null,loading:!0,timedOut:!1}),h=e(m.loader),i._loadModule()},g(),i.state={error:h.error,pastDelay:!1,timedOut:!1,loading:h.loading,loaded:h.loaded},i}return i(n,t),n.preload=function(){return g()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(m.modules)&&m.modules.forEach((function(t){e.context.loadable.report(t)})),h.loading){"number"==typeof m.delay&&(0===m.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){e.setState({pastDelay:!0})}),m.delay)),"number"==typeof m.timeout&&(this._timeout=setTimeout((function(){e.setState({timedOut:!0})}),m.timeout));var t=function(){e._mounted&&(e.setState({error:h.error,loaded:h.loaded,loading:h.loading}),e._clearTimeouts())};h.promise.then((function(){t()})).catch((function(e){t()}))}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?l.createElement(m.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?m.render(this.state.loaded,this.props):null},n}(l.Component),d.contextTypes={loadable:u.shape({report:u.func.isRequired})},p}function h(e){return m(d,e)}h.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return m(p,e)};var g=function(e){function t(){return o(this,t),a(this,e.apply(this,arguments))}return i(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return l.Children.only(this.props.children)},t}(l.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}g.propTypes={report:u.func.isRequired},g.childContextTypes={loadable:u.shape({report:u.func.isRequired}).isRequired},h.Capture=g,h.preloadAll=function(){return new Promise((function(e,t){y(s).then(e,t)}))},h.preloadReady=function(){return new Promise((function(e,t){y(c).then(e,e)}))},e.exports=h},function(e,t,n){"use strict";(function(e){var r=n(0),o=n.n(r),a=n(4),i=n(1),l=n.n(i),u=1073741823,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var d=o.a.createContext||function(e,t){var n,o,i,d="__create-react-context-"+((s[i="__global_unique_id__"]=(s[i]||0)+1)+"__"),p=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=c(t.props.value),t}Object(a.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[d]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((a=r)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?n=0:(n="function"==typeof t?t(r,o):u,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,i},r.render=function(){return this.props.children},n}(r.Component);p.childContextTypes=((n={})[d]=l.a.object.isRequired,n);var f=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(a.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?u:t},r.componentDidMount=function(){this.context[d]&&this.context[d].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?u:e},r.componentWillUnmount=function(){this.context[d]&&this.context[d].off(this.onUpdate)},r.getValue=function(){return this.context[d]?this.context[d].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((o={})[d]=l.a.object,o),{Provider:p,Consumer:f}};t.a=d}).call(this,n(26))},function(e,t,n){var r=n(45);e.exports=f,e.exports.parse=a,e.exports.compile=function(e,t){return l(a(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,i=0,l="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],f=n.index;if(l+=e.slice(i,f),i=f+d.length,p)l+=p[1];else{var m=e[i],h=n[2],g=n[3],y=n[4],b=n[5],v=n[6],w=n[7];l&&(r.push(l),l="");var k=null!=h&&null!=m&&m!==h,E="+"===v||"*"===v,S="?"===v||"*"===v,x=n[2]||c,T=y||b;r.push({name:g||a++,prefix:h||"",delimiter:x,optional:S,repeat:E,partial:k,asterisk:!!w,pattern:T?s(T):w?".*":"[^"+u(x)+"]+?"})}}return ie.length)return;if(!(k instanceof u)){if(h&&v!=t.length-1){if(p.lastIndex=w,!(O=p.exec(e)))break;for(var E=O.index+(m?O[1].length:0),S=O.index+O[0].length,x=v,T=w,C=t.length;x=(T+=t[x].length)&&(++v,w=T);if(t[v]instanceof u)continue;P=x-v,k=e.slice(w,T),O.index-=w}else{p.lastIndex=0;var O=p.exec(k),P=1}if(O){m&&(g=O[1]?O[1].length:0),S=(E=O.index+g)+(O=O[0].slice(g)).length;var A=k.slice(0,E),_=k.slice(S),R=[v,P];A&&(++v,w+=A.length,R.push(A));var N=new u(s,f?o.tokenize(O,f):O,y,O,h);if(R.push(N),_&&R.push(_),Array.prototype.splice.apply(t,R),1!=P&&o.matchGrammar(e,t,n,v,w,!0,s),i)break}else if(i)break}}}}},hooks:{add:function(){},run:function(e,t){}},tokenize:function(e,t,n){var r=[e],a=t.rest;if(a){for(var i in a)t[i]=a[i];delete t.rest}return o.matchGrammar(e,r,t,0,0,!1),r}},(a=o.Token=function(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o}).stringify=function(e,t,n){if("string"==typeof e)return e;if("Array"===o.util.type(e))return e.map((function(n){return a.stringify(n,t,e)})).join("");var r={type:e.type,content:a.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n};if(e.alias){var i="Array"===o.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(r.classes,i)}var l=Object.keys(r.attributes).map((function(e){return e+'="'+(r.attributes[e]||"").replace(/"/g,""")+'"'})).join(" ");return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+(l?" "+l:"")+">"+r.content+""},o);i.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:i.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:i.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},i.languages.insertBefore("markup","cdata",o)}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)\w+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b\w+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+?)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)(["'])(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|(?!\2)[^\\`$])*\2/,lookbehind:!0,greedy:!0,inside:r}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|==?|!=?|=~|<<[<-]?|[&\d]?>>|\d?[<>]&?|&[>&]?|\|[&|]?|<=?|>=?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,i=0;i]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.c=i.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),i.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},i.languages.c.string],comment:i.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:i.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete i.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/;e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","operator",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(i),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:RegExp("[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/(^|["'\s])style\s*=\s*(?:"[^"]*"|'[^']*')/i,lookbehind:!0,inside:{"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{style:{pattern:/(["'])[\s\S]+(?=["']$)/,lookbehind:!0,alias:"language-css",inside:e.languages.css},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},"attr-name":/^style/i}}},n.tag))}(i),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+\b)/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#(?:[\da-f]{1,2}){3,4}\b/i,alias:"color"},color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:rgb|hsl)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:rgb|hsl)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(i),i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|(?:get|set)(?=\s*[\[$\w\xA0-\uFFFF])|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-flags":/[a-z]+$/,"regex-delimiter":/^\/|\/$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}}}),i.languages.markup&&i.languages.markup.tag.addInlined("script","javascript"),i.languages.js=i.languages.javascript,function(e){var t=e.util.clone(e.languages.javascript);e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=/<\/?(?:[\w.:-]+(?:\s+(?:[\w.:$-]+(?:=(?:"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*'|[^\s{'">=]+|\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}))?|\{\s*\.{3}\s*[a-z_$][\w$]*(?:\.[a-z_$][\w$]*)*\s*\}))*\s*\/?)?>/i,e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.insertBefore("inside","attr-name",{spread:{pattern:/\{\s*\.{3}\s*[a-z_$][\w$]*(?:\.[a-z_$][\w$]*)*\s*\}/,inside:{punctuation:/\.{3}|[{}.]/,"attr-value":/\w+/}}},e.languages.jsx.tag),e.languages.insertBefore("inside","attr-value",{script:{pattern:/=(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\})/i,inside:{"script-punctuation":{pattern:/^=(?={)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var n=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(n).join(""):""},r=function(t){for(var o=[],a=0;a0&&o[o.length-1].tagName===n(i.content[0].content[1])&&o.pop():"/>"===i.content[i.content.length-1].content||o.push({tagName:n(i.content[0].content[1]),openedBraces:0}):o.length>0&&"punctuation"===i.type&&"{"===i.content?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?o[o.length-1].openedBraces--:l=!0),(l||"string"==typeof i)&&o.length>0&&0===o[o.length-1].openedBraces){var u=n(i);a0&&("string"==typeof t[a-1]||"plain-text"===t[a-1].type)&&(u=n(t[a-1])+u,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",u,null,u)}i.content&&"string"!=typeof i.content&&r(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||r(e.tokens)}))}(i),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:(?:Uint|Int)(?:8|16|32)|Uint8Clamped|Float(?:32|64))?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|(?:Weak)?(?:Set|Map)|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|for|finally|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|location|navigator|performance|(?:local|session)Storage|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(i),i.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/m,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/m}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},i.languages.go=i.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete i.languages.go["class-name"],i.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:i.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:true|false)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*)[a-zA-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,punctuation:/[!(){}\[\]:=,]/,constant:/\b(?!ID\b)[A-Z][A-Z_\d]*\b/},function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,a){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof a&&!a(e))return e;for(var o,l=i.length;-1!==n.code.indexOf(o=t(r,l));)++l;return i[l]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,a=Object.keys(n.tokenStack);!function i(l){for(var u=0;u=a.length);u++){var s=l[u];if("string"==typeof s||s.content&&"string"==typeof s.content){var c=a[o],d=n.tokenStack[c],p="string"==typeof s?s:s.content,f=t(r,c),m=p.indexOf(f);if(m>-1){++o;var h=p.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),y=p.substring(m+f.length),b=[];h&&b.push.apply(b,i([h])),b.push(g),y&&b.push.apply(b,i([y])),"string"==typeof s?l.splice.apply(l,[u,1].concat(b)):s.content=b}}else s.content&&i(s.content)}return l}(n.tokens)}}}})}(i),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/i,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:true|false)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/i,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")}))}(i),i.languages.json={property:{pattern:/"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},i.languages.webmanifest=i.languages.json,i.languages.less=i.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/i,operator:/[+\-*\/]/}),i.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),i.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},builtin:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,symbol:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:[/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,{pattern:/(\()(?:addsuffix|abspath|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:s|list)?)(?=[ \t])/,lookbehind:!0}],operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?!\n|\r\n?))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/``.+?``|`[^`\r\n]+`/,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+?\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete i.languages.objectivec["class-name"],i.languages.objc=i.languages.objectivec,i.languages.ocaml={comment:/\(\*[\s\S]*?\*\)/,string:[{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},{pattern:/(['`])(?:\\(?:\d+|x[\da-f]+|.)|(?!\1)[^\\\r\n])\1/i,greedy:!0}],number:/\b(?:0x[\da-f][\da-f_]+|(?:0[bo])?\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?[\d_]+)?)/i,directive:{pattern:/\B#\w+/,alias:"important"},label:{pattern:/\B~\w+/,alias:"function"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"variable"},module:{pattern:/\b[A-Z]\w+/,alias:"variable"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,operator:/:=|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/[(){}\[\]|.,:;]|\b_\b/},i.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^\s*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},i.languages.python["string-interpolation"].inside.interpolation.inside.rest=i.languages.python,i.languages.py=i.languages.python,i.languages.reason=i.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:mod|land|lor|lxor|lsl|lsr|asr)\b/}),i.languages.insertBefore("reason","class-name",{character:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,alias:"string"},constructor:{pattern:/\b[A-Z]\w*\b(?!\s*\.)/,alias:"variable"},label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete i.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,inside:{atrule:/(?:@[\w-]+|[+=])/m}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|or|not)\b/,{pattern:/(\s+)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/,lookbehind:!0}})}(i),i.languages.scss=i.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]+))/m,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),i.languages.insertBefore("scss","atrule",{keyword:[/@(?:if|else(?: if)?|forward|for|each|while|import|use|extend|debug|warn|mixin|include|function|return|content)\b/i,{pattern:/( +)(?:from|through)(?= )/,lookbehind:!0}]}),i.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),i.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|with|show|hide)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|or|not)(?=\s)/,lookbehind:!0}}),i.languages.scss.atrule.inside.rest=i.languages.scss,i.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|IN|LIKE|NOT|OR|IS|DIV|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/url\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:if|else|for|return|unless)(?=\s+|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:rgb|hsl)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:rgb|hsl)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:true|false)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^{|}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^\s*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:if|else|for|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,](?=$)(?!(?:\r?\n|\r)(?:\{|\2[ \t]+)))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t]+)))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(i),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},keyword:/\b(?:abstract|as|asserts|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|undefined|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(i),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t);var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(i),i.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^_`|~]+/i,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|]|}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+o+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/true|false/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(i),t.a=i},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(34);t.a=function(e){return o.a.createElement(a.a,Object.assign({},e))}},function(e,t,n){"use strict";var r=n(8);t.a=r.b},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";e.exports=n(46)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(40)},function(e){e.exports=JSON.parse('{"docusaurus-plugin-content-docs":{"default":{"path":"/help/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/help/docs","mainDocId":"start-here","docs":[{"id":"api","path":"/help/docs/api","sidebar":"someSidebar"},{"id":"api/index","path":"/help/docs/api"},{"id":"api/modules","path":"/help/docs/api/modules"},{"id":"database","path":"/help/docs/database","sidebar":"someSidebar"},{"id":"dataflow","path":"/help/docs/dataflow","sidebar":"someSidebar"},{"id":"doc1","path":"/help/docs/doc1"},{"id":"doc2","path":"/help/docs/doc2"},{"id":"doc3","path":"/help/docs/doc3"},{"id":"eb1","path":"/help/docs/eb1","sidebar":"someSidebar"},{"id":"mdx","path":"/help/docs/mdx"},{"id":"sockets","path":"/help/docs/sockets","sidebar":"someSidebar"},{"id":"start-here","path":"/help/docs/","sidebar":"someSidebar"},{"id":"tricktionary/about","path":"/help/docs/tricktionary/README","sidebar":"someSidebar"},{"id":"tricktionary/EB-README","path":"/help/docs/tricktionary/EB-README"},{"id":"tricktionary/interfaces/crontab.crontask","path":"/help/docs/tricktionary/interfaces/crontab.crontask"},{"id":"tricktionary/interfaces/crontab.crontaskindex","path":"/help/docs/tricktionary/interfaces/crontab.crontaskindex"},{"id":"tricktionary/modules","path":"/help/docs/tricktionary/modules","sidebar":"someSidebar"},{"id":"tricktionary/modules/common","path":"/help/docs/tricktionary/modules/common"},{"id":"tricktionary/modules/crontab","path":"/help/docs/tricktionary/modules/crontab"},{"id":"tricktionary/modules/handledisconnection","path":"/help/docs/tricktionary/modules/handledisconnection"},{"id":"tricktionary/modules/handleemojismash","path":"/help/docs/tricktionary/modules/handleemojismash"},{"id":"tricktionary/modules/handleerrormessage","path":"/help/docs/tricktionary/modules/handleerrormessage"},{"id":"tricktionary/modules/handlegetreactions","path":"/help/docs/tricktionary/modules/handlegetreactions"},{"id":"tricktionary/modules/handleguess","path":"/help/docs/tricktionary/modules/handleguess"},{"id":"tricktionary/modules/handlelobbycreate","path":"/help/docs/tricktionary/modules/handlelobbycreate"},{"id":"tricktionary/modules/handlelobbyjoin","path":"/help/docs/tricktionary/modules/handlelobbyjoin"},{"id":"tricktionary/modules/handlelobbyleave","path":"/help/docs/tricktionary/modules/handlelobbyleave"},{"id":"tricktionary/modules/handlemessagehost","path":"/help/docs/tricktionary/modules/handlemessagehost"},{"id":"tricktionary/modules/handlemessageplayer","path":"/help/docs/tricktionary/modules/handlemessageplayer"},{"id":"tricktionary/modules/handlenewplayer","path":"/help/docs/tricktionary/modules/handlenewplayer"},{"id":"tricktionary/modules/handleplayagain","path":"/help/docs/tricktionary/modules/handleplayagain"},{"id":"tricktionary/modules/handleremotepaint","path":"/help/docs/tricktionary/modules/handleremotepaint"},{"id":"tricktionary/modules/handlereturningplayer","path":"/help/docs/tricktionary/modules/handlereturningplayer"},{"id":"tricktionary/modules/handlerevealresults","path":"/help/docs/tricktionary/modules/handlerevealresults"},{"id":"tricktionary/modules/handlesetfinale","path":"/help/docs/tricktionary/modules/handlesetfinale"},{"id":"tricktionary/modules/handlesetnewhost","path":"/help/docs/tricktionary/modules/handlesetnewhost"},{"id":"tricktionary/modules/handlesetphase","path":"/help/docs/tricktionary/modules/handlesetphase"},{"id":"tricktionary/modules/handlestartgame","path":"/help/docs/tricktionary/modules/handlestartgame"},{"id":"tricktionary/modules/handlesubmitdefinition","path":"/help/docs/tricktionary/modules/handlesubmitdefinition"},{"id":"tricktionary/modules/handletimesync","path":"/help/docs/tricktionary/modules/handletimesync"},{"id":"tricktionary/modules/handleupdateusername","path":"/help/docs/tricktionary/modules/handleupdateusername"},{"id":"tricktionary/src-api-auth","path":"/help/docs/tricktionary/src-api-auth"},{"id":"tricktionary/src-api-clever","path":"/help/docs/tricktionary/src-api-clever"},{"id":"tricktionary/src-api-definitionReactions","path":"/help/docs/tricktionary/src-api-definitionReactions"},{"id":"tricktionary/src-api-definitions","path":"/help/docs/tricktionary/src-api-definitions"},{"id":"tricktionary/src-api-player","path":"/help/docs/tricktionary/src-api-player"},{"id":"tricktionary/src-api-reactions","path":"/help/docs/tricktionary/src-api-reactions"},{"id":"tricktionary/src-api-rounds","path":"/help/docs/tricktionary/src-api-rounds"},{"id":"tricktionary/src-api-score","path":"/help/docs/tricktionary/src-api-score"},{"id":"tricktionary/src-api-smash","path":"/help/docs/tricktionary/src-api-smash"},{"id":"tricktionary/src-api-userRounds","path":"/help/docs/tricktionary/src-api-userRounds"},{"id":"tricktionary/src-api-votes","path":"/help/docs/tricktionary/src-api-votes"},{"id":"tricktionary/src-api-words","path":"/help/docs/tricktionary/src-api-words"}]}]}}}')},function(e){e.exports=JSON.parse('{"defaultLocale":"en","locales":["en"],"localeConfigs":{"en":{"label":"en"}},"currentLocale":"en"}')},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse('{"docusaurusVersion":"2.0.0-alpha.70","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"2.0.0-alpha.70"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"2.0.0-alpha.70"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"2.0.0-alpha.70"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"2.0.0-alpha.70"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"2.0.0-alpha.70"},"undefined":{"type":"package","name":"docusaurus-plugin-typedoc","version":"0.9.0"}}}')},function(e,t,n){"use strict";var r=n(27),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var l=u(t),h=u(n),g=0;g=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},W=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},V=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},K=function(e){var t=Z(e,w.TITLE),n=Z(e,F);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Z(e,I);return t||r||void 0},Y=function(e){return Z(e,j)||function(){}},Q=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return q({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return void 0!==e[w.BASE]})).map((function(e){return e[w.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},ne="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:e.requestAnimationFrame||ee,re="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:e.cancelAnimationFrame||te,oe=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ae=null,ie=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,l=e.noscriptTags,u=e.onChangeClientState,s=e.scriptTags,c=e.styleTags,d=e.title,p=e.titleAttributes;se(w.BODY,r),se(w.HTML,o),ue(d,p);var f={baseTag:ce(w.BASE,n),linkTags:ce(w.LINK,a),metaTags:ce(w.META,i),noscriptTags:ce(w.NOSCRIPT,l),scriptTags:ce(w.SCRIPT,s),styleTags:ce(w.STYLE,c)},m={},h={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(m[e]=n),r.length&&(h[e]=f[e].oldTags)})),t&&t(),u(e,m,h)},le=function(e){return Array.isArray(e)?e.join(""):e},ue=function(e,t){void 0!==e&&document.title!==e&&(document.title=le(e)),se(w.TITLE,t)},se=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(z),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),l=0;l=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(z):n.getAttribute(z)!==i.join(",")&&n.setAttribute(z,i.join(","))}},ce=function(e,t){var n=document.head||document.querySelector(w.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===T)n.innerHTML=t.innerHTML;else if(r===E)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[r]?"":t[r];n.setAttribute(r,l)}n.setAttribute(z,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},de=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[N[n]||n]=e[n],t}),t)},fe=function(e,t,n){switch(e){case w.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[z]=!0,o=pe(n,r),[m.a.createElement(w.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=de(n),a=le(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+V(a,r)+"":"<"+e+' data-react-helmet="true">'+V(a,r)+""}(e,t.title,t.titleAttributes,n)}};case y:case b:return{toComponent:function(){return pe(t)},toString:function(){return de(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[z]=!0,r);return Object.keys(t).forEach((function(e){var n=N[e]||e;if(n===T||n===E){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),m.a.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===T||e===E)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+V(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===B.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(i?"/>":">"+a+"")}),"")}(e,t,n)}}}},me=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,l=e.noscriptTags,u=e.scriptTags,s=e.styleTags,c=e.title,d=void 0===c?"":c,p=e.titleAttributes;return{base:fe(w.BASE,t,r),bodyAttributes:fe(y,n,r),htmlAttributes:fe(b,o,r),link:fe(w.LINK,a,r),meta:fe(w.META,i,r),noscript:fe(w.NOSCRIPT,l,r),script:fe(w.SCRIPT,u,r),style:fe(w.STYLE,s,r),title:fe(w.TITLE,{title:d,titleAttributes:p},r)}},he=c()((function(e){return{baseTag:X([S,R],e),bodyAttributes:Q(y,e),defer:Z(e,L),encode:Z(e,D),htmlAttributes:Q(b,e),linkTags:J(w.LINK,[A,S],e),metaTags:J(w.META,[O,k,x,P,C],e),noscriptTags:J(w.NOSCRIPT,[T],e),onChangeClientState:Y(e),scriptTags:J(w.SCRIPT,[_,T],e),styleTags:J(w.STYLE,[E],e),title:K(e),titleAttributes:Q(v,e)}}),(function(e){ae&&re(ae),e.defer?ae=ne((function(){ie(e,(function(){ae=null}))})):(ie(e),ae=null)}),me)((function(){return null})),ge=(o=he,i=a=function(e){function t(){return $(this,t),W(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return q({},r,((t={})[n.type]=[].concat(r[n.type]||[],[q({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case w.TITLE:return q({},o,((t={})[r.type]=i,t.titleAttributes=q({},a),t));case w.BODY:return q({},o,{bodyAttributes:q({},a)});case w.HTML:return q({},o,{htmlAttributes:q({},a)})}return q({},o,((n={})[r.type]=q({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=q({},t);return Object.keys(e).forEach((function(t){var r;n=q({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return m.a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[M[n]||n]=e[n],t}),t)}(H(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=H(e,["children"]),r=q({},n);return t&&(r=this.mapChildrenToProps(t,r)),m.a.createElement(o,r)},G(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(m.a.Component),a.propTypes={base:u.a.object,bodyAttributes:u.a.object,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),defaultTitle:u.a.string,defer:u.a.bool,encodeSpecialCharacters:u.a.bool,htmlAttributes:u.a.object,link:u.a.arrayOf(u.a.object),meta:u.a.arrayOf(u.a.object),noscript:u.a.arrayOf(u.a.object),onChangeClientState:u.a.func,script:u.a.arrayOf(u.a.object),style:u.a.arrayOf(u.a.object),title:u.a.string,titleAttributes:u.a.object,titleTemplate:u.a.string},a.defaultProps={defer:!0,encodeSpecialCharacters:!0},a.peek=o.peek,a.rewind=function(){var e=o.rewind();return e||(e=me({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},i);ge.renderStatic=ge.rewind}).call(this,n(26))},function(e,t,n){"use strict";var r,o=n(0),a=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,s=[];function c(){u=e(s.map((function(e){return e.props}))),d.canUseDOM?t(u):n&&(u=n(u))}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return u},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,s=[],e};var i=o.prototype;return i.UNSAFE_componentWillMount=function(){s.push(this),c()},i.componentDidUpdate=function(){c()},i.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),c()},i.render=function(){return a.createElement(r,this.props)},o}(o.PureComponent);return i(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),i(d,"canUseDOM",l),d}}},function(e,t){var n="undefined"!=typeof Element,r="function"==typeof Map,o="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var l,u,s,c;if(Array.isArray(e)){if((l=e.length)!=t.length)return!1;for(u=l;0!=u--;)if(!i(e[u],t[u]))return!1;return!0}if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!t.has(u.value[0]))return!1;for(c=e.entries();!(u=c.next()).done;)if(!i(u.value[1],t.get(u.value[0])))return!1;return!0}if(o&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!t.has(u.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((l=e.length)!=t.length)return!1;for(u=l;0!=u--;)if(e[u]!==t[u])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((l=(s=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(u=l;0!=u--;)if(!Object.prototype.hasOwnProperty.call(t,s[u]))return!1;if(n&&e instanceof Element)return!1;for(u=l;0!=u--;)if(("_owner"!==s[u]&&"__v"!==s[u]&&"__o"!==s[u]||!e.$$typeof)&&!i(e[s[u]],t[s[u]]))return!1;return!0}return e!=e&&t!=t}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},,function(e,t,n){e.exports=n(53)},function(e,t,n){"use strict";var r=n(12),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,h=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n_.length&&_.push(e)}function I(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case i:l=!0}}if(l)return n(r,e,""===t?"."+D(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u