60e2149072
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date) - Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class - Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting - Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states - Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions - Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares) - Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline - Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements - Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations - Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary - Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds All tests follow AAA pattern and use data-testid selectors matching Angular version. Total: 245 tests across 10 feature suites.
75 lines
3.3 KiB
TypeScript
75 lines
3.3 KiB
TypeScript
import type { Bundle as ProtoBundle, InclusionProof as ProtoInclusionProof, MessageSignature as ProtoMessageSignature, TransparencyLogEntry as ProtoTransparencyLogEntry, VerificationMaterial as ProtoVerificationMaterial } from '@sigstore/protobuf-specs';
|
|
import type { WithRequired } from './utility';
|
|
export declare const BUNDLE_V01_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.1";
|
|
export declare const BUNDLE_V02_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.2";
|
|
export declare const BUNDLE_V03_LEGACY_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.3";
|
|
export declare const BUNDLE_V03_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle.v0.3+json";
|
|
type DsseEnvelopeContent = Extract<ProtoBundle['content'], {
|
|
$case: 'dsseEnvelope';
|
|
}>;
|
|
type MessageSignatureContent = Extract<ProtoBundle['content'], {
|
|
$case: 'messageSignature';
|
|
}>;
|
|
export type MessageSignature = WithRequired<ProtoMessageSignature, 'messageDigest'>;
|
|
export type VerificationMaterial = WithRequired<ProtoVerificationMaterial, 'content'>;
|
|
export type TransparencyLogEntry = WithRequired<ProtoTransparencyLogEntry, 'logId' | 'kindVersion'>;
|
|
export type InclusionProof = WithRequired<ProtoInclusionProof, 'checkpoint'>;
|
|
export type TLogEntryWithInclusionPromise = WithRequired<TransparencyLogEntry, 'inclusionPromise'>;
|
|
export type TLogEntryWithInclusionProof = TransparencyLogEntry & {
|
|
inclusionProof: InclusionProof;
|
|
};
|
|
export type Bundle = ProtoBundle & {
|
|
verificationMaterial: VerificationMaterial & {
|
|
tlogEntries: TransparencyLogEntry[];
|
|
};
|
|
content: (MessageSignatureContent & {
|
|
messageSignature: MessageSignature;
|
|
}) | DsseEnvelopeContent;
|
|
};
|
|
export type BundleV01 = Bundle & {
|
|
verificationMaterial: Bundle['verificationMaterial'] & {
|
|
tlogEntries: TLogEntryWithInclusionPromise[];
|
|
};
|
|
};
|
|
export type BundleLatest = Bundle & {
|
|
verificationMaterial: Bundle['verificationMaterial'] & {
|
|
tlogEntries: TLogEntryWithInclusionProof[];
|
|
};
|
|
};
|
|
export type BundleWithCertificateChain = Bundle & {
|
|
verificationMaterial: Bundle['verificationMaterial'] & {
|
|
content: Extract<VerificationMaterial['content'], {
|
|
$case: 'x509CertificateChain';
|
|
}>;
|
|
};
|
|
};
|
|
export type BundleWithSingleCertificate = Bundle & {
|
|
verificationMaterial: Bundle['verificationMaterial'] & {
|
|
content: Extract<VerificationMaterial['content'], {
|
|
$case: 'certificate';
|
|
}>;
|
|
};
|
|
};
|
|
export type BundleWithPublicKey = Bundle & {
|
|
verificationMaterial: Bundle['verificationMaterial'] & {
|
|
content: Extract<VerificationMaterial['content'], {
|
|
$case: 'publicKey';
|
|
}>;
|
|
};
|
|
};
|
|
export type BundleWithMessageSignature = Bundle & {
|
|
content: Extract<Bundle['content'], {
|
|
$case: 'messageSignature';
|
|
}>;
|
|
};
|
|
export type BundleWithDsseEnvelope = Bundle & {
|
|
content: Extract<Bundle['content'], {
|
|
$case: 'dsseEnvelope';
|
|
}>;
|
|
};
|
|
export declare function isBundleWithCertificateChain(b: Bundle): b is BundleWithCertificateChain;
|
|
export declare function isBundleWithPublicKey(b: Bundle): b is BundleWithPublicKey;
|
|
export declare function isBundleWithMessageSignature(b: Bundle): b is BundleWithMessageSignature;
|
|
export declare function isBundleWithDsseEnvelope(b: Bundle): b is BundleWithDsseEnvelope;
|
|
export {};
|