@assemblyvoting/types 1.0.0-beta.3 → 1.0.0-beta.5
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 -1
- package/dist/lib/common/localization.d.ts +1 -1
- 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 +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 +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 -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/option.d.ts +1 -1
- package/dist/lib/legacy/conference-types/voting_round.d.ts +1 -1
- package/package.json +3 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./supported_locales";
|
|
1
|
+
export * from "./supported_locales.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
package/dist/constants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./supported_locales";
|
|
1
|
+
export * from "./supported_locales.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SUPPORTED_LOCALES, BACKEND_LOCALES } from "
|
|
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,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 { BaseVerificationItem, EncryptedCommitmentOpening } from "
|
|
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 { 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 { 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 { 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";
|
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.5",
|
|
4
4
|
"description": "Types library for LUMI Denmark",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
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 --project tsconfig.constants.json",
|
|
29
29
|
"lint": "eslint '**/*.ts'",
|
|
30
30
|
"lint:fix": "eslint '**/*.ts' --fix",
|
|
31
31
|
"format": "prettier --write '**/*.ts'",
|
|
@@ -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"
|