@assemblyvoting/types 1.0.0-beta.4 → 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.
Files changed (32) hide show
  1. package/dist/lib/common/localization.d.ts +1 -1
  2. package/dist/lib/e2e/ballot_selection.d.ts +1 -1
  3. package/dist/lib/e2e/board_items/commitment_items/board_commitment.d.ts +1 -1
  4. package/dist/lib/e2e/board_items/commitment_items/board_commitment_opening.d.ts +1 -1
  5. package/dist/lib/e2e/board_items/commitment_items/commitment_opening.d.ts +1 -1
  6. package/dist/lib/e2e/board_items/commitment_items/voter_commitment.d.ts +1 -1
  7. package/dist/lib/e2e/board_items/commitment_items/voter_commitment_opening.d.ts +1 -1
  8. package/dist/lib/e2e/board_items/crypto_items/ballot_cryptogram.d.ts +1 -1
  9. package/dist/lib/e2e/board_items/crypto_items/cast_request.d.ts +1 -1
  10. package/dist/lib/e2e/board_items/crypto_items/spoil_request.d.ts +1 -1
  11. package/dist/lib/e2e/board_items/dbb_items/ballot_config.d.ts +1 -1
  12. package/dist/lib/e2e/board_items/dbb_items/base.d.ts +1 -1
  13. package/dist/lib/e2e/board_items/dbb_items/contest_config.d.ts +1 -1
  14. package/dist/lib/e2e/board_items/dbb_items/election_config.d.ts +1 -1
  15. package/dist/lib/e2e/board_items/dbb_items/genesis_config.d.ts +1 -1
  16. package/dist/lib/e2e/board_items/dbb_items/latest_config.d.ts +1 -1
  17. package/dist/lib/e2e/board_items/dbb_items/option_config.d.ts +1 -1
  18. package/dist/lib/e2e/board_items/dbb_items/segments_config.d.ts +1 -1
  19. package/dist/lib/e2e/board_items/dbb_items/threshold_config.d.ts +1 -1
  20. package/dist/lib/e2e/board_items/dbb_items/voter_authorizer.d.ts +1 -1
  21. package/dist/lib/e2e/board_items/dbb_items/voter_session.d.ts +1 -1
  22. package/dist/lib/e2e/board_items/dbb_items/voting_round_config.d.ts +1 -1
  23. package/dist/lib/e2e/board_items/helpers.d.ts +1 -1
  24. package/dist/lib/e2e/board_items/verification_items/base.d.ts +1 -1
  25. package/dist/lib/e2e/board_items/verification_items/verification_start.d.ts +1 -1
  26. package/dist/lib/e2e/board_items/verification_items/verifier.d.ts +1 -1
  27. package/dist/lib/e2e/trustee.d.ts +1 -1
  28. package/dist/lib/legacy/conference-types/contest.d.ts +1 -1
  29. package/dist/lib/legacy/conference-types/election.d.ts +1 -1
  30. package/dist/lib/legacy/conference-types/option.d.ts +1 -1
  31. package/dist/lib/legacy/conference-types/voting_round.d.ts +1 -1
  32. package/package.json +3 -2
@@ -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,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";
@@ -1,4 +1,4 @@
1
- import { LocalString } from "@";
1
+ import { LocalString } from "../../..";
2
2
  export interface BasicConferenceOptionData {
3
3
  image: string | null;
4
4
  }
@@ -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
  }
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.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"