import {OrderDetailsResponse, RatingStorePayload, RatingProductsPayload, RatingShippingPayload} from "../api/rating"; import {RequestErrorEventWithData, SuccessResponse} from "../common"; export default interface RatingEvent { onOrderFetched: (callback: (response: OrderDetailsResponse, order_id: number) => void) => void; onOrderNotFetched: RequestErrorEventWithData; onStoreRated: (callback: (response: SuccessResponse, data: RatingStorePayload) => void) => void; onStoreFailed: RequestErrorEventWithData; onProductRated: (callback: (response: SuccessResponse, data: RatingProductsPayload) => void) => void; onProductFailed: RequestErrorEventWithData; onShippingRated: (callback: (response: SuccessResponse, data: RatingShippingPayload) => void) => void; onShippingFailed: RequestErrorEventWithData; }