type AppBaseProps = { debug: boolean eventsTotal: number timeTravelOffset: number trackingCode: string // eslint-disable-line react/no-unused-prop-types postcode: string // eslint-disable-line react/no-unused-prop-types locale: string // eslint-disable-line react/no-unused-prop-types isFetching: boolean isLongRequest: boolean dataLoaded: boolean notFound: boolean invalidInput: boolean otherFailure: boolean loadingMessage: string fetchTrackAndTraceInformation: (params: Object) => void timeTravel: (offset: number) => void updatePostcode: (postcode: string) => void changeLocale: (locale: string) => void } type AppChildProps = AppBaseProps & { isLoading: boolean pristine: boolean } type AppProps = AppBaseProps & { children?: (props: AppChildProps) => Node } type Address = { street: string houseNumber: string addition: string | null postalCode: string city: string countryCode: string lines: Array | null } type Shipper = { address: Address contactName: string | null name: string | null terminalCode: string | null } type Receiver = { address: Address contactName: string | null name: string | null code: string | null } type Destination = { address: Address code: string | null name: string | null locationVariant: string } type OpeningTime = { dayOfWeek: number from: string to: string } type ClosurePeriod = { from: string to: string } type GeoLocation = { latitude: string longitude: string } type ServicePoint = { openingTimes: Array closurePeriods: Array | null geoLocation: GeoLocation } type TimelineItem = { stage: string translatedStage: string completed: boolean exception: boolean } type SubEvent = { event: string translatedEvent: string timestamp: string exception: boolean note?: string } type MainEvent = { stage: string translatedStage: string events: Array } type TrackingInfo = { queryVariant: string barcode: string shipmentVarint: string pointInTimeVariant: string pointInTime: string receiver: Reciever | null shipper: Shipper | null lastKnownDestination: Destination | null intervenable: boolean deliveryNetwork: string signature: string | null signedBy: string | null servicePoint: ServicePoint timeline: Array events: Array eventsTotal: number showAsReturn: boolean expectedMailboxDelivery: boolean } type SummaryBaseProps = { dataLoaded: boolean postcode: string trackingInfo: TrackingInfo locale: string signatureAlt: string detailsShown: boolean successfulIntervention?: boolean toggleDetails: () => void } type SummaryAddress = { title?: string | Node name?: string contactName?: string | Node streetAndNumber: string postalCodeAndCity: string countryCode: string } type SummaryChildProps = SummaryBaseProps & { header: string country: string isIberia: boolean isTheNetherlands: boolean isParcelShop: boolean isParcelStation: boolean isParcelLocker: boolean isTerminal: boolean isServicePointOrTerminal: boolean isCollectedAtParcelshop: boolean isNeighbour: boolean delivery: any translatedReceiver: Node deliveryContactName: Node isDelivered: boolean isPickedUp: boolean deliveryMoment: Node deliveryDate: string | Node deliveryTime: string isInTransit: boolean shipperAddress: SummaryAddress receiverAddress: SummaryAddress lastKnownAddress: SummaryAddress showAsMailboxDelivery: boolean } type SummaryProps = SummaryBaseProps & { children?: (props: SummaryChildProps) => Node } type TimelineBaseProps = { timeline: Array } type TimelineChildProps = TimelineBaseProps & {} type TimelineProps = TimelineBaseProps & { children?: (props: TimelineChildProps) => Node } type InterventionVariant = | 'ADDRESS_INTERVENTION' | 'TO_SERVICEPOINT_INTERVENTION' | 'INTERVAL_INTERVENTION' | 'AGREED_PLACE_INTERVENTION' type InterventionChildProps = { addressInterventionAllowed: boolean toServicePointInterventionAllowed: boolean intervalInterventionAllowed: boolean agreedPlaceInterventionAllowed: boolean selectIntervention: (variant: InterventionVariant) => void }