complete auth pages sunc with api - complete cities and province combo box in register page

This commit is contained in:
Alihaghighattalab
2024-08-24 16:42:35 +03:30
parent ea510ee0bf
commit 9a63ef4e9e
14 changed files with 404 additions and 102 deletions
+45 -13
View File
@@ -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
}