@assemblyvoting/types 1.0.0-beta.4 → 1.0.0-beta.6

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.
Files changed (52) hide show
  1. package/dist/lib/common/index.d.ts +1 -0
  2. package/dist/lib/common/index.d.ts.map +1 -1
  3. package/dist/lib/common/localization.d.ts +1 -1
  4. package/dist/lib/common/theme.d.ts +1 -0
  5. package/dist/lib/common/theme.d.ts.map +1 -1
  6. package/dist/lib/common/workflow_state.d.ts +2 -0
  7. package/dist/lib/common/workflow_state.d.ts.map +1 -0
  8. package/dist/lib/e2e/ballot_selection.d.ts +1 -1
  9. package/dist/lib/e2e/board_items/commitment_items/board_commitment.d.ts +1 -1
  10. package/dist/lib/e2e/board_items/commitment_items/board_commitment_opening.d.ts +1 -1
  11. package/dist/lib/e2e/board_items/commitment_items/commitment_opening.d.ts +1 -1
  12. package/dist/lib/e2e/board_items/commitment_items/voter_commitment.d.ts +1 -1
  13. package/dist/lib/e2e/board_items/commitment_items/voter_commitment_opening.d.ts +1 -1
  14. package/dist/lib/e2e/board_items/crypto_items/ballot_cryptogram.d.ts +1 -1
  15. package/dist/lib/e2e/board_items/crypto_items/cast_request.d.ts +1 -1
  16. package/dist/lib/e2e/board_items/crypto_items/spoil_request.d.ts +1 -1
  17. package/dist/lib/e2e/board_items/dbb_items/ballot_config.d.ts +1 -1
  18. package/dist/lib/e2e/board_items/dbb_items/base.d.ts +1 -1
  19. package/dist/lib/e2e/board_items/dbb_items/contest_config.d.ts +1 -1
  20. package/dist/lib/e2e/board_items/dbb_items/election_config.d.ts +1 -1
  21. package/dist/lib/e2e/board_items/dbb_items/genesis_config.d.ts +1 -1
  22. package/dist/lib/e2e/board_items/dbb_items/latest_config.d.ts +1 -1
  23. package/dist/lib/e2e/board_items/dbb_items/option_config.d.ts +1 -1
  24. package/dist/lib/e2e/board_items/dbb_items/segments_config.d.ts +1 -1
  25. package/dist/lib/e2e/board_items/dbb_items/threshold_config.d.ts +1 -1
  26. package/dist/lib/e2e/board_items/dbb_items/voter_authorizer.d.ts +1 -1
  27. package/dist/lib/e2e/board_items/dbb_items/voter_session.d.ts +1 -1
  28. package/dist/lib/e2e/board_items/dbb_items/voting_round_config.d.ts +1 -1
  29. package/dist/lib/e2e/board_items/helpers.d.ts +1 -1
  30. package/dist/lib/e2e/board_items/verification_items/base.d.ts +1 -1
  31. package/dist/lib/e2e/board_items/verification_items/verification_start.d.ts +1 -1
  32. package/dist/lib/e2e/board_items/verification_items/verifier.d.ts +1 -1
  33. package/dist/lib/e2e/trustee.d.ts +1 -1
  34. package/dist/lib/legacy/conference-types/contest.d.ts +1 -1
  35. package/dist/lib/legacy/conference-types/election.d.ts +1 -1
  36. package/dist/lib/legacy/conference-types/election_status.d.ts +97 -0
  37. package/dist/lib/legacy/conference-types/election_status.d.ts.map +1 -0
  38. package/dist/lib/legacy/conference-types/index.d.ts +6 -0
  39. package/dist/lib/legacy/conference-types/index.d.ts.map +1 -1
  40. package/dist/lib/legacy/conference-types/option.d.ts +1 -1
  41. package/dist/lib/legacy/conference-types/result.d.ts +50 -0
  42. package/dist/lib/legacy/conference-types/result.d.ts.map +1 -0
  43. package/dist/lib/legacy/conference-types/result_orchestrator.d.ts +26 -0
  44. package/dist/lib/legacy/conference-types/result_orchestrator.d.ts.map +1 -0
  45. package/dist/lib/legacy/conference-types/slide.d.ts +58 -0
  46. package/dist/lib/legacy/conference-types/slide.d.ts.map +1 -0
  47. package/dist/lib/legacy/conference-types/voter_counts.d.ts +34 -0
  48. package/dist/lib/legacy/conference-types/voter_counts.d.ts.map +1 -0
  49. package/dist/lib/legacy/conference-types/voting_round.d.ts +1 -1
  50. package/dist/lib/legacy/conference-types/voting_round_report.d.ts +19 -0
  51. package/dist/lib/legacy/conference-types/voting_round_report.d.ts.map +1 -0
  52. package/package.json +4 -3
