@voltro/plugin-matchmaking 0.87.0 → 0.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +169 -6
- package/THIRD-PARTY-NOTICES.md +684 -88
- package/dist/admission.entity.js +1 -2
- package/dist/assignment.js +1 -2
- package/dist/avoidPairs.js +1 -2
- package/dist/contract.js +1 -2
- package/dist/director.js +1 -2
- package/dist/directorContract.js +1 -2
- package/dist/directorWorkflow.js +1 -2
- package/dist/errors.js +1 -2
- package/dist/inspect.js +1 -2
- package/dist/packing.js +1 -2
- package/dist/parties.js +1 -2
- package/dist/party.entity.js +1 -2
- package/dist/partyComponents.js +1 -2
- package/dist/partyContract.js +1 -2
- package/dist/plugin.js +1 -2
- package/dist/port.js +1 -2
- package/dist/queue.js +1 -2
- package/dist/queueDeclarations.js +1 -2
- package/dist/roomsAllocator.js +1 -2
- package/dist/rpc.js +1 -2
- package/dist/service.js +1 -2
- package/dist/strategies.js +1 -2
- package/dist/testing.js +1 -2
- package/dist/ticketContract.js +1 -2
- package/dist/tickets.entity.js +1 -2
- package/dist/web.js +1 -2
- package/package.json +9 -9
package/dist/admission.entity.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CLAIMS_TABLE as e, QUEUES_TABLE as t } from "./ticketContract.js";
|
|
2
2
|
import { boolean as n, id as r, integer as i, table as a, text as o } from "@voltro/database";
|
|
3
|
-
|
|
3
|
+
// src/admission.entity.ts
|
|
4
4
|
var s = a(e, {
|
|
5
5
|
id: r({ prefix: "mms" }),
|
|
6
6
|
tenantId: o().maxLength(256).externalId().sensitive("pii"),
|
|
@@ -14,5 +14,4 @@ var s = a(e, {
|
|
|
14
14
|
queue: o().maxLength(256).safe(),
|
|
15
15
|
admission: i().serverOnly()
|
|
16
16
|
}).index(["tenantId", "queue"]);
|
|
17
|
-
//#endregion
|
|
18
17
|
export { c as matchmakingQueuesTable, s as matchmakingSubjectsTable };
|
package/dist/assignment.js
CHANGED
|
@@ -6,7 +6,7 @@ import { matchmakingSubjectKey as o } from "./service.js";
|
|
|
6
6
|
import { Effect as s, Result as c } from "effect";
|
|
7
7
|
import { and as l, eq as u, inSet as d, queryFor as f } from "@voltro/database";
|
|
8
8
|
import { createHash as p } from "node:crypto";
|
|
9
|
-
|
|
9
|
+
// src/assignment.ts
|
|
10
10
|
var m = (e) => p("sha256").update(JSON.stringify(e)).digest("hex"), h = (n) => n instanceof e ? n : t("unavailable"), g = (e) => s.tryPromise({
|
|
11
11
|
try: e,
|
|
12
12
|
catch: h
|
|
@@ -122,5 +122,4 @@ var m = (e) => p("sha256").update(JSON.stringify(e)).digest("hex"), h = (n) => n
|
|
|
122
122
|
sessionId: String(e.sessionId),
|
|
123
123
|
createdAt: e.createdAt instanceof Date ? e.createdAt.getTime() : Date.parse(String(e.createdAt))
|
|
124
124
|
}));
|
|
125
|
-
//#endregion
|
|
126
125
|
export { v as dataStoreMatchmakingAssigner, y as readMatchmakingAssignments };
|
package/dist/avoidPairs.js
CHANGED
package/dist/contract.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { matchmakingError as e } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/contract.ts
|
|
3
3
|
var t = (e) => typeof e == "string" && e.length > 0 && e.length <= 256 && e.trim().length > 0 && !e.includes("\0") && e !== "~", n = (e, t) => Number.isSafeInteger(e) && e >= 1 && e <= t, r = (r) => {
|
|
4
4
|
if (!r || !t(r.name) || !r.teams || !n(r.teams.count, 64) || !n(r.teams.size, 256) || r.teams.count * r.teams.size > 4096 || !n(r.maxTickets, 1e4) || !n(r.maxSearchNodes, 1e6) || !n(r.maxAvoidPairs, 1e5) || !n(r.maxAttributeBytes, 65536) || !r.minQuality || !Number.isFinite(r.minQuality.initial) || r.minQuality.initial < 0 || r.minQuality.initial > 1 || !Array.isArray(r.minQuality.after) || r.minQuality.after.length > 256) throw e("invalid_queue");
|
|
5
5
|
let i = 0, a = r.minQuality.initial, o = Array.from(r.minQuality.after, (t) => {
|
|
@@ -102,5 +102,4 @@ var t = (e) => typeof e == "string" && e.length > 0 && e.length <= 256 && e.trim
|
|
|
102
102
|
}
|
|
103
103
|
return r;
|
|
104
104
|
};
|
|
105
|
-
//#endregion
|
|
106
105
|
export { o as captureJsonData, a as captureMatchInput, r as captureQueueRules, t as identifier, c as minimumQuality, s as sameJson };
|
package/dist/director.js
CHANGED
|
@@ -5,7 +5,7 @@ import { matchmakingTicketsTable as o } from "./tickets.entity.js";
|
|
|
5
5
|
import { captureQueueDeclarations as s } from "./queueDeclarations.js";
|
|
6
6
|
import { Effect as c, Result as l } from "effect";
|
|
7
7
|
import { and as u, eq as d, gt as f, queryFor as p } from "@voltro/database";
|
|
8
|
-
|
|
8
|
+
// src/director.ts
|
|
9
9
|
var m = (n) => n instanceof e ? n : t("unavailable"), h = (e) => {
|
|
10
10
|
let n = e instanceof Date ? e.getTime() : typeof e == "string" ? Date.parse(e) : NaN;
|
|
11
11
|
if (!Number.isSafeInteger(n) || n < 0 || n > 864e13) throw t("unavailable");
|
|
@@ -69,5 +69,4 @@ var m = (n) => n instanceof e ? n : t("unavailable"), h = (e) => {
|
|
|
69
69
|
}).pipe(c.catchDefect(() => c.fail(t("unavailable"))));
|
|
70
70
|
} };
|
|
71
71
|
};
|
|
72
|
-
//#endregion
|
|
73
72
|
export { g as dataStoreMatchmakingPlanner };
|
package/dist/directorContract.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/directorContract.ts
|
|
3
3
|
var t = e.Number.pipe(e.check(e.isInt()), e.check(e.isGreaterThanOrEqualTo(0))), n = e.Struct({
|
|
4
4
|
runKey: e.NonEmptyString,
|
|
5
5
|
maxPairs: t.pipe(e.check(e.isBetween({
|
|
@@ -12,5 +12,4 @@ var t = e.Number.pipe(e.check(e.isInt()), e.check(e.isGreaterThanOrEqualTo(0))),
|
|
|
12
12
|
skipped: t,
|
|
13
13
|
failed: t
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { n as MatchmakingDirectorPayload, r as MatchmakingDirectorResult };
|
package/dist/directorWorkflow.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MatchmakingDirectorPort as e } from "./port.js";
|
|
2
2
|
import { Effect as t } from "effect";
|
|
3
|
-
|
|
3
|
+
// src/directorWorkflow.ts
|
|
4
4
|
var n = (n) => e.pipe(t.flatMap((e) => e.run(n)));
|
|
5
|
-
//#endregion
|
|
6
5
|
export { n as matchmakingDirectorWorkflowExecutor };
|
package/dist/errors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/errors.ts
|
|
3
3
|
var t = class extends e.TaggedError()("MatchmakingError", { code: e.Literals([
|
|
4
4
|
"invalid_input",
|
|
5
5
|
"invalid_queue",
|
|
@@ -17,5 +17,4 @@ var t = class extends e.TaggedError()("MatchmakingError", { code: e.Literals([
|
|
|
17
17
|
"already_in_party",
|
|
18
18
|
"party_not_ready"
|
|
19
19
|
]) }) {}, n = (e) => new t({ code: e });
|
|
20
|
-
//#endregion
|
|
21
20
|
export { t as MatchmakingError, n as matchmakingError };
|
package/dist/inspect.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { matchmakingError as e } from "./errors.js";
|
|
2
2
|
import { defaultMatchmakingAvoidPairs as t } from "./avoidPairs.js";
|
|
3
|
-
|
|
3
|
+
// src/inspect.ts
|
|
4
4
|
var n = (n, r, i = Date.now()) => {
|
|
5
5
|
if (!Number.isSafeInteger(i) || i < 0 || i > 864e13) throw e("unavailable");
|
|
6
6
|
return {
|
|
@@ -37,5 +37,4 @@ var n = (n, r, i = Date.now()) => {
|
|
|
37
37
|
]
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
export { n as matchmakingStatus };
|
package/dist/packing.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { matchmakingError as e } from "./errors.js";
|
|
2
2
|
import { captureMatchInput as t } from "./contract.js";
|
|
3
|
-
|
|
3
|
+
// src/packing.ts
|
|
4
4
|
var n = (t, n) => {
|
|
5
5
|
let { count: r, size: i } = t.queue.teams, a = r * i, o = t.tickets, s = /* @__PURE__ */ new Map();
|
|
6
6
|
for (let [e, n] of t.avoid) s.has(e) || s.set(e, /* @__PURE__ */ new Set()), s.has(n) || s.set(n, /* @__PURE__ */ new Set()), s.get(e).add(n), s.get(n).add(e);
|
|
@@ -68,5 +68,4 @@ var n = (t, n) => {
|
|
|
68
68
|
if (i !== void 0 && typeof i != "function") throw e("invalid_input");
|
|
69
69
|
return n(t(r), i);
|
|
70
70
|
};
|
|
71
|
-
//#endregion
|
|
72
71
|
export { n as packCapturedTeams, r as packTeams };
|
package/dist/parties.js
CHANGED
|
@@ -5,7 +5,7 @@ import { matchmakingSubjectsTable as o } from "./admission.entity.js";
|
|
|
5
5
|
import { Effect as s } from "effect";
|
|
6
6
|
import { and as c, eq as l, queryFor as u } from "@voltro/database";
|
|
7
7
|
import { createHash as d } from "node:crypto";
|
|
8
|
-
|
|
8
|
+
// src/parties.ts
|
|
9
9
|
var f = (e) => d("sha256").update(JSON.stringify(e)).digest("hex"), p = (n) => n instanceof e ? n : t("unavailable"), m = (e) => e === !0 || e === 1, h = (e) => s.tryPromise({
|
|
10
10
|
try: e,
|
|
11
11
|
catch: p
|
|
@@ -313,5 +313,4 @@ var f = (e) => d("sha256").update(JSON.stringify(e)).digest("hex"), p = (n) => n
|
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
315
|
};
|
|
316
|
-
//#endregion
|
|
317
316
|
export { x as dataStoreParties, b as resolvePartyOptions };
|
package/dist/party.entity.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PARTIES_TABLE as e, PARTY_INVITES_TABLE as t, PARTY_MEMBERS_TABLE as n } from "./partyContract.js";
|
|
2
2
|
import { boolean as r, id as i, integer as a, table as o, text as s, timestamp as c } from "@voltro/database";
|
|
3
|
-
|
|
3
|
+
// src/party.entity.ts
|
|
4
4
|
var l = o(e, {
|
|
5
5
|
id: i({ prefix: "mmp" }),
|
|
6
6
|
tenantId: s().maxLength(256).externalId().sensitive("pii"),
|
|
@@ -30,5 +30,4 @@ var l = o(e, {
|
|
|
30
30
|
u,
|
|
31
31
|
d
|
|
32
32
|
];
|
|
33
|
-
//#endregion
|
|
34
33
|
export { l as matchmakingPartiesTable, d as matchmakingPartyInvitesTable, u as matchmakingPartyMembersTable, f as partyTables };
|
package/dist/partyComponents.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useId as e, useState as t } from "react";
|
|
2
2
|
import { Button as n, Input as r } from "@voltro/ui-shadcn";
|
|
3
3
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/partyComponents.tsx
|
|
5
5
|
var o = {
|
|
6
6
|
en: {
|
|
7
7
|
title: "Party",
|
|
@@ -173,5 +173,4 @@ var o = {
|
|
|
173
173
|
]
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
|
-
//#endregion
|
|
177
176
|
export { s as PartyPanel, o as partyLabels };
|
package/dist/partyContract.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/partyContract.ts
|
|
3
3
|
var t = "_voltro_mm_parties", n = "_voltro_mm_party_members", r = "_voltro_mm_party_invites", i = e.Number.pipe(e.check(e.isInt()), e.check(e.isGreaterThanOrEqualTo(0))), a = e.Struct({
|
|
4
4
|
subjectId: e.String,
|
|
5
5
|
role: e.Literals(["leader", "member"]),
|
|
@@ -21,5 +21,4 @@ var t = "_voltro_mm_parties", n = "_voltro_mm_party_members", r = "_voltro_mm_pa
|
|
|
21
21
|
inviterId: e.String,
|
|
22
22
|
expiresAt: i
|
|
23
23
|
});
|
|
24
|
-
//#endregion
|
|
25
24
|
export { t as PARTIES_TABLE, r as PARTY_INVITES_TABLE, n as PARTY_MEMBERS_TABLE, s as PartyInviteSchema, a as PartyMemberSchema, o as PartySchema };
|
package/dist/plugin.js
CHANGED
|
@@ -13,7 +13,7 @@ import { defineLicensedGamePlugin as M } from "@voltro/plugin-licensing/gate";
|
|
|
13
13
|
import { fileURLToPath as N } from "node:url";
|
|
14
14
|
import { and as P, eq as F, gt as I, queryFor as L } from "@voltro/database";
|
|
15
15
|
import { systemSubject as ce } from "@voltro/protocol";
|
|
16
|
-
|
|
16
|
+
// src/plugin.ts
|
|
17
17
|
var R = (e) => k.flatMap(k.serviceOption(r), (n) => j.isNone(n) ? k.fail(t("unavailable")) : e(n.value)), z = {
|
|
18
18
|
slots: { avoidPairs: {
|
|
19
19
|
defaultExport: "defaultMatchmakingAvoidPairs",
|
|
@@ -254,5 +254,4 @@ var R = (e) => k.flatMap(k.serviceOption(r), (n) => j.isNone(n) ? k.fail(t("unav
|
|
|
254
254
|
})
|
|
255
255
|
};
|
|
256
256
|
};
|
|
257
|
-
//#endregion
|
|
258
257
|
export { B as matchmakingPlugin, z as matchmakingSystemContract };
|
package/dist/port.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Context as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/port.ts
|
|
3
3
|
var t = class extends e.Service()("@voltro/MatchmakingPort") {}, n = class extends e.Service()("@voltro/PartyMembershipPort") {}, r = class extends e.Service()("@voltro/PartyRosterPort") {}, i = class extends e.Service()("@voltro/MatchmakingDirectorPort") {};
|
|
4
|
-
//#endregion
|
|
5
4
|
export { i as MatchmakingDirectorPort, t as MatchmakingPort, n as PartyMembershipPort, r as PartyRosterPort };
|
package/dist/queue.js
CHANGED
|
@@ -2,7 +2,7 @@ import { matchmakingError as e } from "./errors.js";
|
|
|
2
2
|
import { captureMatchInput as t, captureQueueRules as n, sameJson as r } from "./contract.js";
|
|
3
3
|
import { validateMatchOutput as i } from "./strategies.js";
|
|
4
4
|
import { Schema as a } from "effect";
|
|
5
|
-
|
|
5
|
+
// src/queue.ts
|
|
6
6
|
var o = (t) => {
|
|
7
7
|
if (!t || typeof t != "object") throw e("invalid_queue");
|
|
8
8
|
let r = n({
|
|
@@ -76,5 +76,4 @@ var o = (t) => {
|
|
|
76
76
|
exhausted: p
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
|
-
//#endregion
|
|
80
79
|
export { o as defineQueue, s as runQueueMatch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { matchmakingError as e } from "./errors.js";
|
|
2
2
|
import { defineQueue as t } from "./queue.js";
|
|
3
|
-
|
|
3
|
+
// src/queueDeclarations.ts
|
|
4
4
|
var n = (n) => {
|
|
5
5
|
if (!Array.isArray(n) || n.length > 256) throw e("invalid_queue");
|
|
6
6
|
let r = Array.from(n, (n) => {
|
|
@@ -24,5 +24,4 @@ var n = (n) => {
|
|
|
24
24
|
if (new Set(r.map((e) => e.name)).size !== r.length) throw e("invalid_queue");
|
|
25
25
|
return Object.freeze(r);
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { n as captureQueueDeclarations };
|
package/dist/roomsAllocator.js
CHANGED
|
@@ -2,7 +2,7 @@ import { matchmakingError as e } from "./errors.js";
|
|
|
2
2
|
import { Effect as t } from "effect";
|
|
3
3
|
import { resolveIdentityAuthority as n } from "@voltro/protocol";
|
|
4
4
|
import { RoomReservePort as r } from "@voltro/plugin-rooms/ports";
|
|
5
|
-
|
|
5
|
+
// src/roomsAllocator.ts
|
|
6
6
|
var i = (i) => {
|
|
7
7
|
if (!i?.rooms?.services || typeof i.room != "function") throw e("invalid_queue");
|
|
8
8
|
let a = i.maxRetained ?? 1024;
|
|
@@ -72,5 +72,4 @@ var i = (i) => {
|
|
|
72
72
|
})
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
-
//#endregion
|
|
76
75
|
export { i as roomsAllocator };
|
package/dist/rpc.js
CHANGED
|
@@ -4,7 +4,7 @@ import { ASSIGNMENTS_TABLE as o, MatchmakingAssignmentSchema as s, MatchmakingEs
|
|
|
4
4
|
import { MatchmakingDirectorPayload as d, MatchmakingDirectorResult as f } from "./directorContract.js";
|
|
5
5
|
import { Schema as p } from "effect";
|
|
6
6
|
import { defineAction as m, defineQuery as h } from "@voltro/protocol";
|
|
7
|
-
|
|
7
|
+
// src/rpc.ts
|
|
8
8
|
var g = "@voltro/plugin-matchmaking", _ = "Verified human identity and tenant come from the request; the service admits and reads only the caller-owned search.", v = m({
|
|
9
9
|
name: "matchmaking.enqueue",
|
|
10
10
|
input: p.Struct({
|
|
@@ -198,5 +198,4 @@ var g = "@voltro/plugin-matchmaking", _ = "Verified human identity and tenant co
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
];
|
|
201
|
-
//#endregion
|
|
202
201
|
export { g as BASE_NAME, d as MatchmakingDirectorPayload, f as MatchmakingDirectorResult, S as assignmentsDescriptor, y as cancelDescriptor, v as enqueueDescriptor, x as estimateDescriptor, R as matchmakingRpcClientImports, P as partyCancelSearchDescriptor, E as partyCreateDescriptor, D as partyInviteDescriptor, I as partyInvitesDescriptor, O as partyJoinDescriptor, A as partyKickDescriptor, k as partyLeaveDescriptor, F as partyMineDescriptor, L as partyRpcClientImports, N as partySearchDescriptor, j as partySetReadyDescriptor, M as partyTransferLeaderDescriptor, b as statusDescriptor };
|
package/dist/service.js
CHANGED
|
@@ -10,7 +10,7 @@ import { dataStoreMatchmakingPlanner as p } from "./director.js";
|
|
|
10
10
|
import { Effect as m, Schema as h } from "effect";
|
|
11
11
|
import { and as g, eq as _, gt as v, queryFor as y } from "@voltro/database";
|
|
12
12
|
import { createHash as b } from "node:crypto";
|
|
13
|
-
|
|
13
|
+
// src/service.ts
|
|
14
14
|
var x = (e) => b("sha256").update(JSON.stringify(e, (e, t) => typeof t == "object" && t && !Array.isArray(t) ? Object.fromEntries(Object.entries(t).sort(([e], [t]) => e < t ? -1 : +(e > t))) : t)).digest("hex"), S = (e, t) => "mms_" + x([e, t]).slice(0, 56), C = (n) => n instanceof e ? n : t("unavailable"), w = (e) => e === !0 || e === 1, T = (e) => m.tryPromise({
|
|
15
15
|
try: e,
|
|
16
16
|
catch: C
|
|
@@ -366,5 +366,4 @@ var x = (e) => b("sha256").update(JSON.stringify(e, (e, t) => typeof t == "objec
|
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
368
|
};
|
|
369
|
-
//#endregion
|
|
370
369
|
export { F as dataStoreMatchmakingTickets, S as matchmakingSubjectKey, A as resolveTicketAdmissionOptions };
|
package/dist/strategies.js
CHANGED
|
@@ -2,7 +2,7 @@ import { matchmakingError as e } from "./errors.js";
|
|
|
2
2
|
import { captureMatchInput as t, minimumQuality as n, sameJson as r } from "./contract.js";
|
|
3
3
|
import { packCapturedTeams as i } from "./packing.js";
|
|
4
4
|
import { defaultMatchmakingAvoidPairs as a } from "./avoidPairs.js";
|
|
5
|
-
|
|
5
|
+
// src/strategies.ts
|
|
6
6
|
var o = (e, t) => e.now - Math.min(...t.flat().map((e) => e.createdAt)), s = (r, a) => {
|
|
7
7
|
let s = t(r), c = [], l = s.tickets, u = 0, d = !1;
|
|
8
8
|
for (; l.length > 0;) {
|
|
@@ -137,5 +137,4 @@ var o = (e, t) => e.now - Math.min(...t.flat().map((e) => e.createdAt)), s = (r,
|
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
|
-
//#endregion
|
|
141
140
|
export { m as composite, a as defaultMatchmakingAvoidPairs, c as fifo, f as regionLatency, d as skillWindow, p as validateMatchOutput };
|
package/dist/testing.js
CHANGED
|
@@ -6,7 +6,7 @@ import { defineQueue as o } from "./queue.js";
|
|
|
6
6
|
import { MatchmakingDirectorPort as s, MatchmakingPort as c, PartyMembershipPort as l, PartyRosterPort as u } from "./port.js";
|
|
7
7
|
import { resolveTicketAdmissionOptions as d } from "./service.js";
|
|
8
8
|
import { Effect as f, Layer as p, Result as m, Schema as h } from "effect";
|
|
9
|
-
|
|
9
|
+
// src/testing.ts
|
|
10
10
|
var g = () => ({
|
|
11
11
|
now: 1e3,
|
|
12
12
|
queue: {
|
|
@@ -148,5 +148,4 @@ var g = () => ({
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
-
//#endregion
|
|
152
151
|
export { A as fakeMatchmakingDirectorLayer, y as fakeMatchmakingLayer, v as fakeMatchmakingService, w as fakePartyMembershipLayer, D as fakePartyRosterLayer, _ as matchFunctionFixture, b as matchmakingAvoidPairsFixture, x as matchmakingAvoidPairsSlotFixture, j as matchmakingDirectorFakeLayer, M as matchmakingDirectorPortFixture, S as matchmakingFakeLayer, g as matchmakingInputFixture, C as matchmakingPortFixture, T as partyMembershipFakeLayer, E as partyMembershipPortFixture, O as partyRosterFakeLayer, k as partyRosterPortFixture };
|
package/dist/ticketContract.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/ticketContract.ts
|
|
3
3
|
var t = "_voltro_mm_tickets", n = "_voltro_mm_subject_admission", r = "_voltro_mm_queue_admission", i = "_voltro_mm_assignments", a = e.Number.pipe(e.check(e.isInt()), e.check(e.isGreaterThanOrEqualTo(0))), o = e.Record(e.String, e.Unknown), s = e.Struct({
|
|
4
4
|
id: e.String,
|
|
5
5
|
queue: e.String,
|
|
@@ -27,5 +27,4 @@ var t = "_voltro_mm_tickets", n = "_voltro_mm_subject_admission", r = "_voltro_m
|
|
|
27
27
|
sessionId: e.String,
|
|
28
28
|
createdAt: a
|
|
29
29
|
});
|
|
30
|
-
//#endregion
|
|
31
30
|
export { i as ASSIGNMENTS_TABLE, n as CLAIMS_TABLE, l as MatchmakingAssignmentSchema, c as MatchmakingEstimateSchema, s as MatchmakingTicketSchema, r as QUEUES_TABLE, t as TICKETS_TABLE };
|
package/dist/tickets.entity.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ASSIGNMENTS_TABLE as e, TICKETS_TABLE as t } from "./ticketContract.js";
|
|
2
2
|
import { id as n, integer as r, json as i, table as a, text as o, timestamp as s } from "@voltro/database";
|
|
3
|
-
|
|
3
|
+
// src/tickets.entity.ts
|
|
4
4
|
var c = a(t, {
|
|
5
5
|
id: n({ prefix: "mmt" }),
|
|
6
6
|
tenantId: o().maxLength(256).externalId().sensitive("pii"),
|
|
@@ -46,5 +46,4 @@ var c = a(t, {
|
|
|
46
46
|
"subjectId",
|
|
47
47
|
"createdAt"
|
|
48
48
|
]);
|
|
49
|
-
//#endregion
|
|
50
49
|
export { l as matchmakingAssignmentsTable, c as matchmakingTicketsTable };
|
package/dist/web.js
CHANGED
|
@@ -2,7 +2,6 @@ import { BASE_NAME as e } from "./rpc.js";
|
|
|
2
2
|
import { PartyPanel as t, partyLabels as n } from "./partyComponents.js";
|
|
3
3
|
import { pluginTag as r } from "@voltro/protocol";
|
|
4
4
|
import { useAction as i, useSubscription as a } from "@voltro/client";
|
|
5
|
-
|
|
5
|
+
// src/web.ts
|
|
6
6
|
var o = (t = "app") => i(t, r(e, "enqueue")), s = (t = "app") => i(t, r(e, "cancel")), c = (t, n = "app") => a(n, r(e, "status"), { ticketId: t ?? "" }, { skip: t === void 0 }), l = (t = "app") => a(t, r(e, "assignments"), {}), u = (t = "app") => a(t, r(e, "parties.mine"), {}), d = (t = "app") => a(t, r(e, "parties.invites"), {}), f = (t = "app") => i(t, r(e, "parties.create")), p = (t = "app") => i(t, r(e, "parties.invite")), m = (t = "app") => i(t, r(e, "parties.join")), h = (t = "app") => i(t, r(e, "parties.leave")), g = (t = "app") => i(t, r(e, "parties.kick")), _ = (t = "app") => i(t, r(e, "parties.setReady")), v = (t = "app") => i(t, r(e, "parties.transferLeader")), y = (t = "app") => i(t, r(e, "parties.search")), b = (t = "app") => i(t, r(e, "parties.cancelSearch"));
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as PartyPanel, n as partyLabels, s as useCancelMatchmaking, b as useCancelPartySearch, f as useCreateParty, o as useEnqueueMatchmaking, p as useInviteToParty, m as useJoinParty, g as useKickFromParty, h as useLeaveParty, l as useMatchmakingAssignments, c as useMatchmakingStatus, u as useParty, d as usePartyInvites, y as useSearchAsParty, _ as useSetPartyReady, v as useTransferPartyLeader };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/plugin-matchmaking",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.88.0",
|
|
4
4
|
"description": "SQL-owned solo search admission and bounded whole-party matching foundations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
"node": ">=24.0.0"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@voltro/database": "0.
|
|
87
|
-
"@voltro/protocol": "0.
|
|
88
|
-
"@voltro/client": "0.
|
|
89
|
-
"@voltro/plugin-licensing": "0.
|
|
90
|
-
"@voltro/ui-shadcn": "0.
|
|
91
|
-
"@voltro/workflow": "0.
|
|
86
|
+
"@voltro/database": "0.88.0",
|
|
87
|
+
"@voltro/protocol": "0.88.0",
|
|
88
|
+
"@voltro/client": "0.88.0",
|
|
89
|
+
"@voltro/plugin-licensing": "0.88.0",
|
|
90
|
+
"@voltro/ui-shadcn": "0.88.0",
|
|
91
|
+
"@voltro/workflow": "0.88.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"effect": "4.0
|
|
94
|
+
"effect": "4.1.0",
|
|
95
95
|
"react": "^19.0.0",
|
|
96
|
-
"@voltro/plugin-rooms": "0.
|
|
96
|
+
"@voltro/plugin-rooms": "0.88.0"
|
|
97
97
|
},
|
|
98
98
|
"peerDependenciesMeta": {
|
|
99
99
|
"@voltro/plugin-rooms": {
|