@assemblyvoting/types 1.0.0-beta.1 → 1.0.0-beta.10
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/constants/index.d.ts +1 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +1 -0
- package/dist/constants/supported_locales.js +24 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/backend/contest.d.ts +131 -0
- package/dist/lib/backend/contest.d.ts.map +1 -0
- package/dist/lib/backend/election.d.ts +178 -0
- package/dist/lib/backend/election.d.ts.map +1 -0
- package/dist/lib/backend/election_status.d.ts +56 -0
- package/dist/lib/backend/election_status.d.ts.map +1 -0
- package/dist/lib/backend/handraise.d.ts +40 -0
- package/dist/lib/backend/handraise.d.ts.map +1 -0
- package/dist/lib/backend/index.d.ts +13 -0
- package/dist/lib/backend/index.d.ts.map +1 -0
- package/dist/lib/backend/option.d.ts +76 -0
- package/dist/lib/backend/option.d.ts.map +1 -0
- package/dist/lib/backend/result.d.ts +50 -0
- package/dist/lib/backend/result.d.ts.map +1 -0
- package/dist/lib/backend/result_orchestrator.d.ts +26 -0
- package/dist/lib/backend/result_orchestrator.d.ts.map +1 -0
- package/dist/lib/backend/slide.d.ts +57 -0
- package/dist/lib/backend/slide.d.ts.map +1 -0
- package/dist/lib/backend/voter.d.ts +55 -0
- package/dist/lib/backend/voter.d.ts.map +1 -0
- package/dist/lib/backend/voter_counts.d.ts +34 -0
- package/dist/lib/backend/voter_counts.d.ts.map +1 -0
- package/dist/lib/backend/voter_group.d.ts +8 -0
- package/dist/lib/backend/voter_group.d.ts.map +1 -0
- package/dist/lib/backend/voting_round.d.ts +61 -0
- package/dist/lib/backend/voting_round.d.ts.map +1 -0
- package/dist/lib/backend/voting_round_report.d.ts +19 -0
- package/dist/lib/backend/voting_round_report.d.ts.map +1 -0
- package/dist/lib/common/contest_shared.d.ts +11 -0
- package/dist/lib/common/contest_shared.d.ts.map +1 -0
- package/dist/lib/common/election_shared.d.ts +46 -0
- package/dist/lib/common/election_shared.d.ts.map +1 -0
- package/dist/lib/common/index.d.ts +5 -0
- package/dist/lib/common/index.d.ts.map +1 -1
- package/dist/lib/common/localization.d.ts +1 -1
- package/dist/lib/common/option_shared.d.ts +2 -0
- package/dist/lib/common/option_shared.d.ts.map +1 -0
- package/dist/lib/common/theme.d.ts +2 -0
- package/dist/lib/common/theme.d.ts.map +1 -1
- package/dist/lib/common/voting_round_shared.d.ts +4 -0
- package/dist/lib/common/voting_round_shared.d.ts.map +1 -0
- package/dist/lib/common/workflow_state.d.ts +2 -0
- package/dist/lib/common/workflow_state.d.ts.map +1 -0
- package/dist/lib/e2e/ballot_selection.d.ts +1 -1
- package/dist/lib/e2e/board_items/commitment_items/board_commitment.d.ts +1 -1
- package/dist/lib/e2e/board_items/commitment_items/board_commitment_opening.d.ts +1 -1
- package/dist/lib/e2e/board_items/commitment_items/commitment_opening.d.ts +1 -1
- package/dist/lib/e2e/board_items/commitment_items/voter_commitment.d.ts +1 -1
- package/dist/lib/e2e/board_items/commitment_items/voter_commitment_opening.d.ts +1 -1
- package/dist/lib/e2e/board_items/crypto_items/ballot_cryptogram.d.ts +1 -1
- package/dist/lib/e2e/board_items/crypto_items/cast_request.d.ts +1 -1
- package/dist/lib/e2e/board_items/crypto_items/spoil_request.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/ballot_config.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/base.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/contest_config.d.ts +2 -10
- package/dist/lib/e2e/board_items/dbb_items/contest_config.d.ts.map +1 -1
- package/dist/lib/e2e/board_items/dbb_items/election_config.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/genesis_config.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/latest_config.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/option_config.d.ts +7 -6
- package/dist/lib/e2e/board_items/dbb_items/option_config.d.ts.map +1 -1
- package/dist/lib/e2e/board_items/dbb_items/segments_config.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/threshold_config.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/voter_authorizer.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/voter_session.d.ts +1 -1
- package/dist/lib/e2e/board_items/dbb_items/voting_round_config.d.ts +1 -1
- package/dist/lib/e2e/board_items/helpers.d.ts +1 -4
- package/dist/lib/e2e/board_items/helpers.d.ts.map +1 -1
- package/dist/lib/e2e/board_items/verification_items/base.d.ts +1 -1
- package/dist/lib/e2e/board_items/verification_items/verification_start.d.ts +1 -1
- package/dist/lib/e2e/board_items/verification_items/verifier.d.ts +1 -1
- package/dist/lib/e2e/trustee.d.ts +1 -1
- package/dist/lib/legacy/conference-types/contest.d.ts +1 -1
- package/dist/lib/legacy/conference-types/election.d.ts +1 -1
- package/dist/lib/legacy/conference-types/election_status.d.ts +97 -0
- package/dist/lib/legacy/conference-types/election_status.d.ts.map +1 -0
- package/dist/lib/legacy/conference-types/index.d.ts +6 -0
- package/dist/lib/legacy/conference-types/index.d.ts.map +1 -1
- package/dist/lib/legacy/conference-types/option.d.ts +1 -1
- package/dist/lib/legacy/conference-types/result.d.ts +50 -0
- package/dist/lib/legacy/conference-types/result.d.ts.map +1 -0
- package/dist/lib/legacy/conference-types/result_orchestrator.d.ts +26 -0
- package/dist/lib/legacy/conference-types/result_orchestrator.d.ts.map +1 -0
- package/dist/lib/legacy/conference-types/slide.d.ts +58 -0
- package/dist/lib/legacy/conference-types/slide.d.ts.map +1 -0
- package/dist/lib/legacy/conference-types/voter_counts.d.ts +34 -0
- package/dist/lib/legacy/conference-types/voter_counts.d.ts.map +1 -0
- package/dist/lib/legacy/conference-types/voting_round.d.ts +1 -1
- package/dist/lib/legacy/conference-types/voting_round_report.d.ts +19 -0
- package/dist/lib/legacy/conference-types/voting_round_report.d.ts.map +1 -0
- package/package.json +6 -4
|
@@ -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,13 +1,10 @@
|
|
|
1
|
-
import type { BoardItemType } from "
|
|
1
|
+
import type { BoardItemType } from "../../..";
|
|
2
2
|
export interface ContestMap<T> {
|
|
3
3
|
[contestId: string]: T;
|
|
4
4
|
}
|
|
5
5
|
export interface Segments {
|
|
6
6
|
[key: string]: string;
|
|
7
7
|
}
|
|
8
|
-
export interface ContestPositionMap {
|
|
9
|
-
[contestReference: string]: number;
|
|
10
|
-
}
|
|
11
8
|
export interface Attachment {
|
|
12
9
|
name: string;
|
|
13
10
|
sha: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../lib/e2e/board_items/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAEvC,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../lib/e2e/board_items/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAEvC,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,IAAI,EAAE,aAAa,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -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
|
+
useWideScrollbar?: boolean;
|
|
28
|
+
showVotingSteps?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface ElectionStatusTheme {
|
|
31
|
+
color: string | null;
|
|
32
|
+
danger: string | null;
|
|
33
|
+
logo: string | null;
|
|
34
|
+
background: string | null;
|
|
35
|
+
splash: string | null;
|
|
36
|
+
imageOption: OptionImageFormat;
|
|
37
|
+
}
|
|
38
|
+
export interface ElectionCode {
|
|
39
|
+
id: number;
|
|
40
|
+
label: LocalString;
|
|
41
|
+
help: LocalString;
|
|
42
|
+
placeholder: LocalString;
|
|
43
|
+
visibility: ElectionCodeVisibility;
|
|
44
|
+
}
|
|
45
|
+
export interface BasicElectionStatus {
|
|
46
|
+
id: number;
|
|
47
|
+
organisationSlug: string;
|
|
48
|
+
slug: string;
|
|
49
|
+
title: LocalString;
|
|
50
|
+
description: LocalString;
|
|
51
|
+
mode: ConferenceElectionMode;
|
|
52
|
+
trustMode: ConferenceElectionTrustMode;
|
|
53
|
+
status: BasicEventStatus;
|
|
54
|
+
timeZone: string;
|
|
55
|
+
schedule: {
|
|
56
|
+
enableAt: number | null;
|
|
57
|
+
disableAt: number | null;
|
|
58
|
+
};
|
|
59
|
+
cosmetics: ElectionCosmetics;
|
|
60
|
+
curveName: SupportedCurveName;
|
|
61
|
+
enabledLocales: Array<SupportedLocale>;
|
|
62
|
+
readyForVoting: boolean;
|
|
63
|
+
boardSlug: string;
|
|
64
|
+
boardUrl: string;
|
|
65
|
+
dbasUrl: string;
|
|
66
|
+
electionClientUrl: string;
|
|
67
|
+
statisticsClientUrl: string;
|
|
68
|
+
hide_dbas: boolean;
|
|
69
|
+
hideBenaloh: boolean;
|
|
70
|
+
showConfirmVotes: boolean;
|
|
71
|
+
downloadVotingReceipt: boolean;
|
|
72
|
+
redirect?: ElectionRedirection;
|
|
73
|
+
userModules?: UserModules;
|
|
74
|
+
voterCountsConfig?: ElectionShownVoterCounts;
|
|
75
|
+
theme?: ElectionStatusTheme;
|
|
76
|
+
electionCodeTexts: Array<ElectionCode>;
|
|
77
|
+
streamUrl?: string | null;
|
|
78
|
+
electionVerificationSite: {
|
|
79
|
+
contactUrl: LocalString;
|
|
80
|
+
};
|
|
81
|
+
externalReportingEnabled?: boolean;
|
|
82
|
+
embeddedInRestrictedMode?: boolean;
|
|
83
|
+
embeddedSendSmsWithTrackingCode?: boolean;
|
|
84
|
+
kioskSendSmsWithTrackingCode?: boolean;
|
|
85
|
+
showQrCodeInKiosk?: boolean;
|
|
86
|
+
allowVoterToSignOut?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface ElectionStatusResponse {
|
|
89
|
+
voterCounts?: VoterCounts;
|
|
90
|
+
election: BasicElectionStatus;
|
|
91
|
+
slides?: Array<PresentationSlide | BallotSlide>;
|
|
92
|
+
activeSlide?: ActiveSlide;
|
|
93
|
+
contests?: Array<ConferenceContest>;
|
|
94
|
+
votingRounds?: Array<ConferenceVotingRound>;
|
|
95
|
+
votingRoundReports?: Array<ConferenceVotingRoundReport>;
|
|
96
|
+
}
|
|
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,MAAM,CAAC;AAE1E,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,sBAAsB,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,WAAW,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,oBAAoB,CAAC;CACtC;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,MAAM,GAA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@ -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"}
|
|
@@ -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":["../../../../lib/legacy/conference-types/result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAErC,MAAM,MAAM,cAAc,GAAG,cAAc,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,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.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AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,EAAE,sBAAsB,CAAC;IACpC,cAAc,EAAE,yBAAyB,CAAC;IAC1C,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,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"}
|
|
@@ -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.
|
|
3
|
+
"version": "1.0.0-beta.10",
|
|
4
4
|
"description": "Types library for LUMI Denmark",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"./constants": {
|
|
17
|
-
"types": "./dist/constants/index.d.ts"
|
|
17
|
+
"types": "./dist/constants/index.d.ts",
|
|
18
|
+
"import": "./dist/constants/index.js"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
@@ -24,12 +25,12 @@
|
|
|
24
25
|
"node": ">=20"
|
|
25
26
|
},
|
|
26
27
|
"scripts": {
|
|
27
|
-
"build": "tsc --project tsconfig.json",
|
|
28
|
+
"build": "tsc && tsc-alias --project tsconfig.json && tsc && tsc-alias --project tsconfig.constants.json",
|
|
28
29
|
"lint": "eslint '**/*.ts'",
|
|
29
30
|
"lint:fix": "eslint '**/*.ts' --fix",
|
|
30
31
|
"format": "prettier --write '**/*.ts'",
|
|
31
32
|
"format:check": "prettier --check '**/*.ts'",
|
|
32
|
-
"
|
|
33
|
+
"type-check": "tsc --noEmit --project tsconfig.json"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"eslint": "^8.57.0",
|
|
38
39
|
"eslint-config-prettier": "^9.1.0",
|
|
39
40
|
"prettier": "^3.4.0",
|
|
41
|
+
"tsc-alias": "^1.8.17",
|
|
40
42
|
"typescript": "^5.6.0"
|
|
41
43
|
},
|
|
42
44
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|