wedance-shared 1.0.161 → 1.0.162

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.
@@ -1,4 +1,3 @@
1
- import { LanguageCode } from "./other.js";
2
1
  /**
3
2
  * Mirrors the `{ fi, en }` shape already used by `Organizer.description`.
4
3
  */
@@ -56,7 +55,7 @@ export type PollResponse = {
56
55
  /** Snapshot of the user's city at submit time. */
57
56
  city: string | null;
58
57
  /** Language the app was in when answering. */
59
- language: LanguageCode | null;
58
+ language: "fi" | "en" | null;
60
59
  createdAt: string;
61
60
  };
62
61
  /** `GET /polls/active` — null when no poll is running. */
@@ -67,7 +66,7 @@ export type ActivePollResponse = {
67
66
  /** `POST /polls/:id/responses` */
68
67
  export type SubmitPollResponseInput = {
69
68
  answers: PollAnswers;
70
- language?: LanguageCode;
69
+ language?: "fi" | "en";
71
70
  };
72
71
  export type PollOptionTally = {
73
72
  optionId: string;
@@ -84,7 +83,7 @@ export type PollQuestionResults = {
84
83
  textAnswers?: {
85
84
  text: string;
86
85
  city: string | null;
87
- language: LanguageCode | null;
86
+ language: "fi" | "en" | null;
88
87
  }[];
89
88
  /** Responses that answered this question. */
90
89
  answeredCount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.161",
3
+ "version": "1.0.162",
4
4
  "description": "This repository contains shared TypeScript types and interfaces used across multiple WeDance applications:",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",