feat: frontend
This commit is contained in:
7
ordr-ui/app/client/response/ItemHistoryResponse.ts
Normal file
7
ordr-ui/app/client/response/ItemHistoryResponse.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export type ItemHistoryResponse = {
|
||||
ItemId : string
|
||||
ItemName : string
|
||||
ItemPrice: string
|
||||
ValidFrom: string
|
||||
ValidTo : string
|
||||
}
|
||||
6
ordr-ui/app/client/response/ItemPriceResponse.ts
Normal file
6
ordr-ui/app/client/response/ItemPriceResponse.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface ItemPriceResponse {
|
||||
ItemId: number;
|
||||
ItemName: string;
|
||||
ItemPrice: number;
|
||||
InSeason: boolean
|
||||
}
|
||||
4
ordr-ui/app/client/response/LoginRedirectResponse.ts
Normal file
4
ordr-ui/app/client/response/LoginRedirectResponse.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type LoginRedirectResponse = {
|
||||
status: string,
|
||||
location: string
|
||||
};
|
||||
4
ordr-ui/app/client/response/OrderFilledResponse.ts
Normal file
4
ordr-ui/app/client/response/OrderFilledResponse.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface OrderFilledResponse{
|
||||
OrderId: number;
|
||||
Filled: boolean;
|
||||
}
|
||||
10
ordr-ui/app/client/response/OrderItemPriceResponse.ts
Normal file
10
ordr-ui/app/client/response/OrderItemPriceResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface OrderItemPriceResponse{
|
||||
ItemId: number;
|
||||
OrderId: number;
|
||||
ItemName: string;
|
||||
Quantity: number;
|
||||
Made: number;
|
||||
CreatedAt: Date;
|
||||
TotalPrice: number;
|
||||
UnitPrice: number;
|
||||
}
|
||||
12
ordr-ui/app/client/response/OrderResponse.ts
Normal file
12
ordr-ui/app/client/response/OrderResponse.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export interface OrderResponse{
|
||||
Id: number;
|
||||
UserId: number;
|
||||
Orderer: string;
|
||||
DateDue: string;
|
||||
DatePlaced: string;
|
||||
AmountPaid: number;
|
||||
OrderTotal: number;
|
||||
AmountDue: number;
|
||||
Filled: boolean;
|
||||
Delivered: boolean;
|
||||
}
|
||||
7
ordr-ui/app/client/response/UserResponse.ts
Normal file
7
ordr-ui/app/client/response/UserResponse.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface UserResponse{
|
||||
Id: number;
|
||||
Name: string;
|
||||
JobPosition: string;
|
||||
Active: boolean;
|
||||
Admin: boolean;
|
||||
}
|
||||
7
ordr-ui/app/client/response/index.ts
Normal file
7
ordr-ui/app/client/response/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export type {ItemPriceResponse} from './ItemPriceResponse'
|
||||
export type {OrderFilledResponse} from './OrderFilledResponse'
|
||||
export type {OrderItemPriceResponse} from './OrderItemPriceResponse'
|
||||
export type {OrderResponse} from './OrderResponse'
|
||||
export type {UserResponse} from './UserResponse'
|
||||
export type { LoginRedirectResponse} from './LoginRedirectResponse'
|
||||
export type {ItemHistoryResponse} from './ItemHistoryResponse'
|
||||
Reference in New Issue
Block a user