Commit 8d787cfc authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

update/delete type

parent 0c6b3981
interface BannerType {
id: string
media: File | string | null
isImage: boolean
link: string
order?: number
}
export type { BannerType }
interface BannerEventType {
id: string
media: File | string | null
link: string
month: string
listEvent: Array<{
id: string
introduction: string
}>
}
export type { BannerEventType }
import { ResponseType } from './common'
interface ClubMemberType {
id: string
status_id?: string | null
created_at: string
created_by?: string
updated_at?: string
updated_by?: string
org: {
id: string
name: string | null
avatar: string | null
province: string[]
org_categories: string[]
org_link: string | null
users: [{ id?: string; status_id?: string; is_org_verfied?: boolean }]
}
}
type GetClubMembersClubIdResponseType = ResponseType<Array<ClubMemberType>>
export type { ClubMemberType, GetClubMembersClubIdResponseType }
// Query response type
interface ResponseType<T = any> {
data: any
message: string | null
message_en: string | null
responseData: T
status: 'fail' | 'success'
statusCode: number
timeStamp: string
violations: Array<{
code: number
message: string
action: Array<{
location: string
msg: {
en: string
vi: string
}
path: string
value: string
}>
}> | null
}
// Infinite query statuses type
interface InfiniteQueryStatusesType {
isFetchingInitialPage: boolean
isFetchingNextPage: boolean
isEmptyData: boolean
isError?: boolean
}
export type { ResponseType, InfiniteQueryStatusesType }
import { GetPageConfigTabCodeQueryResponseType } from './pageConfig'
// useGetContact
type GetContactResponseType = GetPageConfigTabCodeQueryResponseType
interface UserContactTabContentType {
searching: Array<{
actor: string
date: string
demand: string
email: string
feedback: boolean
fullName: string
id: string
organizationName: string
phoneNumber: string
}>
contactUs: Array<{
date: string
feedback: boolean
id: string
fullName: string
organizationName: string
email: string
phoneNumber: string
message: string
}>
}
export type { GetContactResponseType, UserContactTabContentType }
import { ResponseType } from './common'
type EventType = 'PARTNER' | 'B2B'
// useGetEvents
interface GetEventsQueryResponseItemType {
counter_cost: number
counter_count: number
counter_max_pick: number | null
counter_min_pick: number | null
created_at: string
created_by: string
description: string
end_time: string
event_organizations: Array<{
add_info: string | null
created_at: string
guest_image: string | null
guest_name: string | null
id: string
org_counter_count: number
org_table_count: number
organization: {
avatar: string | null
id: string
name: string
org_categories: string[]
org_link: string | null
organization_products: any[]
province: string[]
users: Array<{
id: string
}>
} | null
role: 'MAIN' | 'SUPPORT' | 'SUPPORT_1' | 'SUPPORT_2' | 'SUPPORT_3' | 'PARTAKER'
status: string | null
}>
id: string
image: string
introduction: string | null
location: string
name: string
province: string
seo_text: string
seo_text_en: string | null
start_time: string
status: string
status_status: {
code: string
id: string
name: string
name_en: string
}
table_cost: number
table_count: number
table_max_pick: number | null
table_min_pick: number | null
updated_at: string
updated_by: string
created_by_user: {
id: string | null
organization_organization: {
id: string | null
name: string | null
avatar: string | null
org_link: string | null
}
}
}
type GetEventsQueryResponseType = ResponseType<{
count: string | number
currentPage: string | number
totalPages: string | number
rows: GetEventsQueryResponseItemType[]
}>
// useGetEventsMyEvents
type GetEventsMyEventsQueryResponseType = ResponseType<{
count: number
rows: Array<{
created_at: string
id: string
event_id: string
status: any
}>
}>
// useGetEventsId
type GetEventsIdQueryResponseType = ResponseType<{
accept_entries: boolean | null
counter_cost: number
counter_count: number
created_at: string
description: string
end_time: string
event_organizations: Array<{
add_info: string | null
created_at: string
guest_image: string | null
guest_name: string | null
id: string
org_counter_count: number | null
org_table_count: number | null
organization: {
address: string
avatar: string | null
club_link: string | null
club_name: string | null
id: string
name: string
org_categories: string[]
org_link: string | null
org_status_id: string | null
organization_products: Array<{
id: string
images: string[]
}>
province: string[]
tax_code: string
users: Array<{
id: string
}>
website: string
} | null
role: 'PARTAKER' | 'MAIN' | 'SUPPORT' | 'SUPPORT_1' | 'SUPPORT_2' | 'SUPPORT_3' | 'GUEST'
status: string | null
}>
host_club: string | null
id: string
image: string
introduction: string | null
location: string
name: string
org_support_titles: string[] | null
province: string
seo_text: string
seo_text_en: string | null
start_time: string
status: string
status_status: {
code: string
id: string
name: string
name_en: string
}
table_cost: number
table_count: number
updated_at: string | null
}>
// useGetEventsSlugSlug
interface GetEventsSlugSlugQueryResponseDataEventOrganizationType {
add_info: string | null
created_at: string
guest_image: string | null
guest_name: string | null
id: string
org_counter_count: number | null
org_table_count: number | null
organization: {
address: string
avatar: string | null
club_link: string | null
club_name: string | null
id: string
name: string
org_categories: string[]
org_email: string
org_link: string
organization_products: Array<{
id: string
images: string[]
}>
province: string[]
tax_code: string
users: Array<{
id: string
}>
website: string
welcome_content: string | null
created_at: string
} | null
role: string | null
status: string | null
}
interface GetEventsSlugSlugQueryResponseDataType {
name: string
created_at: string
updated_at: string
id: string
start_time: string
end_time: string
status: string
image: string
description: string
location: string
seo_text: string
seo_text_en: string | null
org_support_titles: string[] | null
event_organizations: GetEventsSlugSlugQueryResponseDataEventOrganizationType[]
province: string
status_status: {
code: string
id: string
name: string
name_en: string
}
}
type GetEventsSlugSlugQueryResponseType = ResponseType<GetEventsSlugSlugQueryResponseDataType>
// useGetEventsLink
interface EventsLinkType {
organization_id: string | null
event_id?: string
status: string | null
created_at: string
updated_at: string | null
created_by: string
updated_by: string | null
role: 'MAIN' | 'SUPPORT' | 'SUPPORT_1' | 'SUPPORT_2' | 'SUPPORT_3' | 'PARTAKER'
guest_name: string | null
guest_image: string | null
org_table_count: number | null
org_counter_count: number | null
id: string
add_info: string | null
event: {
id: string
name: string
description: string
location: string
event_organizations: {
id: string
guest_name: string
}
image?: string | null
start_time: string
end_time: string
created_by_user: {
organization_organization: {
org_link: string | null
name: string | null
}
}
seo_text: string
seo_text_en: string | null
}
organization: {
id: string | null
name: string | null
avatar: string | null
province: string[] | null
org_categories: string[] | null
org_link: string | null
}
}
type GetEventsLinkQueryResponseType = ResponseType<{
count: string | number
currentPage: string | number
totalPages: string | number
rows: Array<EventsLinkType>
}>
// GET /events/slug/getAllSlug
type GetEventsGetAllSlug = {
seo_text: string | null
seo_text_en: string | null
}[]
// POST /events
type PostEventsMutationResponseType = ResponseType<Array<Omit<GetEventsQueryResponseItemType, 'event_organizations'>>>
// Types
interface EventVisitingOrganizationInformationType {
// Organization information
name: string
categories: string[]
provinces: string[]
foreignProvince: string
address: string
website: string
// Contact information
contactName: string
contactTitle: string
phoneNumber: string
email: string
// Event
eventId: string
}
export type {
EventType,
GetEventsQueryResponseType,
GetEventsIdQueryResponseType,
GetEventsLinkQueryResponseType,
EventsLinkType,
PostEventsMutationResponseType,
GetEventsQueryResponseItemType,
GetEventsGetAllSlug,
GetEventsSlugSlugQueryResponseType,
GetEventsSlugSlugQueryResponseDataType,
GetEventsSlugSlugQueryResponseDataEventOrganizationType,
GetEventsMyEventsQueryResponseType,
EventVisitingOrganizationInformationType
}
import { ResponseType } from './common'
type PostFilesMutationResponseType = ResponseType<{
fileName: string
contentType: string
original: string
}>
export type { PostFilesMutationResponseType }
import { ResponseType } from './common'
// Response data item type
interface GetFooterQueryResponseDataItemType {
id: string
display: boolean
image: string | null
name: string
name_en: string
sequency: number | null
type: 'ABOUT' | 'INFO' | 'CONTACT'
value: string
value_en: string
created_at: string
updated_at: string
updated_by: string
}
// Response data type
type GetFooterQueryResponseType = ResponseType<{
count: number
currentPage: number
rows: GetFooterQueryResponseDataItemType[]
}>
// Request body data type
interface PostFooterMutationRequestBodyDataType {
display?: boolean
image?: string
name: string
name_en: string
value: string
value_en: string
sequency?: number
type: 'ABOUT' | 'INFO' | 'CONTACT'
}
export type { GetFooterQueryResponseDataItemType, GetFooterQueryResponseType, PostFooterMutationRequestBodyDataType }
interface GeneralIntroductionType {
media: string
content: string
}
export type { GeneralIntroductionType }
interface LocationType {
id: string
name: string
image: string | null
}
export type { LocationType }
import { ResponseType } from './common'
interface GetMemberShipFeeQueryResponeItemType {
id : string ,
organization_id : string ,
admin_information : string ,
customer_information : string ,
amount_paid : string ,
created_by : string ,
image_evidence : string ,
created_at : string
}
// Response data type
type GetMembershipFeeQueryResponseType = ResponseType<{
count: number
currentPage: number
totalPages: number
rows: GetMemberShipFeeQueryResponeItemType[]
}>
type GetMemberShipFeeQueryResponeType = ResponseType<GetMemberShipFeeQueryResponeItemType>
export type {
GetMemberShipFeeQueryResponeType,
GetMemberShipFeeQueryResponeItemType,
GetMembershipFeeQueryResponseType
}
\ No newline at end of file
import { ResponseType } from './common'
// Common types
interface NotificationAddInfoType {
type: 'ORG' | 'CLUB'
link: string
}
interface OriginalNotificationType {
_id: string
add_info: string | null
belongs_to_user_id: string
created_at: string
has_noti_sent: boolean
has_user_read: boolean
sent_time: string
title: string
content: string
sub_category: string
}
interface TransformedNotificationType {
id: string
addInfo: NotificationAddInfoType | null
belongsToUserId: string
createdAt: string
hasNotiSent: boolean
hasUserRead: boolean
sentTime: string
title: string
content: string
sub_category:string
}
// Transform GetNotificationsQueryResponse row
interface GetOrganizationsQueryTransformedResponseType {
[x: string]: any
count: number
rows: TransformedNotificationType[]
totalPages: string | number | null
currentPage: string | number | null
}
// useGetNotifications
type GetNotificationsQueryResponseType = ResponseType<{
count: number
rows: OriginalNotificationType[]
totalPages: string | number | null
currentPage: string | number | null
}>
export type {
GetNotificationsQueryResponseType,
NotificationAddInfoType,
GetOrganizationsQueryTransformedResponseType,
TransformedNotificationType,
OriginalNotificationType
}
import { ResponseType } from './common'
type PaymentType = 'VNPAY' | 'ZALOPAY' | 'CASH'
// useGetOrderGetMyOrders
type GetOrderGetMyOrdersQueryResponseType = ResponseType<{
count: number
rows: Array<{
add_info: string
code: string
description: string
events: string
id: string
is_invoice: boolean
payment: {
id: string
created_at: string
type: string
}
sum: number
}>
totalPages: number
currentPage: number
}>
// useGetOrder
interface GetOrderQueryResponseItemType {
add_info: string
code: string
created_at: string
created_by: string
description: string
id: string
events: string
payment: {
id: string
created_at: string
type: string
}
payment_id: string
products: string[]
sum: number
updated_at: null
updated_by: null
user_id: string
is_invoice: boolean
}
type GetOrderQueryResponseType = ResponseType<{
count: number
rows: GetOrderQueryResponseItemType[]
totalPages: number
currentPage: number
}>
// usePostOrder
interface OrderDescriptionType {
type: PaymentType
totalPrice: number
events: Array<{
id: string
name: string
tableUnitPrice: number
tableCount: number
totalTablePrice: number
shelveUnitPrice: number
shelveCount: number
totalShelvePrice: number
discountPercent: number
discountPrice: number
}>
}
interface OrderInfoType {
contactName: string
contactPhoneNumber: string
contactEmail: string
contactTitle?: string
invoice: {
name: string
taxCode: string
email: string
address: string
}
}
// useGetOrderPayment
type GetOrderPaymentQueryResponseType = ResponseType<{
count: number
rows: Array<{
type: PaymentType
status_id: string
created_at: string
updated_at: string
created_by: string
add_info: string
id: string
orders: Array<{
id: string
}>
}>
}>
export type {
GetOrderGetMyOrdersQueryResponseType,
OrderDescriptionType,
OrderInfoType,
GetOrderQueryResponseType,
GetOrderQueryResponseItemType,
PaymentType,
GetOrderPaymentQueryResponseType
}
This diff is collapsed.
import { ResponseType } from './common'
interface GetOrganizationCategoryQueryResponseItemType {
id: string
label: string
label_en: string,
name: string,
name_en: string,
image: string
options: Array<{
category_id: string
value: string
label: string
label_en: string
image: string
created_by: string | null
seo_text: string | null
}>
}
interface GetOrganizationCategoryResponseItemType{
id: string
name: string
name_en: string
image: string
seo_text: string
seo_text_en: string
parent_id: string
group_code: string
category_organizations: categoryorganizations[]
label: string
label_en: string
}
interface categoryorganizations {
type: string
organization: organization
}
interface organization {
id: string
name: string
avatar: string
org_email: string
}
interface OrganizationCategoryTableRowType {
id: string
order: number
name: string
image: string
category_organizations: categoryorganizations[]
isCategory: any
}
type GetOrganizationCategoryQueryResponseType = ResponseType<Array<GetOrganizationCategoryQueryResponseItemType>>
type GetOrganizationCategoryResponseType = ResponseType<Array<GetOrganizationCategoryResponseItemType>>
export type { GetOrganizationCategoryQueryResponseType, GetOrganizationCategoryQueryResponseItemType, GetOrganizationCategoryResponseType, OrganizationCategoryTableRowType, categoryorganizations, organization }
import { PageConfigTab } from '../models'
import { ResponseType } from './common'
export type PageConfig = {
id: string
name: string
code: string
static_link: string
created_at: Date
static_link_en: string
}
export type GetPageConfigResponseType = ResponseType<PageConfig>
export type GetPageConfigCodeResponseType = ResponseType<{ page_config: PageConfig; page_config_tab: PageConfigTab[] }>
// useGetPageConfig
type GetPageConfigQueryResponseType = ResponseType<{
count: number
rows: Array<{
id: string
name: string
code: string
static_link: string
created_at: string | null
static_link_en: string | null
}>
}>
// useGetPageConfigTabCode
type GetPageConfigTabCodeQueryResponseType = ResponseType<{
page_config: {
id: string
name: string
code: string
static_link: string
created_at: string | null
static_link_en: string | null
}
page_config_tab: Array<{
id: string
name: string
code: string
static_link: string
updated_at: string | null
updated_by: string | null
page_config_id: string
content: string | null
parent_id: string | null
config: string
content_tablet: string | null
content_mobile: string | null
created_at: string
sort_order: number
childrens: any[]
}>
}>
// useGetPageConfigTabCodeGetByTabCode
type GetPageConfigTabCodeGetByTabCodeQueryResponseType = ResponseType<{
name: string
code: string
static_link: string | null
updated_at: string | null
updated_by: string | null
page_config_id: string
content: string | null
parent_id: string | null
config: string | null
content_tablet: string | null
content_mobile: string | null
created_at: string
id: string
sort_order: number
}>
export type {
GetPageConfigTabCodeQueryResponseType,
GetPageConfigQueryResponseType,
GetPageConfigTabCodeGetByTabCodeQueryResponseType
}
import { ResponseType } from './common'
import { OrganizationProduct } from './organization'
// useGetProducts
interface GetProductQueryResponseItemType {
id: string
category_id: string
organization_id: string
organization: { name: string; province: string[] }
name: string
description: string
supply_info: string | null
images: string[]
created_at: string | null
created_by: string | null
updated_at: string | null
updated_by: string | null
status_id: string
seo_text: string | null
}
type GetProductQueryResponseType = ResponseType<{
count: number
currentPage: number
totalPages: number
responseData: {
rows: OrganizationProduct[]
count: number
currentPage: number
totalPages: number
}
rows: GetProductQueryResponseItemType[]
}>
type GetProductIdResponseType = ResponseType<GetProductQueryResponseItemType>
export type { GetProductQueryResponseType, GetProductQueryResponseItemType, GetProductIdResponseType }
import { ResponseType } from './common'
interface GetMyScheduleQueryResponseItemType {
count: number
rows: Array<{
event: {
end_time: string
location: string
name: string
province: string
seo_text: string
start_time: string
}
event_id: string
id: string
is_canceled: boolean
note: string | null
partner: {
id: string
name: string
org_email: string
org_link: string
users: Array<{
id: string
}>
}
phone: string
require_translator: boolean
schedule_time: string
scheduler_email: string
scheduler_name: string
}>
totalPages: number
currentPage: number
}
interface GetManageMyScheduleQueryResponseItemType {
schedule_time: string
require_translator: boolean
scheduler_name: string
scheduler_email: string
event_id: string
id: string
user: {
id: string
organization_organization: {
avatar: string | null
id: string
name: string
org_categories?: string[]
org_link: string | null
province?: string[]
}
}
event: {
id: string
name: string
location: string
province: string
start_time: string
end_time: string
}
}
interface GetScheduledTimeByEventIdAndPartnerIdQueryResponseItemType {
count: number
rows: Array<{
id: string
event_id: string
schedule_time: string
user_id: string
}>
}
type GetMyScheduleQueryResponseType = ResponseType<GetMyScheduleQueryResponseItemType>
type GetManageMyScheduleQueryResponseType = ResponseType<{
count: number
rows: Array<GetManageMyScheduleQueryResponseItemType>
totalPages: number
currentPage: number
}>
type GetScheduledTimeByEventIdAndPartnerIdQueryResponseType =
ResponseType<GetScheduledTimeByEventIdAndPartnerIdQueryResponseItemType>
export type {
GetMyScheduleQueryResponseType,
GetMyScheduleQueryResponseItemType,
GetScheduledTimeByEventIdAndPartnerIdQueryResponseType,
GetManageMyScheduleQueryResponseItemType,
GetManageMyScheduleQueryResponseType
}
import { ResponseType } from './common'
// useGetStatisticSiteAccess
type GetStatisticSiteAccessQueryResponseType = ResponseType<{
rows: Array<{
date: string
group: string
value: number
}>
}>
export type { GetStatisticSiteAccessQueryResponseType }
import { ResponseType } from './common'
type GetStatusQueryResponseCodeType =
| 'PENDING'
| 'PAID'
| 'PAYMENT_ERROR'
| 'EVENT_PENDING'
| 'EVENT_HAPPENING'
| 'EVENT_FINISHED'
| 'ORG_PENDING'
| 'ORG_ACTIVE'
| 'ORG_DENIED'
| 'ORG_PENDING_REF'
| 'ORG_PENDING_DETAIL'
| 'ORG_ACTIVE_DETAIL'
| 'ORG_DENIED_DETAIL'
| 'ORG_HIDDEN_DETAIL'
| 'CLUB_PENDING'
| 'CLUB_VALIDATED'
| 'CLUB_DENIED'
| 'ORG_UNPAID'
type GetStatusQueryResponseType = ResponseType<{
count: number
currentPage: number
totalPages: number
rows: Array<{
id: string
name: string
name_en: string
code: GetStatusQueryResponseCodeType
description: string
group: 'PAYMENT' | 'EVENT' | 'ORG' | 'CLUB'
sub_group: any
}>
}>
export type { GetStatusQueryResponseType, GetStatusQueryResponseCodeType }
import { ResponseType } from './common'
// useGetUsersGetMyInfo
interface GetMyInfoQueryResponseItemType {
address: string | null
avatar: string | null
birthday: string | null
created_at: string | null
email: string
favorite_orgs: string[]
favorite_products: string[]
first_name: string | null
full_name: string | null
id: string
is_active: boolean | null
is_org_verfied: boolean | null
is_web_verified: boolean | null
last_name: string | null
org_categories: string[] | null
approvals: approvals[]
org_ref_code: string | null
organization_id: string
organization_organization: {
name: string
is_premium: boolean
tax_code: string
type: 'ORG' | 'CLUB'
avatar: string
ref_code: string | null
club_discount: string | null
time_club_discount: string | null
referrer: string | null
} | null
phone: string | null
reg_progress: any
status_id: string
updated_at: string | null
user_permisions: Array<{
id: string
permision: {
id: string
name: string
code: string
description: string
group_code: string
},
}>
}
type GetMyInfoQueryResponseType = ResponseType<GetMyInfoQueryResponseItemType>
interface approvals {
id: string
reason?: string
status?: 'pending | accepted | declined'
updated_at: null
}
// useGetUsers
interface GetUsersQueryResponseItemType {
name: string
address: string | null
avatar: string | null
birthday: string | null
created_at: string | null
email: string
favorite_orgs: string[]
favorite_products: string[]
first_name: string | null
full_name: string | null
id: string
is_active: boolean
is_org_verfied: boolean | null
is_web_verified: boolean | null
is_paid_membershipFee: boolean | null
last_name: string | null
org_categories: string[] | null
org_ref_code: string[]
organization_id: string | null
organization_organization: {
address: string
name: string
org_categories: string[]
province: string[]
tax_code: string
website: string
membership_fee: string
signed_file: string
} | null
phone: string | null
reg_progress: string | null
status_id: string
updated_at: string | null
validated_at: string | null
validation_comment: string | null
validator_name: string | null
approvals: approvals[]
member_code?: string
}
type GetUsersQueryResponseType = ResponseType<{
count: number
totalPages: number
currentPage: number
rows: GetUsersQueryResponseItemType[]
}>
// useGetUsersId
type GetUsersIdQueryResponseType = ResponseType<{
email: string
first_name: string | null
last_name: string | null
birthday: string | null
address: string | null
phone: string | null
is_active: boolean
created_at: string | null
updated_at: string | null
id: string
avatar: string | null
full_name: string | null
organization_id: string | null
gender: string | null
is_org_verfied: boolean | null
org_categories: any | null
org_ref_code: string | null
reg_progress: string | null
registration_front: string | null
registration_back: string | null
status_id: string | null
}>
type GetFavoriteBusinessQueryResponseType = ResponseType<{
count: number
totalPages: number
currentPage: number
rows: GetFavoriteBusinessType[]
}>
//get list favorite business
interface GetFavoriteBusinessType {
name: string
avatar: string | null
is_premium: boolean | null
created_at: string
created_by: string
updated_at: string | null
updated_by: string | null
id: string
ref_code: string
tax_code: string
org_categories: string[]
website: string
address: string
description: string | null
type: string
province: string[]
banner: string | null
welcome_media: string | null
certificates: string | null
org_email: string | null
org_number: string | null
org_link: string | null
org_representative: string | null
org_status_id: string | null
draft_changes: string | null
is_hidden: boolean | null
}
type GetFavoriteProductQueryResponseType = ResponseType<{
count: number
totalPages: number
currentPage: number
rows: GetFavoriteProductType[]
}>
//get list favorite product
interface GetFavoriteProductType {
id: string
organization_id: string
name: string
description: string | null
category_id: string
images: string[]
status_id: string
created_at: string
created_by: string
updated_at: string | null
updated_by: string | null
seo_text: string | null
}
interface GetUsersClubQueryResponseItemType {
avatar: string
club_discount: string
created_at: string
id: string
name: string
org_count: number
org_link: string
ref_code: string
sort_order: number | null
updated_at: string | null
users: Array<{
email: string
id: string
is_active: boolean
}>
}
type GetUsersClubQueryResponseType = ResponseType<{
count: number
totalPages: number
currentPage: number
rows: GetUsersClubQueryResponseItemType[]
}>
// useGetUsersPartaker
interface GetUsersPartakerQueryResponseItemType {
avatar: string | null
id: string
name: string
org_categories: string[]
org_link: string | null
province: string[]
}
type GetUsersPartakerQueryResponseType = ResponseType<GetUsersPartakerQueryResponseItemType[]>
type GetUsersPrintResponseType = ResponseType<{}>
export type {
GetMyInfoQueryResponseType,
GetUsersQueryResponseType,
GetUsersIdQueryResponseType,
GetMyInfoQueryResponseItemType,
GetUsersQueryResponseItemType,
GetFavoriteBusinessQueryResponseType,
GetFavoriteBusinessType,
GetFavoriteProductQueryResponseType,
GetFavoriteProductType,
GetUsersClubQueryResponseType,
GetUsersClubQueryResponseItemType,
GetUsersPartakerQueryResponseType,
GetUsersPartakerQueryResponseItemType,
GetUsersPrintResponseType
}
import { ResponseType } from './common'
interface GetUserAdminQueryResponseItemType {
id: string
email: string
first_name: string | null
last_name: string | null
avatar: string | null
birthday: string | null
address: string | null
phone: string | null
is_active: boolean | null
created_at: string | null
updated_at: string | null
full_name: string | null
organization_id: string
is_web_verified: boolean | null
is_org_verfied: boolean | null
org_categories: string[] | null
org_ref_code: string | null
status_id: string | null
reg_progress: string | null
favorite_orgs: [] | null
favorite_products: [] | null
user_permisions: Array<{
id: string
permision: {
id: string
name: string
}
}>
}
type GetUsersAdminQueryResponseType = ResponseType<{
count: number
totalPages: number
currentPage: number
rows: GetUserAdminQueryResponseItemType[]
}>
type GetUserDepartmentQueryResponseItemType = {
id: string;
code: string;
name: string;
note: string;
created_at: string;
created_by: string;
updated_at: string | null;
updated_by: string | null;
};
type GetDepartmentQueryResponseType = ResponseType<{
count: number
totalPages: number
currentPage: number
rows: GetUserDepartmentQueryResponseItemType[]
}>
export type { GetUsersAdminQueryResponseType, GetUserAdminQueryResponseItemType, GetDepartmentQueryResponseType, GetUserDepartmentQueryResponseItemType }
import { ResponseType } from './common'
type GetExistEmailType = ResponseType<{
unique: boolean
}>
export type { GetExistEmailType }
import { ResponseType } from './common'
import { OrgTypeType } from './organization'
// usePostValidatorCheckEventSlotsEventId
type PostValidatorCheckEventSlotsEventIdMutationResponseType = ResponseType<{
booked_counter_count: number
booked_table_count: number
counter_count: number
id: string
name: string
table_count: number
}>
// usePostValidatorOrgCode
type PostValidatorOrgCodeMutationResponseType = ResponseType<{
id: string
name: string
type: OrgTypeType
users: Array<{
id: string
}>
}>
export type { PostValidatorCheckEventSlotsEventIdMutationResponseType, PostValidatorOrgCodeMutationResponseType }
import { WebConfig } from '../models'
import { ResponseType } from './common'
type GetWebsiteConfigQueryResponseType = ResponseType<WebConfig | null>
interface SocialMediaType {
id: string
order: number
title: string
link: string
image: string
}
export type { GetWebsiteConfigQueryResponseType, SocialMediaType }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment