@hadoku/platform-wire 0.1.23 → 0.1.25
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/dist/events.d.ts +1 -0
- package/dist/events.js +2 -0
- package/package.json +2 -2
package/dist/events.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const eventViewSchema: <K extends z.ZodType, R extends z.ZodType>
|
|
|
29
29
|
startsAt: z.ZodString;
|
|
30
30
|
organizer: z.ZodString;
|
|
31
31
|
mine: z.ZodCatch<z.ZodBoolean>;
|
|
32
|
+
joined: z.ZodCatch<z.ZodBoolean>;
|
|
32
33
|
roomId: z.ZodCatch<z.ZodNullable<z.ZodString>>;
|
|
33
34
|
room: z.ZodOptional<z.ZodCatch<z.ZodNullable<R>>>;
|
|
34
35
|
signedUp: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodNumber>>>;
|
package/dist/events.js
CHANGED
|
@@ -46,6 +46,8 @@ export const eventViewSchema = (kind, room) => z.object({
|
|
|
46
46
|
organizer: z.string(),
|
|
47
47
|
/** Whether the caller organized it: only they may move or cancel it. */
|
|
48
48
|
mine: z.boolean().catch(false),
|
|
49
|
+
/** Whether the caller is already in the event's room: they have signed up, so there is nothing to sign up for. */
|
|
50
|
+
joined: z.boolean().catch(false),
|
|
49
51
|
/** The event's room. An event whose room has closed is not listed. */
|
|
50
52
|
roomId: z.string().nullable().catch(null),
|
|
51
53
|
/** The room as it is now. Always sent; optional only so a reader's fixture may leave it out. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/platform-wire",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "0.1.25",
|
|
4
|
+
"gitHead": "7bd6f116fbcfe910127a8ca55b0e23e9b33a84c0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "The wire any game speaks: room ids, telemetry, presence, events and tables, the Discord relay, looks, the restart notice, secure random and a generic server envelope. Knows no game; a game's own part rides as a type parameter. MIT; imports only zod.",
|