complete auth pages sunc with api - complete cities and province combo box in register page
This commit is contained in:
+45
-13
@@ -11,34 +11,39 @@ export interface LoginResponseInterface {
|
||||
}
|
||||
|
||||
export interface ResetPasswordInterface {
|
||||
mobile_number?: string | any,
|
||||
otp?: string | any,
|
||||
password: string,
|
||||
repeatPassword: string
|
||||
password_confirmation: string
|
||||
}
|
||||
|
||||
export interface ForgotPasswordInterface {
|
||||
phoneNumber: string
|
||||
mobile_number: string
|
||||
}
|
||||
|
||||
export interface LoginWithCodeInterface {
|
||||
phoneNumber: string
|
||||
mobile_number: string | any
|
||||
}
|
||||
export interface ResetPasswordCodeInterface {
|
||||
code: string
|
||||
mobile_number?: string | any
|
||||
otp: string
|
||||
}
|
||||
|
||||
export interface LoginCodeInterface {
|
||||
code: string
|
||||
mobile_number: any
|
||||
otp: string
|
||||
}
|
||||
|
||||
export interface RegisterInterface {
|
||||
name: string,
|
||||
family: string,
|
||||
city: object,
|
||||
capCity: object,
|
||||
marketName: string,
|
||||
phoneNumber: string,
|
||||
password: string,
|
||||
repeatPassword: string,
|
||||
first_name: string
|
||||
last_name: string
|
||||
national_code: string
|
||||
city_name: object | any
|
||||
province_name: object | any
|
||||
shopName: string
|
||||
mobile_number: string
|
||||
password: string
|
||||
password_confirmation: string
|
||||
}
|
||||
|
||||
export interface SidebarInterface {
|
||||
@@ -280,4 +285,31 @@ export interface TableParams {
|
||||
page: number,
|
||||
rows: number,
|
||||
search: string
|
||||
}
|
||||
|
||||
export type ProvinceType = {
|
||||
ProvinceID: number,
|
||||
ProvinceName: string
|
||||
}
|
||||
|
||||
export interface ProvinceResponse {
|
||||
data: { data: ProvinceType[] | [], }
|
||||
error: string | null
|
||||
}
|
||||
|
||||
export interface LoginWithOTP {
|
||||
mobile_number?: string | any
|
||||
otp: string
|
||||
}
|
||||
|
||||
export type CitiesType = {
|
||||
CityID: number,
|
||||
CityName: string,
|
||||
ProvinceID: string,
|
||||
ProvinceName: string
|
||||
}
|
||||
|
||||
export interface CitiesResponse {
|
||||
data: CitiesType[] | [],
|
||||
error: string | null | any
|
||||
}
|
||||
Reference in New Issue
Block a user