Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vcci-news-frontend
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-frontend
Commits
3d0df67f
Commit
3d0df67f
authored
Nov 24, 2025
by
Phạm Quang Bảo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix/request api and not found page
parent
58e43844
Changes
44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
832 additions
and
288 deletions
+832
-288
orval.config.ts
orval.config.ts
+6
-2
approvals.ts
src/api/endpoints/approvals.ts
+145
-64
category.ts
src/api/endpoints/category.ts
+4
-4
contact.ts
src/api/endpoints/contact.ts
+2
-2
department.ts
src/api/endpoints/department.ts
+4
-4
event.ts
src/api/endpoints/event.ts
+16
-16
files.ts
src/api/endpoints/files.ts
+2
-2
footer.ts
src/api/endpoints/footer.ts
+4
-4
membership-fee.ts
src/api/endpoints/membership-fee.ts
+89
-8
news-page-config.ts
src/api/endpoints/news-page-config.ts
+13
-13
news.ts
src/api/endpoints/news.ts
+6
-6
notification.ts
src/api/endpoints/notification.ts
+2
-2
order.ts
src/api/endpoints/order.ts
+10
-10
organization-category.ts
src/api/endpoints/organization-category.ts
+10
-10
organizations.ts
src/api/endpoints/organizations.ts
+194
-32
page-config.ts
src/api/endpoints/page-config.ts
+8
-8
permision-function.ts
src/api/endpoints/permision-function.ts
+4
-4
permisions.ts
src/api/endpoints/permisions.ts
+4
-4
products.ts
src/api/endpoints/products.ts
+6
-6
schedule.ts
src/api/endpoints/schedule.ts
+6
-6
statistic.ts
src/api/endpoints/statistic.ts
+8
-8
status.ts
src/api/endpoints/status.ts
+2
-2
user-department.ts
src/api/endpoints/user-department.ts
+4
-4
user-history.ts
src/api/endpoints/user-history.ts
+4
-4
users.ts
src/api/endpoints/users.ts
+105
-24
validator.ts
src/api/endpoints/validator.ts
+2
-2
website-config.ts
src/api/endpoints/website-config.ts
+2
-2
approvalRequest.ts
src/api/models/approvalRequest.ts
+16
-0
index.ts
src/api/models/index.ts
+7
-0
membershipFee.ts
src/api/models/membershipFee.ts
+2
-0
news.ts
src/api/models/news.ts
+1
-0
postMembershipFeeCreateAccountsAndFeesBody.ts
src/api/models/postMembershipFeeCreateAccountsAndFeesBody.ts
+13
-0
postMembershipFeeCreateAccountsAndFeesBodyOrganizationsItem.ts
...embershipFeeCreateAccountsAndFeesBodyOrganizationsItem.ts
+17
-0
postOrganizationsAddMembershipFeesBody.ts
src/api/models/postOrganizationsAddMembershipFeesBody.ts
+13
-0
postOrganizationsAddMembershipFeesBodyFeesItem.ts
.../models/postOrganizationsAddMembershipFeesBodyFeesItem.ts
+14
-0
postOrganizationsCheckAccountsBody.ts
src/api/models/postOrganizationsCheckAccountsBody.ts
+12
-0
postUsersAdminCreateByTaxCodeBody.ts
src/api/models/postUsersAdminCreateByTaxCodeBody.ts
+12
-0
userOrg.ts
src/api/models/userOrg.ts
+1
-0
page.tsx
src/app/(main)/[...slug]/page.tsx
+17
-3
ArticleDetailPage.tsx
src/app/(main)/[...slug]/templates/ArticleDetailPage.tsx
+2
-1
ArticlePage.tsx
src/app/(main)/[...slug]/templates/ArticlePage.tsx
+15
-10
EventDetailPage.tsx
src/app/(main)/[...slug]/templates/EventDetailPage.tsx
+2
-2
EventPage.tsx
src/app/(main)/[...slug]/templates/EventPage.tsx
+10
-7
InformationPage.tsx
src/app/(main)/[...slug]/templates/InformationPage.tsx
+16
-12
No files found.
orval.config.ts
View file @
3d0df67f
...
...
@@ -41,8 +41,12 @@ const orvalConfig = async () => {
query
:
{
useQuery
:
true
,
useInfinite
:
true
,
usePrefetch
:
true
// useSuspenseQuery: true
usePrefetch
:
true
,
// useSuspenseQuery: true,
options
:
{
retry
:
3
,
retryDelay
:
1000
,
}
},
mutator
:
{
path
:
'./src/api/mutator/custom-client.ts'
,
...
...
src/api/endpoints/approvals.ts
View file @
3d0df67f
This diff is collapsed.
Click to expand it.
src/api/endpoints/category.ts
View file @
3d0df67f
...
...
@@ -111,7 +111,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetCategoryIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getCategoryId
>>>
...
...
@@ -186,7 +186,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetCategoryIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getCategoryId
>>>
...
...
@@ -479,7 +479,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetCategoryInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getCategory
>>>
...
...
@@ -554,7 +554,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetCategoryQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getCategory
>>>
...
...
src/api/endpoints/contact.ts
View file @
3d0df67f
...
...
@@ -110,7 +110,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getContact
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getContact
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetContactInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getContact
>>>
...
...
@@ -185,7 +185,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getContact
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getContact
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetContactQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getContact
>>>
...
...
src/api/endpoints/department.ts
View file @
3d0df67f
...
...
@@ -110,7 +110,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getDepartmentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getDepartmentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetDepartmentIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getDepartmentId
>>>
...
...
@@ -185,7 +185,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getDepartmentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getDepartmentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetDepartmentIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getDepartmentId
>>>
...
...
@@ -478,7 +478,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getDepartment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getDepartment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetDepartmentInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getDepartment
>>>
...
...
@@ -553,7 +553,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getDepartment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getDepartment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetDepartmentQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getDepartment
>>>
...
...
src/api/endpoints/event.ts
View file @
3d0df67f
...
...
@@ -210,7 +210,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsId
>>>
...
...
@@ -285,7 +285,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsId
>>>
...
...
@@ -578,7 +578,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsGroupByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsGroupByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsGroupByMonthInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsGroupByMonth
>>>
...
...
@@ -653,7 +653,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsGroupByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsGroupByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsGroupByMonthQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsGroupByMonth
>>>
...
...
@@ -786,7 +786,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEvents
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEvents
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEvents
>>>
...
...
@@ -861,7 +861,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEvents
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEvents
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEvents
>>>
...
...
@@ -1241,7 +1241,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsLinkId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsLinkId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsLinkIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsLinkId
>>>
...
...
@@ -1316,7 +1316,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsLinkId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsLinkId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsLinkIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsLinkId
>>>
...
...
@@ -1609,7 +1609,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsLink
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsLink
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsLinkInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsLink
>>>
...
...
@@ -1684,7 +1684,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsLink
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsLink
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsLinkQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsLink
>>>
...
...
@@ -2071,7 +2071,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsMyEvents
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsMyEvents
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsMyEventsInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsMyEvents
>>>
...
...
@@ -2146,7 +2146,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsMyEvents
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsMyEvents
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsMyEventsQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsMyEvents
>>>
...
...
@@ -2284,7 +2284,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
slug
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsSlugSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
slug
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsSlugSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsSlugSlugInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsSlugSlug
>>>
...
...
@@ -2365,7 +2365,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
slug
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsSlugSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
slug
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsSlugSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsSlugSlugQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsSlugSlug
>>>
...
...
@@ -2496,7 +2496,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsSlugGetAllSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsSlugGetAllSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsSlugGetAllSlugInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsSlugGetAllSlug
>>>
...
...
@@ -2571,7 +2571,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsSlugGetAllSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getEventsSlugGetAllSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetEventsSlugGetAllSlugQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getEventsSlugGetAllSlug
>>>
...
...
src/api/endpoints/files.ts
View file @
3d0df67f
...
...
@@ -110,7 +110,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFiles
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFiles
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetFilesInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getFiles
>>>
...
...
@@ -185,7 +185,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFiles
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFiles
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetFilesQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getFiles
>>>
...
...
src/api/endpoints/footer.ts
View file @
3d0df67f
...
...
@@ -112,7 +112,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFooterId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFooterId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetFooterIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getFooterId
>>>
...
...
@@ -187,7 +187,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFooterId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFooterId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetFooterIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getFooterId
>>>
...
...
@@ -480,7 +480,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFooter
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFooter
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetFooterInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getFooter
>>>
...
...
@@ -555,7 +555,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFooter
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getFooter
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetFooterQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getFooter
>>>
...
...
src/api/endpoints/membership-fee.ts
View file @
3d0df67f
...
...
@@ -35,6 +35,7 @@ import type {
GetMembershipFeePrintParams
,
MembershipFee
,
MembershipFeeBody
,
PostMembershipFeeCreateAccountsAndFeesBody
,
PutMembershipFeeParams
,
Response
}
from
'../models'
;
...
...
@@ -114,7 +115,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetMembershipFeeIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeId
>>>
...
...
@@ -189,7 +190,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetMembershipFeeIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeId
>>>
...
...
@@ -475,7 +476,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
organizationId
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeCheckFeeOrganizationId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
organizationId
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeCheckFeeOrganizationId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetMembershipFeeCheckFeeOrganizationIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeCheckFeeOrganizationId
>>>
...
...
@@ -550,7 +551,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
organizationId
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeCheckFeeOrganizationId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
organizationId
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeCheckFeeOrganizationId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetMembershipFeeCheckFeeOrganizationIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getMembershipFeeCheckFeeOrganizationId
>>>
...
...
@@ -611,6 +612,86 @@ export const prefetchGetMembershipFeeCheckFeeOrganizationIdQuery = async <TData
/**
* Create user accounts and membership fees for organizations without accounts
*/
export
type
postMembershipFeeCreateAccountsAndFeesResponse200
=
{
data
:
Response
status
:
200
}
export
type
postMembershipFeeCreateAccountsAndFeesResponseSuccess
=
(
postMembershipFeeCreateAccountsAndFeesResponse200
)
&
{
headers
:
Headers
;
};
;
export
type
postMembershipFeeCreateAccountsAndFeesResponse
=
(
postMembershipFeeCreateAccountsAndFeesResponseSuccess
)
export
const
getPostMembershipFeeCreateAccountsAndFeesUrl
=
()
=>
{
return
`/membershipFee/create-accounts-and-fees`
}
export
const
postMembershipFeeCreateAccountsAndFees
=
async
(
postMembershipFeeCreateAccountsAndFeesBody
:
PostMembershipFeeCreateAccountsAndFeesBody
,
options
?:
RequestInit
):
Promise
<
postMembershipFeeCreateAccountsAndFeesResponse
>
=>
{
return
useCustomClient
<
postMembershipFeeCreateAccountsAndFeesResponse
>
(
getPostMembershipFeeCreateAccountsAndFeesUrl
(),
{
...
options
,
method
:
'POST'
,
headers
:
{
'Content-Type'
:
'application/json'
,
...
options
?.
headers
},
body
:
JSON
.
stringify
(
postMembershipFeeCreateAccountsAndFeesBody
,)
}
);}
export
const
getPostMembershipFeeCreateAccountsAndFeesMutationOptions
=
<
TError
=
ErrorType
<
unknown
>
,
TContext
=
unknown
>
(
options
?:
{
mutation
?:
UseMutationOptions
<
Awaited
<
ReturnType
<
typeof
postMembershipFeeCreateAccountsAndFees
>>
,
TError
,{
data
:
BodyType
<
PostMembershipFeeCreateAccountsAndFeesBody
>
},
TContext
>
,
request
?:
SecondParameter
<
typeof
useCustomClient
>
}
):
UseMutationOptions
<
Awaited
<
ReturnType
<
typeof
postMembershipFeeCreateAccountsAndFees
>>
,
TError
,{
data
:
BodyType
<
PostMembershipFeeCreateAccountsAndFeesBody
>
},
TContext
>
=>
{
const
mutationKey
=
[
'postMembershipFeeCreateAccountsAndFees'
];
const
{
mutation
:
mutationOptions
,
request
:
requestOptions
}
=
options
?
options
.
mutation
&&
'mutationKey'
in
options
.
mutation
&&
options
.
mutation
.
mutationKey
?
options
:
{...
options
,
mutation
:
{...
options
.
mutation
,
mutationKey
}}
:
{
mutation
:
{
mutationKey
,
},
request
:
undefined
};
const
mutationFn
:
MutationFunction
<
Awaited
<
ReturnType
<
typeof
postMembershipFeeCreateAccountsAndFees
>>
,
{
data
:
BodyType
<
PostMembershipFeeCreateAccountsAndFeesBody
>
}
>
=
(
props
)
=>
{
const
{
data
}
=
props
??
{};
return
postMembershipFeeCreateAccountsAndFees
(
data
,
requestOptions
)
}
return
{
mutationFn
,
...
mutationOptions
}}
export
type
PostMembershipFeeCreateAccountsAndFeesMutationResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
postMembershipFeeCreateAccountsAndFees
>>>
export
type
PostMembershipFeeCreateAccountsAndFeesMutationBody
=
BodyType
<
PostMembershipFeeCreateAccountsAndFeesBody
>
export
type
PostMembershipFeeCreateAccountsAndFeesMutationError
=
ErrorType
<
unknown
>
export
const
usePostMembershipFeeCreateAccountsAndFees
=
<
TError
=
ErrorType
<
unknown
>
,
TContext
=
unknown
>
(
options
?:
{
mutation
?:
UseMutationOptions
<
Awaited
<
ReturnType
<
typeof
postMembershipFeeCreateAccountsAndFees
>>
,
TError
,{
data
:
BodyType
<
PostMembershipFeeCreateAccountsAndFeesBody
>
},
TContext
>
,
request
?:
SecondParameter
<
typeof
useCustomClient
>
}
,
queryClient
?:
QueryClient
):
UseMutationResult
<
Awaited
<
ReturnType
<
typeof
postMembershipFeeCreateAccountsAndFees
>>
,
TError
,
{
data
:
BodyType
<
PostMembershipFeeCreateAccountsAndFeesBody
>
},
TContext
>
=>
{
const
mutationOptions
=
getPostMembershipFeeCreateAccountsAndFeesMutationOptions
(
options
);
return
useMutation
(
mutationOptions
,
queryClient
);
}
/**
* Get
*/
export
type
getMembershipFeeResponse200
=
{
...
...
@@ -683,7 +764,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFee
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFee
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetMembershipFeeInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getMembershipFee
>>>
...
...
@@ -758,7 +839,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFee
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFee
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetMembershipFeeQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getMembershipFee
>>>
...
...
@@ -1145,7 +1226,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeePrint
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeePrint
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetMembershipFeePrintInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getMembershipFeePrint
>>>
...
...
@@ -1220,7 +1301,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeePrint
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getMembershipFeePrint
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetMembershipFeePrintQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getMembershipFeePrint
>>>
...
...
src/api/endpoints/news-page-config.ts
View file @
3d0df67f
...
...
@@ -110,7 +110,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigCategoryIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategoryId
>>>
...
...
@@ -185,7 +185,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigCategoryIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategoryId
>>>
...
...
@@ -392,7 +392,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigCategoryInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategory
>>>
...
...
@@ -467,7 +467,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigCategoryQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigCategory
>>>
...
...
@@ -593,7 +593,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetAllLinks
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetAllLinks
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigGetAllLinksInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetAllLinks
>>>
...
...
@@ -668,7 +668,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetAllLinks
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetAllLinks
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigGetAllLinksQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetAllLinks
>>>
...
...
@@ -755,7 +755,7 @@ export const getGetNewsPageConfigGetHierarchicalUrl = (params?: GetNewsPageConfi
const
stringifiedParams
=
normalizedParams
.
toString
();
return
stringifiedParams
.
length
>
0
?
`/
NewsPageConfig/getHierarchical?
${
stringifiedParams
}
`
:
`/N
ewsPageConfig/getHierarchical`
return
stringifiedParams
.
length
>
0
?
`/
newsPageConfig/getHierarchical?
${
stringifiedParams
}
`
:
`/n
ewsPageConfig/getHierarchical`
}
export
const
getNewsPageConfigGetHierarchical
=
async
(
params
?:
GetNewsPageConfigGetHierarchicalParams
,
options
?:
RequestInit
):
Promise
<
getNewsPageConfigGetHierarchicalResponse
>
=>
{
...
...
@@ -775,13 +775,13 @@ export const getNewsPageConfigGetHierarchical = async (params?: GetNewsPageConfi
export
const
getGetNewsPageConfigGetHierarchicalInfiniteQueryKey
=
(
params
?:
GetNewsPageConfigGetHierarchicalParams
,)
=>
{
return
[
'infinite'
,
`/
N
ewsPageConfig/getHierarchical`
,
...(
params
?
[
params
]:
[])
'infinite'
,
`/
n
ewsPageConfig/getHierarchical`
,
...(
params
?
[
params
]:
[])
]
as
const
;
}
export
const
getGetNewsPageConfigGetHierarchicalQueryKey
=
(
params
?:
GetNewsPageConfigGetHierarchicalParams
,)
=>
{
return
[
`/
N
ewsPageConfig/getHierarchical`
,
...(
params
?
[
params
]:
[])
`/
n
ewsPageConfig/getHierarchical`
,
...(
params
?
[
params
]:
[])
]
as
const
;
}
...
...
@@ -801,7 +801,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetHierarchical
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetHierarchical
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigGetHierarchicalInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetHierarchical
>>>
...
...
@@ -876,7 +876,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetHierarchical
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetHierarchical
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigGetHierarchicalQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfigGetHierarchical
>>>
...
...
@@ -1002,7 +1002,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfig
>>>
...
...
@@ -1077,7 +1077,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsPageConfigQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsPageConfig
>>>
...
...
src/api/endpoints/news.ts
View file @
3d0df67f
...
...
@@ -112,7 +112,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsId
>>>
...
...
@@ -187,7 +187,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsId
>>>
...
...
@@ -480,7 +480,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsAdmin
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsAdmin
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsAdminInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsAdmin
>>>
...
...
@@ -555,7 +555,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsAdmin
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNewsAdmin
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsAdminQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNewsAdmin
>>>
...
...
@@ -688,7 +688,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNews
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNews
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNews
>>>
...
...
@@ -763,7 +763,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNews
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNews
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNewsQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNews
>>>
...
...
src/api/endpoints/notification.ts
View file @
3d0df67f
...
...
@@ -120,7 +120,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNotifications
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNotifications
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNotificationsInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNotifications
>>>
...
...
@@ -195,7 +195,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNotifications
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getNotifications
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetNotificationsQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getNotifications
>>>
...
...
src/api/endpoints/order.ts
View file @
3d0df67f
...
...
@@ -118,7 +118,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrderId
>>>
...
...
@@ -193,7 +193,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrderId
>>>
...
...
@@ -486,7 +486,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderGetMyOrders
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderGetMyOrders
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderGetMyOrdersInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrderGetMyOrders
>>>
...
...
@@ -561,7 +561,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderGetMyOrders
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderGetMyOrders
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderGetMyOrdersQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrderGetMyOrders
>>>
...
...
@@ -694,7 +694,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrder
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrder
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrder
>>>
...
...
@@ -769,7 +769,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrder
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrder
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrder
>>>
...
...
@@ -1061,7 +1061,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderPaymentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderPaymentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderPaymentIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrderPaymentId
>>>
...
...
@@ -1136,7 +1136,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderPaymentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderPaymentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderPaymentIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrderPaymentId
>>>
...
...
@@ -1510,7 +1510,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderPayment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderPayment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderPaymentInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrderPayment
>>>
...
...
@@ -1585,7 +1585,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderPayment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrderPayment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrderPaymentQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrderPayment
>>>
...
...
src/api/endpoints/organization-category.ts
View file @
3d0df67f
...
...
@@ -119,7 +119,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategoryIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryId
>>>
...
...
@@ -194,7 +194,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategoryIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryId
>>>
...
...
@@ -487,7 +487,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategoryInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategory
>>>
...
...
@@ -562,7 +562,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategoryQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategory
>>>
...
...
@@ -949,7 +949,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryOrgs
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryOrgs
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategoryOrgsInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryOrgs
>>>
...
...
@@ -1024,7 +1024,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryOrgs
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryOrgs
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategoryOrgsQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategoryOrgs
>>>
...
...
@@ -1150,7 +1150,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySubId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySubId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategorySubIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySubId
>>>
...
...
@@ -1225,7 +1225,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySubId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySubId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategorySubIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySubId
>>>
...
...
@@ -1518,7 +1518,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySub
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySub
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategorySubInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySub
>>>
...
...
@@ -1593,7 +1593,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySub
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySub
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetOrganizationCategorySubQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getOrganizationCategorySub
>>>
...
...
src/api/endpoints/organizations.ts
View file @
3d0df67f
This diff is collapsed.
Click to expand it.
src/api/endpoints/page-config.ts
View file @
3d0df67f
...
...
@@ -109,7 +109,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigGetAllLinks
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigGetAllLinks
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPageConfigGetAllLinksInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPageConfigGetAllLinks
>>>
...
...
@@ -184,7 +184,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigGetAllLinks
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigGetAllLinks
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPageConfigGetAllLinksQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPageConfigGetAllLinks
>>>
...
...
@@ -310,7 +310,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPageConfigInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPageConfig
>>>
...
...
@@ -385,7 +385,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPageConfigQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPageConfig
>>>
...
...
@@ -511,7 +511,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
code
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCodeGetByTabCode
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
code
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCodeGetByTabCode
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPageConfigTabCodeGetByTabCodeInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCodeGetByTabCode
>>>
...
...
@@ -586,7 +586,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
code
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCodeGetByTabCode
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
code
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCodeGetByTabCode
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPageConfigTabCodeGetByTabCodeQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCodeGetByTabCode
>>>
...
...
@@ -712,7 +712,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
code
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCode
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
code
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCode
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPageConfigTabCodeInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCode
>>>
...
...
@@ -787,7 +787,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
code
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCode
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
code
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCode
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPageConfigTabCodeQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPageConfigTabCode
>>>
...
...
src/api/endpoints/permision-function.ts
View file @
3d0df67f
...
...
@@ -113,7 +113,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionFunctionId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionFunctionId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPermisionFunctionIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPermisionFunctionId
>>>
...
...
@@ -188,7 +188,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionFunctionId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionFunctionId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPermisionFunctionIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPermisionFunctionId
>>>
...
...
@@ -481,7 +481,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionFunction
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionFunction
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPermisionFunctionInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPermisionFunction
>>>
...
...
@@ -556,7 +556,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionFunction
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionFunction
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPermisionFunctionQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPermisionFunction
>>>
...
...
src/api/endpoints/permisions.ts
View file @
3d0df67f
...
...
@@ -110,7 +110,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPermisionsIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPermisionsId
>>>
...
...
@@ -185,7 +185,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisionsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPermisionsIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPermisionsId
>>>
...
...
@@ -399,7 +399,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisions
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisions
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPermisionsInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPermisions
>>>
...
...
@@ -474,7 +474,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisions
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getPermisions
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetPermisionsQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getPermisions
>>>
...
...
src/api/endpoints/products.ts
View file @
3d0df67f
...
...
@@ -113,7 +113,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProductsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProductsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetProductsIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getProductsId
>>>
...
...
@@ -188,7 +188,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProductsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProductsId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetProductsIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getProductsId
>>>
...
...
@@ -481,7 +481,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProducts
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProducts
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetProductsInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getProducts
>>>
...
...
@@ -556,7 +556,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProducts
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProducts
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetProductsQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getProducts
>>>
...
...
@@ -936,7 +936,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
slug
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProductsSlugSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
slug
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProductsSlugSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetProductsSlugSlugInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getProductsSlugSlug
>>>
...
...
@@ -1011,7 +1011,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
slug
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProductsSlugSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
slug
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getProductsSlugSlug
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetProductsSlugSlugQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getProductsSlugSlug
>>>
...
...
src/api/endpoints/schedule.ts
View file @
3d0df67f
...
...
@@ -280,7 +280,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleGetMySchedule
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleGetMySchedule
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetScheduleGetMyScheduleInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getScheduleGetMySchedule
>>>
...
...
@@ -355,7 +355,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleGetMySchedule
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleGetMySchedule
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetScheduleGetMyScheduleQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getScheduleGetMySchedule
>>>
...
...
@@ -493,7 +493,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
eventId
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleGetScheduledTimeByEventEventId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
eventId
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleGetScheduledTimeByEventEventId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetScheduleGetScheduledTimeByEventEventIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getScheduleGetScheduledTimeByEventEventId
>>>
...
...
@@ -574,7 +574,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
eventId
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleGetScheduledTimeByEventEventId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
eventId
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleGetScheduledTimeByEventEventId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetScheduleGetScheduledTimeByEventEventIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getScheduleGetScheduledTimeByEventEventId
>>>
...
...
@@ -878,7 +878,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleManageMySchedule
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleManageMySchedule
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetScheduleManageMyScheduleInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getScheduleManageMySchedule
>>>
...
...
@@ -953,7 +953,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleManageMySchedule
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getScheduleManageMySchedule
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetScheduleManageMyScheduleQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getScheduleManageMySchedule
>>>
...
...
src/api/endpoints/statistic.ts
View file @
3d0df67f
...
...
@@ -114,7 +114,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticMemberByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticMemberByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatisticMemberByMonthInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatisticMemberByMonth
>>>
...
...
@@ -189,7 +189,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticMemberByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticMemberByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatisticMemberByMonthQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatisticMemberByMonth
>>>
...
...
@@ -322,7 +322,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticMembershipFeeByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticMembershipFeeByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatisticMembershipFeeByMonthInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatisticMembershipFeeByMonth
>>>
...
...
@@ -397,7 +397,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticMembershipFeeByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticMembershipFeeByMonth
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatisticMembershipFeeByMonthQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatisticMembershipFeeByMonth
>>>
...
...
@@ -530,7 +530,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticSiteAccess
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticSiteAccess
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatisticSiteAccessInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatisticSiteAccess
>>>
...
...
@@ -605,7 +605,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticSiteAccess
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticSiteAccess
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatisticSiteAccessQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatisticSiteAccess
>>>
...
...
@@ -731,7 +731,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticStatisticMembership
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticStatisticMembership
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatisticStatisticMembershipInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatisticStatisticMembership
>>>
...
...
@@ -806,7 +806,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticStatisticMembership
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatisticStatisticMembership
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatisticStatisticMembershipQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatisticStatisticMembership
>>>
...
...
src/api/endpoints/status.ts
View file @
3d0df67f
...
...
@@ -112,7 +112,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatus
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatus
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatusInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatus
>>>
...
...
@@ -187,7 +187,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatus
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getStatus
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetStatusQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getStatus
>>>
...
...
src/api/endpoints/user-department.ts
View file @
3d0df67f
...
...
@@ -113,7 +113,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserDepartmentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserDepartmentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetUserDepartmentIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getUserDepartmentId
>>>
...
...
@@ -188,7 +188,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserDepartmentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserDepartmentId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetUserDepartmentIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getUserDepartmentId
>>>
...
...
@@ -481,7 +481,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserDepartment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserDepartment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetUserDepartmentInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getUserDepartment
>>>
...
...
@@ -556,7 +556,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserDepartment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserDepartment
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetUserDepartmentQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getUserDepartment
>>>
...
...
src/api/endpoints/user-history.ts
View file @
3d0df67f
...
...
@@ -113,7 +113,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserHistoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserHistoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetUserHistoryIdInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getUserHistoryId
>>>
...
...
@@ -188,7 +188,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserHistoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
id
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserHistoryId
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetUserHistoryIdQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getUserHistoryId
>>>
...
...
@@ -481,7 +481,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserHistory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserHistory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetUserHistoryInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getUserHistory
>>>
...
...
@@ -556,7 +556,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserHistory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getUserHistory
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetUserHistoryQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getUserHistory
>>>
...
...
src/api/endpoints/users.ts
View file @
3d0df67f
This diff is collapsed.
Click to expand it.
src/api/endpoints/validator.ts
View file @
3d0df67f
...
...
@@ -269,7 +269,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
email
),
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getValidatorEmailExistsEmail
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
email
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getValidatorEmailExistsEmail
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetValidatorEmailExistsEmailInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getValidatorEmailExistsEmail
>>>
...
...
@@ -344,7 +344,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
email
),
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getValidatorEmailExistsEmail
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
enabled
:
!!
(
email
),
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getValidatorEmailExistsEmail
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetValidatorEmailExistsEmailQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getValidatorEmailExistsEmail
>>>
...
...
src/api/endpoints/website-config.ts
View file @
3d0df67f
...
...
@@ -119,7 +119,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseInfiniteQueryOptions
<
Awaited
<
ReturnType
<
typeof
getConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetConfigInfiniteQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getConfig
>>>
...
...
@@ -194,7 +194,7 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
return
{
queryKey
,
queryFn
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
return
{
queryKey
,
queryFn
,
retry
:
3
,
retryDelay
:
1000
,
...
queryOptions
}
as
UseQueryOptions
<
Awaited
<
ReturnType
<
typeof
getConfig
>>
,
TError
,
TData
>
&
{
queryKey
:
DataTag
<
QueryKey
,
TData
,
TError
>
}
}
export
type
GetConfigQueryResult
=
NonNullable
<
Awaited
<
ReturnType
<
typeof
getConfig
>>>
...
...
src/api/models/approvalRequest.ts
0 → 100644
View file @
3d0df67f
/**
* Generated by orval v8.0.0-rc.0 🍺
* Do not edit manually.
* VCCI
* Coded by Meu TEAM
* OpenAPI spec version: 1.0.0
*/
import
type
{
Approvals
}
from
'./approvals'
;
export
interface
ApprovalRequest
{
/** Event time */
event_time
:
string
;
/** Event location */
event_location
:
string
;
approvals
:
Approvals
[];
}
src/api/models/index.ts
View file @
3d0df67f
...
...
@@ -6,6 +6,7 @@
* OpenAPI spec version: 1.0.0
*/
export
*
from
'./approvalRequest'
;
export
*
from
'./approvals'
;
export
*
from
'./category'
;
export
*
from
'./categoryOrganization'
;
...
...
@@ -129,8 +130,14 @@ export * from './postCategoryBody';
export
*
from
'./postEventsIdExportJoinedOrgsMode'
;
export
*
from
'./postEventsIdExportJoinedOrgsParams'
;
export
*
from
'./postFilesBody'
;
export
*
from
'./postMembershipFeeCreateAccountsAndFeesBody'
;
export
*
from
'./postMembershipFeeCreateAccountsAndFeesBodyOrganizationsItem'
;
export
*
from
'./postOrganizationsAddMembershipFeesBody'
;
export
*
from
'./postOrganizationsAddMembershipFeesBodyFeesItem'
;
export
*
from
'./postOrganizationsCheckAccountsBody'
;
export
*
from
'./postOrganizationsExportOrgsWithInfoMode'
;
export
*
from
'./postOrganizationsExportOrgsWithInfoParams'
;
export
*
from
'./postUsersAdminCreateByTaxCodeBody'
;
export
*
from
'./postUsersAdminParams'
;
export
*
from
'./postUsersFavoriteAddBody'
;
export
*
from
'./postUsersFavoriteAddParams'
;
...
...
src/api/models/membershipFee.ts
View file @
3d0df67f
...
...
@@ -16,6 +16,8 @@ export interface MembershipFee {
image_evidence
?:
string
;
created_at
?:
string
;
is_approved
?:
boolean
;
invoice_number
?:
string
;
invoice_date
?:
string
;
updated_at
?:
string
;
updated_by
?:
string
;
}
src/api/models/news.ts
View file @
3d0df67f
...
...
@@ -18,6 +18,7 @@ export interface News {
is_active
?:
boolean
;
mode
?:
string
;
category
?:
string
;
page_config_id
?:
string
;
created_at
?:
string
;
updated_at
?:
string
;
}
src/api/models/postMembershipFeeCreateAccountsAndFeesBody.ts
0 → 100644
View file @
3d0df67f
/**
* Generated by orval v8.0.0-rc.0 🍺
* Do not edit manually.
* VCCI
* Coded by Meu TEAM
* OpenAPI spec version: 1.0.0
*/
import
type
{
PostMembershipFeeCreateAccountsAndFeesBodyOrganizationsItem
}
from
'./postMembershipFeeCreateAccountsAndFeesBodyOrganizationsItem'
;
export
type
PostMembershipFeeCreateAccountsAndFeesBody
=
{
/** Mảng các organization cần tạo tài khoản với thông tin phí riêng */
organizations
?:
PostMembershipFeeCreateAccountsAndFeesBodyOrganizationsItem
[];
};
src/api/models/postMembershipFeeCreateAccountsAndFeesBodyOrganizationsItem.ts
0 → 100644
View file @
3d0df67f
/**
* Generated by orval v8.0.0-rc.0 🍺
* Do not edit manually.
* VCCI
* Coded by Meu TEAM
* OpenAPI spec version: 1.0.0
*/
export
type
PostMembershipFeeCreateAccountsAndFeesBodyOrganizationsItem
=
{
name
?:
string
;
tax_code
?:
string
;
/** Mã số hội viên (MSHV) */
member_code
?:
string
;
amount_paid
?:
number
;
invoice_number
?:
string
;
invoice_date
?:
string
;
};
src/api/models/postOrganizationsAddMembershipFeesBody.ts
0 → 100644
View file @
3d0df67f
/**
* Generated by orval v8.0.0-rc.0 🍺
* Do not edit manually.
* VCCI
* Coded by Meu TEAM
* OpenAPI spec version: 1.0.0
*/
import
type
{
PostOrganizationsAddMembershipFeesBodyFeesItem
}
from
'./postOrganizationsAddMembershipFeesBodyFeesItem'
;
export
type
PostOrganizationsAddMembershipFeesBody
=
{
/** Mảng các phí membership cần thêm theo tax_code */
fees
?:
PostOrganizationsAddMembershipFeesBodyFeesItem
[];
};
src/api/models/postOrganizationsAddMembershipFeesBodyFeesItem.ts
0 → 100644
View file @
3d0df67f
/**
* Generated by orval v8.0.0-rc.0 🍺
* Do not edit manually.
* VCCI
* Coded by Meu TEAM
* OpenAPI spec version: 1.0.0
*/
export
type
PostOrganizationsAddMembershipFeesBodyFeesItem
=
{
tax_code
?:
string
;
amount_paid
?:
number
;
invoice_number
?:
string
;
invoice_date
?:
string
;
};
src/api/models/postOrganizationsCheckAccountsBody.ts
0 → 100644
View file @
3d0df67f
/**
* Generated by orval v8.0.0-rc.0 🍺
* Do not edit manually.
* VCCI
* Coded by Meu TEAM
* OpenAPI spec version: 1.0.0
*/
export
type
PostOrganizationsCheckAccountsBody
=
{
/** Mảng các mã số thuế cần kiểm tra */
tax_codes
?:
string
[];
};
src/api/models/postUsersAdminCreateByTaxCodeBody.ts
0 → 100644
View file @
3d0df67f
/**
* Generated by orval v8.0.0-rc.0 🍺
* Do not edit manually.
* VCCI
* Coded by Meu TEAM
* OpenAPI spec version: 1.0.0
*/
export
type
PostUsersAdminCreateByTaxCodeBody
=
{
/** Mã số thuế của tổ chức */
tax_code
?:
string
;
};
src/api/models/userOrg.ts
View file @
3d0df67f
...
...
@@ -41,6 +41,7 @@ export interface UserOrg {
previous_revenue
?:
number
;
social_media_info
?:
string
;
question
?:
string
;
assigned_user_id
?:
string
;
province
?:
string
[];
description
?:
string
;
type
?:
string
;
...
...
src/app/(main)/[...slug]/page.tsx
View file @
3d0df67f
...
...
@@ -11,6 +11,7 @@ import ArticlePage from "./templates/ArticlePage";
import
ArticleDetailPage
from
"./templates/ArticleDetailPage"
;
import
EventPage
from
"./templates/EventPage"
;
import
EventDetailPage
from
"./templates/EventDetailPage"
;
import
{
Spinner
}
from
"@/components/ui"
;
export
default
function
DynamicPage
()
{
const
params
=
useParams
();
...
...
@@ -19,7 +20,7 @@ export default function DynamicPage() {
const
path
=
slug
.
join
(
"/"
);
// query
const
{
data
:
category
}
=
useGetNewsPageConfigGetHierarchical
<
GetNewsPageConfigResponseType
>
({
const
{
data
:
category
,
isLoading
,
isError
}
=
useGetNewsPageConfigGetHierarchical
<
GetNewsPageConfigResponseType
>
({
static_link
:
`/
${
path
}
`
,
});
...
...
@@ -41,15 +42,28 @@ export default function DynamicPage() {
}
if
(
slug
[
0
]
===
"hoat-dong"
&&
slug
[
1
]
===
"su-kien"
)
{
if
(
slug
.
length
===
2
)
return
<
EventPage
/>;
if
(
slug
.
length
===
2
)
return
<
EventPage
isError=
{
isError
}
isLoading=
{
isLoading
}
/>;
if
(
slug
.
length
===
3
)
return
<
EventDetailPage
/>;
}
if
(
slug
.
length
===
2
)
{
return
category
?.
responseData
?.
is_article
?
<
ArticlePage
/>
:
<
InformationPage
/>;
return
category
?.
responseData
?.
is_article
?
<
ArticlePage
isError=
{
isError
}
isLoading=
{
isLoading
}
/>
:
<
InformationPage
isError=
{
isError
}
isLoading=
{
isLoading
}
/>;
}
if
(
slug
.
length
===
3
)
{
return
<
ArticleDetailPage
/>;
}
// not found page
if
(
isLoading
)
{
return
(
<
div
className=
"flex justify-center items-center w-full h-64"
>
<
Spinner
/>
</
div
>
);
}
if
(
isError
)
{
return
notFound
();
}
}
src/app/(main)/[...slug]/templates/ArticleDetailPage.tsx
View file @
3d0df67f
...
...
@@ -26,7 +26,8 @@ export default function ArticleDetailPage() {
filters
:
`external_link==/
${
path
}
`
,
});
if
(
data
?.
responseData
?.
rows
.
length
===
0
&&
!
isLoading
)
{
// template
if
(
!
isLoading
&&
(
!
data
?.
responseData
?.
rows
||
data
.
responseData
.
rows
.
length
===
0
))
{
return
notFound
();
}
return
(
...
...
src/app/(main)/[...slug]/templates/ArticlePage.tsx
View file @
3d0df67f
...
...
@@ -13,7 +13,7 @@ import EventCalendar from "@/components/base/event-calendar";
import
{
useState
,
useEffect
}
from
"react"
;
import
{
Spinner
}
from
"@/components/ui"
;
export
default
function
ArticlePage
()
{
export
default
function
ArticlePage
(
{
isError
,
isLoading
}:
{
isError
:
boolean
,
isLoading
:
boolean
}
)
{
// get url
const
params
=
useParams
();
const
slug
=
Array
.
isArray
(
params
.
slug
)
?
params
.
slug
:
[
params
.
slug
];
...
...
@@ -45,18 +45,23 @@ export default function ArticlePage() {
code
:
slug
[
0
],
});
const
{
data
,
i
sLoading
}
=
useGetNews
<
GetNewsResponseType
>
({
const
{
data
:
articles
,
isLoading
:
article
sLoading
}
=
useGetNews
<
GetNewsResponseType
>
({
filters
:
`page_config.static_link==/
${
path
}
`
+
(
submitSearch
?
`,title@=
${
submitSearch
}
`
:
""
),
pageSize
:
String
(
pageSize
),
currentPage
:
String
(
page
),
});
if
(
data
?.
responseData
?.
rows
.
length
===
0
&&
!
isLoading
)
{
return
notFound
();
}
//template
if
(
isLoading
)
return
(
<
div
className=
"flex justify-center items-center w-full h-64"
>
<
Spinner
/>
</
div
>
);
if
(
isError
)
return
notFound
();
return
(
<
div
className=
"min-h-screen container mx-auto"
>
{
i
sLoading
?
(
{
article
sLoading
?
(
<
div
className=
"flex justify-center items-center w-full h-64"
>
<
Spinner
/>
</
div
>
...
...
@@ -66,7 +71,7 @@ export default function ArticlePage() {
<
div
className=
"grid grid-cols-1 lg:grid-cols-3 gap-6"
>
<
main
className=
"lg:col-span-2 bg-background"
>
<
div
className=
"pb-5 overflow-hidden"
>
{
data
?.
responseData
?.
rows
.
map
((
item
)
=>
(
{
articles
?.
responseData
?.
rows
.
map
((
item
)
=>
(
<
CardNews
key=
{
item
.
id
}
news=
{
item
}
...
...
@@ -75,12 +80,12 @@ export default function ArticlePage() {
))
}
<
div
className=
"w-full flex justify-center mt-4"
>
<
Pagination
pageCount=
{
Number
(
data
?.
responseData
?.
totalPages
??
1
)
}
page=
{
Number
(
data
?.
responseData
?.
currentPage
??
page
)
}
pageCount=
{
Number
(
articles
?.
responseData
?.
totalPages
??
1
)
}
page=
{
Number
(
articles
?.
responseData
?.
currentPage
??
page
)
}
onChangePage=
{
setPage
}
onGoToPreviousPage=
{
()
=>
setPage
(
Math
.
max
(
1
,
page
-
1
))
}
onGoToNextPage=
{
()
=>
setPage
(
Math
.
min
(
Number
(
data
?.
responseData
?.
totalPages
??
1
),
page
+
1
))
setPage
(
Math
.
min
(
Number
(
articles
?.
responseData
?.
totalPages
??
1
),
page
+
1
))
}
/>
</
div
>
...
...
src/app/(main)/[...slug]/templates/EventDetailPage.tsx
View file @
3d0df67f
...
...
@@ -33,10 +33,10 @@ export default function EventDetailPage() {
filters
:
`id==
${
lastpath
}
`
,
});
if
(
eventsDetail
?.
responseData
?.
rows
.
length
===
0
&&
!
isLoading
)
{
// template
if
(
!
isLoading
&&
(
!
eventsDetail
?.
responseData
?.
rows
||
eventsDetail
.
responseData
.
rows
.
length
===
0
))
{
return
notFound
();
}
return
(
<
div
className=
'container w-full flex justify-center items-center pb-10'
>
{
isLoading
?
(
...
...
src/app/(main)/[...slug]/templates/EventPage.tsx
View file @
3d0df67f
...
...
@@ -15,7 +15,7 @@ import { Pagination } from "@/components/base/pagination";
import
ListFilter
from
"@/components/base/list-filter"
;
import
EventCalendar
from
"@/components/base/event-calendar"
;
export
default
function
EventPage
()
{
export
default
function
EventPage
(
{
isError
,
isLoading
}:
{
isError
:
boolean
,
isLoading
:
boolean
}
)
{
// get url
const
params
=
useParams
();
const
slug
=
Array
.
isArray
(
params
.
slug
)
?
params
.
slug
:
[
params
.
slug
];
...
...
@@ -46,21 +46,24 @@ export default function EventPage() {
code
:
`
${
slug
[
0
]}
`
,
});
const
{
data
:
events
,
isLoading
}
=
useGetEvents
<
EventApiResponse
>
({
const
{
data
:
events
,
isLoading
:
eventsLoading
}
=
useGetEvents
<
EventApiResponse
>
({
filters
:
`name@=
${
submitSearch
?
`title@=
${
submitSearch
}
`
:
""
}
`
,
pageSize
:
String
(
pageSize
),
currentPage
:
String
(
page
),
});
if
(
events
?.
responseData
?.
rows
.
length
===
0
&&
!
isLoading
)
{
return
notFound
();
}
//template
if
(
isLoading
)
return
(
<
div
className=
"flex justify-center items-center w-full h-64"
>
<
Spinner
/>
</
div
>
);
if
(
isError
)
return
notFound
();
return
(
<>
<
div
className=
"min-h-screen container mx-auto"
>
{
i
sLoading
?
(
{
event
sLoading
?
(
<
div
className=
"flex justify-center items-center w-full h-64"
>
<
Spinner
/>
</
div
>
...
...
src/app/(main)/[...slug]/templates/InformationPage.tsx
View file @
3d0df67f
...
...
@@ -10,49 +10,53 @@ import { useGetNews } from "@/api/endpoints/news";
import
dayjs
from
"dayjs"
;
import
parse
from
"html-react-parser"
;
import
{
notFound
}
from
"next/navigation"
;
import
{
is
}
from
"date-fns/locale"
;
export
default
function
InformationPage
()
{
export
default
function
InformationPage
(
{
isError
,
isLoading
}:
{
isError
:
boolean
,
isLoading
:
boolean
}
)
{
// get url
const
params
=
useParams
();
const
slug
=
Array
.
isArray
(
params
.
slug
)
?
params
.
slug
:
[
params
.
slug
];
const
path
=
slug
.
join
(
"/"
);
// query
const
{
data
:
category
}
=
useGetNewsPageConfigGetHierarchical
<
GetNewsPageConfigResponseType
>
({
const
{
data
:
category
Page
}
=
useGetNewsPageConfigGetHierarchical
<
GetNewsPageConfigResponseType
>
({
static_link
:
`/
${
slug
[
0
]}
`
,
});
const
{
data
,
is
Loading
}
=
useGetNews
<
GetNewsResponseType
>
({
const
{
data
:
information
,
isLoading
:
information
Loading
}
=
useGetNews
<
GetNewsResponseType
>
({
filters
:
`page_config.static_link==/
${
path
}
`
,
});
if
(
data
?.
responseData
?.
rows
.
length
===
0
&&
!
isLoading
)
{
return
notFound
();
}
//template
if
(
isLoading
)
return
(
<
div
className=
"flex justify-center items-center w-full h-64"
>
<
Spinner
/>
</
div
>
);
if
(
isError
)
return
notFound
();
return
(
<
div
className=
'container w-full flex justify-center items-center pb-10'
>
{
i
s
Loading
?
(
{
i
nformation
Loading
?
(
<
div
className=
"flex justify-center items-center w-full h-64"
>
<
Spinner
/>
</
div
>
)
:
(
<
div
className=
'flex flex-col gap-5 w-full'
>
<
ListCategory
categories=
{
category
?.
responseData
?.
children
}
/>
<
ListCategory
categories=
{
category
Page
?.
responseData
?.
children
}
/>
<
main
className=
" bg-white border rounded-md py-10 px-5 md:px-20 lg:px-20"
>
<
div
className=
'text-primary text-2xl leading-normal font-bold'
>
{
data
?.
responseData
?.
rows
[
0
]?.
title
}
{
information
?.
responseData
?.
rows
[
0
]?.
title
}
</
div
>
{
/* <div className='flex items-center gap-2 text-sm mb-4'>
<span className='text-base text-blue-700'>
{dayjs(
data
?.responseData?.rows[0].created_at).format('DD/MM/YYYY')}
{dayjs(
information
?.responseData?.rows[0].created_at).format('DD/MM/YYYY')}
</span>
</div> */
}
<
hr
className=
"my-5"
/>
<
div
className=
'flex-1 text-app-grey text-base overflow-hidden'
>
<
div
className=
"prose tiptap overflow-hidden"
>
{
parse
(
data
?.
responseData
?.
rows
[
0
]?.
description
??
''
)
}
{
parse
(
information
?.
responseData
?.
rows
[
0
]?.
description
??
''
)
}
</
div
>
</
div
>
</
main
>
...
...
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