@@ -2,4 +2,5 @@ export type * from "./localization";
2
2
  export type * from "./crypto_basics";
3
3
  export type * from "./theme";
4
4
  export type * from "./status";
5
+ export type * from "./workflow_state";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/common/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/common/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { SUPPORTED_LOCALES, BACKEND_LOCALES } from "@/constants";
1
+ import { SUPPORTED_LOCALES, BACKEND_LOCALES } from "../../constants/index.js";
2
2
  export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
3
3
  export type BackendLocale = (typeof BACKEND_LOCALES)[number];
4
4
  export type LocalString = {
@@ -1,4 +1,5 @@
1
1
  export type ThemeTextColor = "contrast" | "white" | "black";
2
2
  export type OptionImageFormat = "passport" | "square";
3
3
  export type ElectionCodeVisibility = "visible" | "hidden";
4
+ export type Theme = "light" | "dark";
4
5
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../lib/common/theme.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../lib/common/theme.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE1D,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type WorkflowState = "initial" | "starting" | "ready" | "aggregating" | "anonymising" | "mixing" | "working" | "extracting" | "decrypting" | "ceremony_finished" | "finished" | "failed" | "copying" | "processing" | "mapping" | "validating" | "cancelled";
2
+ //# sourceMappingURL=workflow_state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow_state.d.ts","sourceRoot":"","sources":["../../../lib/common/workflow_state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,UAAU,GACV,OAAO,GACP,aAAa,GACb,aAAa,GACb,QAAQ,GACR,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,UAAU,GACV,QAAQ,GACR,SAAS,GACT,YAAY,GACZ,SAAS,GACT,YAAY,GACZ,WAAW,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ContestSelection } from "@";
1
+ import type { ContestSelection } from "../..";
2
2
  export interface BallotSelection {
3
3
  reference: string;
4
4
  contestSelections: Array<ContestSelection>;
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem } from "@";
1
+ import type { BaseBoardItem } from "../../../..";
2
2
  export interface BoardCommitmentItem extends BaseBoardItem {
3
3
  content: {
4
4
  commitment: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVerificationItem, EncryptedCommitmentOpening } from "@";
1
+ import type { BaseVerificationItem, EncryptedCommitmentOpening } from "../../../..";
2
2
  export interface BoardCommitmentOpeningItem extends BaseVerificationItem {
3
3
  content: {
4
4
  package: EncryptedCommitmentOpening;
@@ -1,4 +1,4 @@
1
- import type { ContestMap } from "@";
1
+ import type { ContestMap } from "../../../..";
2
2
  export interface CommitmentOpening {
3
3
  randomizers: ContestMap<string[][]>;
4
4
  commitmentRandomness: string;
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem } from "@";
1
+ import type { BaseBoardItem } from "../../../..";
2
2
  export interface VoterCommitmentItem extends BaseBoardItem {
3
3
  content: {
4
4
  commitment: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVerificationItem, EncryptedCommitmentOpening } from "@/index";
1
+ import type { BaseVerificationItem, EncryptedCommitmentOpening } from "../../../../index";
2
2
  export interface VoterCommitmentOpeningItem extends BaseVerificationItem {
3
3
  content: {
4
4
  package: EncryptedCommitmentOpening;
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem, ContestMap, SealedPile } from "@";
1
+ import type { BaseBoardItem, ContestMap, SealedPile } from "../../../..";
2
2
  export interface BallotCryptogramItem extends BaseBoardItem {
3
3
  content: {
4
4
  contests: ContestMap<Array<SealedPile>>;
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem } from "@";
1
+ import type { BaseBoardItem } from "../../../..";
2
2
  export interface CastRequestItem extends BaseBoardItem {
3
3
  content: Record<string, never>;
4
4
  type: "CastRequestItem";
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem } from "@";
1
+ import type { BaseBoardItem } from "../../../..";
2
2
  export interface SpoilRequestItem extends BaseBoardItem {
3
3
  type: "SpoilRequestItem";
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem } from "@";
1
+ import type { BaseBoardItem } from "../../../..";
2
2
  export interface BallotContent {
3
3
  reference: string;
4
4
  voterGroup: string;
@@ -1,4 +1,4 @@
1
- import type { VoterSessionItem, VoterCommitmentItem, BoardCommitmentItem, BallotCryptogramItem, CastRequestItem } from "@";
1
+ import type { VoterSessionItem, VoterCommitmentItem, BoardCommitmentItem, BallotCryptogramItem, CastRequestItem } from "../../../..";
2
2
  export type BoardItemType = "BallotCryptogramsItem" | "BoardEncryptionCommitmentItem" | "CastRequestItem" | "SpoilRequestItem" | "VerificationStartItem" | "VerifierItem" | "VoterEncryptionCommitmentItem" | "VoterSessionItem" | "VoterEncryptionCommitmentOpeningItem" | "BoardEncryptionCommitmentOpeningItem";
3
3
  export interface BaseBoardItem {
4
4
  address: string;
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem, LocalString, OptionContent, ContestPositionMap, Attachment } from "@";
1
+ import type { BaseBoardItem, LocalString, OptionContent, ContestPositionMap, Attachment } from "../../../..";
2
2
  export type AvailableCustomRulesets = "belgian_ballot_rules";
3
3
  export type ContestModes = "list" | "gallery";
4
4
  export type MultipleVotingInterface = "crosses" | "counter";
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem, LocalString, BasicEventStatus, SupportedLocale } from "@";
1
+ import type { BaseBoardItem, LocalString, BasicEventStatus, SupportedLocale } from "../../../..";
2
2
  export interface ElectionConfigContent {
3
3
  address?: string;
4
4
  title: LocalString;
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem } from "@";
1
+ import type { BaseBoardItem } from "../../../..";
2
2
  export type ResultExtraction = "post-election" | "throughout-election";
3
3
  export type BallotAcceptance = "inferred" | "manual";
4
4
  export type EACurveName = "secp256r1" | "secp384r1" | "secp521r1" | "secp256k1";
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem, ThresholdConfig, VoterAuthorizer, BallotConfigMap, ContestConfigMap, VotingRoundConfigMap, ElectionConfig, GenesisConfig, SegmentsConfigMap, ExtractionIntents, ExtractionData, ExtractionConfirmations, VoterAuthorizerContent, ThresholdConfigContent, BallotContent, ContestContent, VotingRoundContent, ElectionConfigContent, GenesisConfigContent, SegmentsConfigContent } from "@";
1
+ import type { BaseBoardItem, ThresholdConfig, VoterAuthorizer, BallotConfigMap, ContestConfigMap, VotingRoundConfigMap, ElectionConfig, GenesisConfig, SegmentsConfigMap, ExtractionIntents, ExtractionData, ExtractionConfirmations, VoterAuthorizerContent, ThresholdConfigContent, BallotContent, ContestContent, VotingRoundContent, ElectionConfigContent, GenesisConfigContent, SegmentsConfigContent } from "../../../..";
2
2
  export interface LatestConfigItems {
3
3
  thresholdConfig: ThresholdConfig;
4
4
  voterAuthorizerConfig: VoterAuthorizer;
@@ -1,4 +1,4 @@
1
- import type { LocalString } from "@";
1
+ import type { LocalString } from "../../../..";
2
2
  export interface ParentOption {
3
3
  reference: string;
4
4
  code: number;
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem } from "@";
1
+ import type { BaseBoardItem } from "../../../..";
2
2
  export interface SegmentsConfigMap {
3
3
  [segments: string]: SegmentsConfig;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem, Trustee } from "@";
1
+ import type { BaseBoardItem, Trustee } from "../../../..";
2
2
  export interface ThresholdConfigContent {
3
3
  encryptionKey: string;
4
4
  threshold: number;
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem } from "@";
1
+ import type { BaseBoardItem } from "../../../..";
2
2
  export type VoterAuthorizationMode = "proof-of-identity" | "proof-of-election-codes";
3
3
  export interface VoterAuthorizerContentItem {
4
4
  contextUuid: string;
@@ -1,4 +1,4 @@
1
- import type { Segments, BaseBoardItem } from "@/index";
1
+ import type { Segments, BaseBoardItem } from "../../../../index";
2
2
  export interface VoterSessionItem extends BaseBoardItem {
3
3
  type: "VoterSessionItem";
4
4
  content: {
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem, LocalString, Attachment, ContestPositionMap, ContestSelection, BasicEventStatus } from "@";
1
+ import type { BaseBoardItem, LocalString, Attachment, ContestPositionMap, ContestSelection, BasicEventStatus } from "../../../..";
2
2
  export interface VotingRoundContent {
3
3
  reference: string;
4
4
  status: BasicEventStatus;
@@ -1,4 +1,4 @@
1
- import type { BoardItemType } from "@";
1
+ import type { BoardItemType } from "../../..";
2
2
  export interface ContestMap<T> {
3
3
  [contestId: string]: T;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseBoardItem } from "@";
1
+ import type { BaseBoardItem } from "../../../..";
2
2
  export interface BaseVerificationItem extends BaseBoardItem {
3
3
  shortAddress: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseVerificationItem } from "@";
1
+ import type { BaseVerificationItem } from "../../../..";
2
2
  export interface VerificationStartItem extends BaseVerificationItem {
3
3
  type: "VerificationStartItem";
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseVerificationItem } from "@";
1
+ import type { BaseVerificationItem } from "../../../..";
2
2
  export interface VerifierItem extends BaseVerificationItem {
3
3
  content: {
4
4
  publicKey: string;
@@ -1,4 +1,4 @@
1
- import type { PolynomialCoefficient } from "@";
1
+ import type { PolynomialCoefficient } from "../..";
2
2
  export interface Trustee {
3
3
  publicKey: string;
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import type { LocalString, BlankSubmission, ContestModes, ConferenceOption } from "@";
1
+ import type { LocalString, BlankSubmission, ContestModes, ConferenceOption } from "../../..";
2
2
  export type ConferenceContestRuleSet = "normal" | "ranked";
3
3
  export type ConferenceContestNormalResultMethod = "regular" | "dhondt_ap" | "dhondt" | "sainte_lague" | "modified_sainte_lague" | "imperiali" | "danish" | "huntington_hill";
4
4
  export type ConferenceContestRankedResultMethod = "prioritization" | "score_integer" | "score_fraction" | "instant_runoff" | "multi_seat_instant_runoff";
@@ -1,4 +1,4 @@
1
- import { SupportedLocale, ThemeTextColor, SupportedCurveName, OptionImageFormat, ElectionCodeVisibility, BasicEventStatus, ConferenceVotingRound, LocalString } from "@";
1
+ import { SupportedLocale, ThemeTextColor, SupportedCurveName, OptionImageFormat, ElectionCodeVisibility, BasicEventStatus, ConferenceVotingRound, LocalString } from "../../..";
2
2
  export type ConferenceElectionMode = "demo" | "production" | "disabled";
3
3
  export type ConferenceElectionTrustMode = "trusted" | "verifiable";
4
4
  export type ElectionClientSignInMethod = "election_codes" | "external" | "both";
@@ -0,0 +1,97 @@
1
+ import { LocalString, ConferenceElectionMode, ConferenceElectionTrustMode, SupportedLocale, OptionImageFormat, ElectionShownVoterCounts, BasicEventStatus, SupportedCurveName, ElectionCodeVisibility, PresentationSlide, BallotSlide, ActiveSlide, VoterCounts, ConferenceContest, ConferenceVotingRound, ConferenceVotingRoundReport } from "../../..";
2
+ export type ElectionRedirectMethod = "disabled" | "board" | "custom_url" | "sign_in";
3
+ export type ElectionSignInMethod = "election_codes" | "external" | "both";
4
+ export interface ElectionRedirection {
5
+ redirect_method: ElectionRedirectMethod;
6
+ redirect_timer: number;
7
+ redirect_url: LocalString;
8
+ external_sign_in_url: string;
9
+ sign_in_method: ElectionSignInMethod;
10
+ }
11
+ export interface UserModules {
12
+ comments: boolean;
13
+ amendments: boolean;
14
+ candidacies: boolean;
15
+ votingRounds: boolean;
16
+ }
17
+ export interface ElectionTheme {
18
+ color: string;
19
+ danger: string;
20
+ logo: string | null;
21
+ background: string | null;
22
+ splash: string | null;
23
+ imageOption: OptionImageFormat;
24
+ }
25
+ export interface ElectionCosmetics {
26
+ hideElectionClientFooter: boolean;
27
+ }
28
+ export interface ElectionStatusTheme {
29
+ color: string | null;
30
+ danger: string | null;
31
+ logo: string | null;
32
+ background: string | null;
33
+ splash: string | null;
34
+ imageOption: OptionImageFormat;
35
+ }
36
+ interface ElectionCode {
37
+ id: number;
38
+ label: LocalString;
39
+ help: LocalString;
40
+ placeholder: LocalString;
41
+ visibility: ElectionCodeVisibility;
42
+ }
43
+ export interface BasicElectionStatus {
44
+ id: number;
45
+ organisationSlug: string;
46
+ slug: string;
47
+ title: LocalString;
48
+ description: LocalString;
49
+ mode: ConferenceElectionMode;
50
+ trustMode: ConferenceElectionTrustMode;
51
+ status: BasicEventStatus;
52
+ timeZone: string;
53
+ schedule: {
54
+ enableAt: number | null;
55
+ disableAt: number | null;
56
+ };
57
+ cosmetics: ElectionCosmetics;
58
+ curveName: SupportedCurveName;
59
+ enabledLocales: Array<SupportedLocale>;
60
+ readyForVoting: boolean;
61
+ boardSlug: string;
62
+ boardUrl: string;
63
+ dbasUrl: string;
64
+ electionClientUrl: string;
65
+ statisticsClientUrl: string;
66
+ hide_dbas: boolean;
67
+ hideBenaloh: boolean;
68
+ showConfirmVotes: boolean;
69
+ downloadVotingReceipt: boolean;
70
+ redirect?: ElectionRedirection;
71
+ userModules?: UserModules;
72
+ voterCountsConfig?: ElectionShownVoterCounts;
73
+ theme?: ElectionStatusTheme;
74
+ electionCodeTexts: Array<ElectionCode>;
75
+ streamUrl?: string | null;
76
+ electionVerificationSite: {
77
+ contactUrl: LocalString;
78
+ };
79
+ externalReportingEnabled?: boolean;
80
+ embeddedInRestrictedMode?: boolean;
81
+ embeddedSendSmsWithTrackingCode?: boolean;
82
+ kioskSendSmsWithTrackingCode?: boolean;
83
+ showQrCodeInKiosk?: boolean;
84
+ allowVoterToSignOut?: boolean;
85
+ useWideScrollbar?: boolean;
86
+ }
87
+ export interface ElectionStatusResponse {
88
+ voterCounts?: VoterCounts;
89
+ election: BasicElectionStatus;
90
+ slides?: Array<PresentationSlide | BallotSlide>;
91
+ activeSlide?: ActiveSlide;
92
+ contests?: Array<ConferenceContest>;
93
+ votingRounds?: Array<ConferenceVotingRound>;
94
+ votingRoundReports?: Array<ConferenceVotingRoundReport>;
95
+ }
96
+ export {};
97
+ //# sourceMappingURL=election_status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"election_status.d.ts","sourceRoot":"","sources":["../../../../lib/legacy/conference-types/election_status.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,2BAA2B,EAC3B,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;AAErF,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG,UAAU,GAAG,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AAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG,WAAW,CAAC,CAAC;IAChD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC5C,kBAAkB,CAAC,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;CACzD"}
@@ -4,4 +4,10 @@ export type * from "./contest";
4
4
  export type * from "./option";
5
5
  export type * from "./voter_group";
6
6
  export type * from "./voter";
7
+ export type * from "./election_status";
8
+ export type * from "./voter_counts";
9
+ export type * from "./slide";
10
+ export type * from "./result";
11
+ export type * from "./result_orchestrator";
12
+ export type * from "./voting_round_report";
7
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/legacy/conference-types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/legacy/conference-types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,uBAAuB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { LocalString } from "@";
1
+ import { LocalString } from "../../..";
2
2
  export interface BasicConferenceOptionData {
3
3
  image: string | null;
4
4
  }
@@ -0,0 +1,50 @@
1
+ import type { VoterCounts } from "../../..";
2
+ export type ResultFeedback = "result_ready";
3
+ export type ResultStatus = "pending" | "passed" | "not_passed";
4
+ export type ResultData = {
5
+ [optionKey: string]: number;
6
+ };
7
+ export interface ResultRound {
8
+ accumulatedCounts: ResultData;
9
+ elected: string;
10
+ tied: Array<string>;
11
+ eliminated?: string;
12
+ options?: Array<string>;
13
+ }
14
+ export interface SeatData {
15
+ quota: number;
16
+ totalVotes: number;
17
+ rounds: Array<ResultRound>;
18
+ elected: Array<string>;
19
+ eligibleOptions: Array<string>;
20
+ disabledOptions: Array<string>;
21
+ exclusiveOptionCounts: {
22
+ blank: number;
23
+ };
24
+ }
25
+ export interface Result {
26
+ id: number;
27
+ feedback: ResultFeedback;
28
+ status: ResultStatus;
29
+ voterCounts: VoterCounts;
30
+ resultData: {
31
+ totalVotes?: number;
32
+ quota?: number;
33
+ optionCounts: ResultData;
34
+ elected: Array<string>;
35
+ disabledOptions: Array<string>;
36
+ exclusiveOptions: Array<string>;
37
+ tied: Array<string>;
38
+ rounds?: Array<ResultRound>;
39
+ optionSortedCounts: Array<Array<string | number>>;
40
+ distributionNo: number;
41
+ seatsData?: Array<SeatData>;
42
+ exclusiveOptionCounts?: {
43
+ blank: number;
44
+ };
45
+ externalVotes?: any;
46
+ };
47
+ htmlSummary: string;
48
+ resultDataForDisplay: any;
49
+ }
50
+ //# sourceMappingURL=result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../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QAC/B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACpB,MAAM,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;QAC5B,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;QAClD,cAAc,EAAE,MAAM,CAAC;QACvB,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5B,qBAAqB,CAAC,EAAE;YACtB,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;QACF,aAAa,CAAC,EAAE,GAAG,CAAC;KACrB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,GAAG,CAAC;CAC3B"}
@@ -0,0 +1,26 @@
1
+ import type { WorkflowState, Result } from "../../..";
2
+ export interface MixOrDecryptPackage {
3
+ status: WorkflowState;
4
+ id: number;
5
+ resultOrchestratorId: number;
6
+ trusteeUUID: string | null;
7
+ progress: number;
8
+ packageValidation: boolean;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ }
12
+ export interface ResultOrchestrator {
13
+ id: number;
14
+ uuid: string | null;
15
+ threshold: number | null;
16
+ status: WorkflowState;
17
+ error?: any;
18
+ writeIns?: any;
19
+ aggregateProgress: number;
20
+ overallProgress: number;
21
+ mixingPackages?: Array<MixOrDecryptPackage>;
22
+ decryptionPackages?: Array<MixOrDecryptPackage>;
23
+ result?: Result;
24
+ contestReference?: string;
25
+ }
26
+ //# sourceMappingURL=result_orchestrator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result_orchestrator.d.ts","sourceRoot":"","sources":["../../../../lib/legacy/conference-types/result_orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,aAAa,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC5C,kBAAkB,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
@@ -0,0 +1,58 @@
1
+ import type { LocalString, ConferenceContest, BallotSlideVoterCountsOnClose } from "../../..";
2
+ export type SlideLayout = "header_with_text" | "header_with_image" | "single_image";
3
+ export type SlideType = "Slides::BallotSlide" | "Slides::PresentationSlide" | "none";
4
+ export type BallotSlideState = "open" | "new" | "calculating_result" | "finished" | "closed" | "countdown";
5
+ export type BallotSlideObserverLayout = "all_visible" | "options";
6
+ export type BallotSlideResultChart = "vertical_bars" | "horizontal_bars" | "none";
7
+ export interface BallotSlideResult {
8
+ resultData?: {
9
+ optionSortedCounts?: {};
10
+ };
11
+ voterCounts: {
12
+ activeEligiblesOrVoted?: number;
13
+ activeEligiblesOrVotedWeight?: number;
14
+ voted?: number;
15
+ votedWeight?: number;
16
+ };
17
+ }
18
+ export interface BasicSlide {
19
+ id: number;
20
+ type: SlideType;
21
+ position: number;
22
+ title: LocalString;
23
+ description: LocalString;
24
+ background: string | null;
25
+ }
26
+ export interface PresentationSlide extends BasicSlide {
27
+ type: "Slides::PresentationSlide";
28
+ image: string | null;
29
+ layout: SlideLayout;
30
+ }
31
+ export interface BallotSlide extends BasicSlide {
32
+ type: "Slides::BallotSlide";
33
+ state: BallotSlideState;
34
+ question: LocalString;
35
+ disableAt?: number | null;
36
+ votingRoundReference?: string;
37
+ resultChart: BallotSlideResultChart;
38
+ observerLayout: BallotSlideObserverLayout;
39
+ internalName: string | null;
40
+ handRaise?: boolean;
41
+ disregardWeights?: boolean;
42
+ contestId?: number;
43
+ resultProgress?: number | null;
44
+ voteCount?: number;
45
+ voterCountsOnClose?: BallotSlideVoterCountsOnClose;
46
+ votesCombinedWeight?: number;
47
+ data?: any;
48
+ contest?: ConferenceContest;
49
+ }
50
+ export interface ActiveSlide {
51
+ id: number;
52
+ disableAt?: number | null;
53
+ state?: BallotSlideState;
54
+ voteCount?: number;
55
+ votesCombinedWeight?: number;
56
+ votingRoundReference?: string;
57
+ }
58
+ //# sourceMappingURL=slide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slide.d.ts","sourceRoot":"","sources":["../../../../lib/legacy/conference-types/slide.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,MAAM,GAAG,CAAC;AAGvF,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,cAAc,CAAC;AAEpF,MAAM,MAAM,SAAS,GAAG,qBAAqB,GAAG,2BAA2B,GAAG,MAAM,CAAC;AAErF,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,KAAK,GACL,oBAAoB,GACpB,UAAU,GACV,QAAQ,GACR,WAAW,CAAC;AAEhB,MAAM,MAAM,yBAAyB,GAAG,aAAa,GAAG,SAAS,CAAC;AAElE,MAAM,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AM,CAAC;IACnB,kBAAkB,CAAC,EAAE,6BAA6B,CAAC;IACnD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
@@ -0,0 +1,34 @@
1
+ export type VoterCountKey = "active_eligibles" | "active_eligibles_weight" | "active_voters" | "total_voters";
2
+ export type ElectionProgressBarShows = "hidden" | "vote_count_of_total_eligibles" | "vote_count_of_active_eligibles" | "vote_weight_of_total_eligibles" | "vote_weight_of_active_eligibles";
3
+ export interface ElectionShownVoterCounts {
4
+ enabled: boolean;
5
+ shownCounts: VoterCountKey[];
6
+ progressBarShows: ElectionProgressBarShows;
7
+ }
8
+ export interface Turnout {
9
+ voted: number;
10
+ present: number;
11
+ eligible: number;
12
+ votedWeight: number;
13
+ presentWeight: number;
14
+ eligibleWeight: number;
15
+ }
16
+ export interface VoterCounts extends Turnout {
17
+ totalVoters: number;
18
+ activeVoters: number;
19
+ activeEligibles: number;
20
+ activeEligiblesOrVoted: number;
21
+ totalEligibles: number;
22
+ totalEligiblesWeight?: number;
23
+ activeEligiblesWeight?: number;
24
+ activeEligiblesOrVotedWeight?: number;
25
+ invalidVotes?: number;
26
+ disabledWeight?: number;
27
+ }
28
+ export interface BallotSlideVoterCountsOnClose {
29
+ totalVoters: number;
30
+ activeVoters: number;
31
+ activeEligibles: number;
32
+ activeEligiblesOrVoted: number;
33
+ }
34
+ //# sourceMappingURL=voter_counts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voter_counts.d.ts","sourceRoot":"","sources":["../../../../lib/legacy/conference-types/voter_counts.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GACrB,kBAAkB,GAClB,yBAAyB,GACzB,eAAe,GACf,cAAc,CAAC;AAEnB,MAAM,MAAM,wBAAwB,GAChC,QAAQ,GACR,+BAA+B,GAC/B,gCAAgC,GAChC,gCAAgC,GAChC,iCAAiC,CAAC;AAEtC,MAAM,WAAW,wBAAwB;IAEvC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,gBAAgB,EAAE,wBAAwB,CAAC;CAC5C;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,WAAY,SAAQ,OAAO;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;CAChC"}
@@ -1,4 +1,4 @@
1
- import { SupportedLocale, BasicEventStatus, LocalString } from "@";
1
+ import { SupportedLocale, BasicEventStatus, LocalString } from "../../..";
2
2
  export interface ContestPositions {
3
3
  [contest_id: number]: number;
4
4
  }
@@ -0,0 +1,19 @@
1
+ import type { Turnout, WorkflowState, ResultOrchestrator } from "../../..";
2
+ export interface ConferenceVotingRoundReport {
3
+ id: number;
4
+ votingRoundReference: string;
5
+ status: WorkflowState;
6
+ colorTied?: boolean;
7
+ colorElected?: boolean;
8
+ turnout?: Turnout;
9
+ resultOrchestrators?: Array<ResultOrchestrator>;
10
+ }
11
+ export interface ConferenceVotingRoundOrchestrator {
12
+ status: WorkflowState;
13
+ result?: any;
14
+ aggregateProgress?: number;
15
+ overallProgress?: number;
16
+ mixingPackages?: Array<any>;
17
+ decryptionPackages?: Array<any>;
18
+ }
19
+ //# sourceMappingURL=voting_round_report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voting_round_report.d.ts","sourceRoot":"","sources":["../../../../lib/legacy/conference-types/voting_round_report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAEpE,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5B,kBAAkB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemblyvoting/types",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "Types library for LUMI Denmark",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,12 +25,12 @@
25
25
  "node": ">=20"
26
26
  },
27
27
  "scripts": {
28
- "build": "tsc --project tsconfig.json && tsc --project tsconfig.constants.json",
28
+ "build": "tsc && tsc-alias --project tsconfig.json && tsc && tsc-alias --project tsconfig.constants.json",
29
29
  "lint": "eslint '**/*.ts'",
30
30
  "lint:fix": "eslint '**/*.ts' --fix",
31
31
  "format": "prettier --write '**/*.ts'",
32
32
  "format:check": "prettier --check '**/*.ts'",
33
- "typecheck": "tsc --noEmit --project tsconfig.json"
33
+ "type-check": "tsc --noEmit --project tsconfig.json"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@typescript-eslint/eslint-plugin": "^8.0.0",
@@ -38,6 +38,7 @@
38
38
  "eslint": "^8.57.0",
39
39
  "eslint-config-prettier": "^9.1.0",
40
40
  "prettier": "^3.4.0",
41
+ "tsc-alias": "^1.8.17",
41
42
  "typescript": "^5.6.0"
42
43
  },
43
44
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"