56 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { FeatureRequest, LocationKey, PizzaOrder } from "./Types";
 | |
| 
 | |
| export type ILocationKey = {
 | |
|     locationKey: LocationKey,
 | |
| }
 | |
| 
 | |
| export type IDayIndex = {
 | |
|     dayIndex?: number,
 | |
| }
 | |
| 
 | |
| export type AddChoiceRequest = IDayIndex & ILocationKey & {
 | |
|     foodIndex?: number,
 | |
| }
 | |
| 
 | |
| export type RemoveChoicesRequest = IDayIndex & ILocationKey;
 | |
| 
 | |
| export type RemoveChoiceRequest = IDayIndex & ILocationKey & {
 | |
|     foodIndex: number,
 | |
| }
 | |
| 
 | |
| export type UpdateNoteRequest = IDayIndex & {
 | |
|     note?: string,
 | |
| }
 | |
| 
 | |
| export type ChangeDepartureTimeRequest = IDayIndex & {
 | |
|     time: string,
 | |
| }
 | |
| 
 | |
| export type FinishDeliveryRequest = {
 | |
|     bankAccount?: string,
 | |
|     bankAccountHolder?: string,
 | |
| }
 | |
| 
 | |
| export type AddPizzaRequest = {
 | |
|     pizzaIndex: number,
 | |
|     pizzaSizeIndex: number,
 | |
| }
 | |
| 
 | |
| export type RemovePizzaRequest = {
 | |
|     pizzaOrder: PizzaOrder,
 | |
| }
 | |
| 
 | |
| export type UpdatePizzaDayNoteRequest = {
 | |
|     note?: string,
 | |
| }
 | |
| 
 | |
| export type UpdatePizzaFeeRequest = {
 | |
|     login: string,
 | |
|     text?: string,
 | |
|     price?: number,
 | |
| }
 | |
| 
 | |
| export type UpdateFeatureVoteRequest = {
 | |
|     option: FeatureRequest,
 | |
|     active: boolean,
 | |
| } |