Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VCCI-News
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Văn Hoàng
VCCI-News
Commits
8d787cfc
Commit
8d787cfc
authored
Oct 31, 2025
by
Phạm Quang Bảo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update/delete type
parent
0c6b3981
Changes
25
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
0 additions
and
1820 deletions
+0
-1820
banner.ts
src/api/types/banner.ts
+0
-9
bannerEvent.ts
src/api/types/bannerEvent.ts
+0
-12
club.ts
src/api/types/club.ts
+0
-23
common.ts
src/api/types/common.ts
+0
-33
contact.ts
src/api/types/contact.ts
+0
-30
event.ts
src/api/types/event.ts
+0
-311
files.ts
src/api/types/files.ts
+0
-9
footer.ts
src/api/types/footer.ts
+0
-38
introductionPage.ts
src/api/types/introductionPage.ts
+0
-6
location.ts
src/api/types/location.ts
+0
-7
memberShipFee.ts
src/api/types/memberShipFee.ts
+0
-27
notification.ts
src/api/types/notification.ts
+0
-58
order.ts
src/api/types/order.ts
+0
-112
organization.ts
src/api/types/organization.ts
+0
-476
organizationCategory.ts
src/api/types/organizationCategory.ts
+0
-60
pageConfig.ts
src/api/types/pageConfig.ts
+0
-80
product.ts
src/api/types/product.ts
+0
-38
schedule.ts
src/api/types/schedule.ts
+0
-91
statistic.ts
src/api/types/statistic.ts
+0
-12
status.ts
src/api/types/status.ts
+0
-38
user.ts
src/api/types/user.ts
+0
-245
userAdmin.ts
src/api/types/userAdmin.ts
+0
-60
userInfor.ts
src/api/types/userInfor.ts
+0
-7
validator.ts
src/api/types/validator.ts
+0
-24
websiteConfig.ts
src/api/types/websiteConfig.ts
+0
-14
No files found.
src/api/types/banner.ts
deleted
100644 → 0
View file @
0c6b3981
interface
BannerType
{
id
:
string
media
:
File
|
string
|
null
isImage
:
boolean
link
:
string
order
?:
number
}
export
type
{
BannerType
}
src/api/types/bannerEvent.ts
deleted
100644 → 0
View file @
0c6b3981
interface
BannerEventType
{
id
:
string
media
:
File
|
string
|
null
link
:
string
month
:
string
listEvent
:
Array
<
{
id
:
string
introduction
:
string
}
>
}
export
type
{
BannerEventType
}
src/api/types/club.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/common.ts
deleted
100644 → 0
View file @
0c6b3981
// 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
}
src/api/types/contact.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/event.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/files.ts
deleted
100644 → 0
View file @
0c6b3981
import
{
ResponseType
}
from
'./common'
type
PostFilesMutationResponseType
=
ResponseType
<
{
fileName
:
string
contentType
:
string
original
:
string
}
>
export
type
{
PostFilesMutationResponseType
}
src/api/types/footer.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/introductionPage.ts
deleted
100644 → 0
View file @
0c6b3981
interface
GeneralIntroductionType
{
media
:
string
content
:
string
}
export
type
{
GeneralIntroductionType
}
src/api/types/location.ts
deleted
100644 → 0
View file @
0c6b3981
interface
LocationType
{
id
:
string
name
:
string
image
:
string
|
null
}
export
type
{
LocationType
}
src/api/types/memberShipFee.ts
deleted
100644 → 0
View file @
0c6b3981
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
src/api/types/notification.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/order.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/organization.ts
deleted
100644 → 0
View file @
0c6b3981
This diff is collapsed.
Click to expand it.
src/api/types/organizationCategory.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/pageConfig.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/product.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/schedule.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/statistic.ts
deleted
100644 → 0
View file @
0c6b3981
import
{
ResponseType
}
from
'./common'
// useGetStatisticSiteAccess
type
GetStatisticSiteAccessQueryResponseType
=
ResponseType
<
{
rows
:
Array
<
{
date
:
string
group
:
string
value
:
number
}
>
}
>
export
type
{
GetStatisticSiteAccessQueryResponseType
}
src/api/types/status.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/user.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/userAdmin.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/userInfor.ts
deleted
100644 → 0
View file @
0c6b3981
import
{
ResponseType
}
from
'./common'
type
GetExistEmailType
=
ResponseType
<
{
unique
:
boolean
}
>
export
type
{
GetExistEmailType
}
src/api/types/validator.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
src/api/types/websiteConfig.ts
deleted
100644 → 0
View file @
0c6b3981
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment