Skip to content

Commit

Permalink
セッションチェックインページのセッション切り替えにスポンサー名を使うよう変更
Browse files Browse the repository at this point in the history
  • Loading branch information
takaishi committed Aug 3, 2024
1 parent 1b0e300 commit 340a4a0
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 6 deletions.
12 changes: 6 additions & 6 deletions schemas/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,8 @@ paths:
description: Invalid params supplied
'404':
description: Booth not found
# dreamkast function
/api/v1/profile/{profileId}/points:
# dreamkast function
/api/v1/profile/{profileId}/points:
get:
tags:
- Point
Expand Down Expand Up @@ -567,7 +567,7 @@ paths:
schema:
type: "string"
content: {}
/api/v1/talks/{talkId}/vote:
/api/v1/talks/{talkId}/vote:
post:
tags:
- Vote
Expand Down Expand Up @@ -653,7 +653,7 @@ paths:
schema:
type: "string"
content: {}
/api/v1/profile/{profileId}/point:
/api/v1/profile/{profileId}/point:
post:
tags:
- Point
Expand Down Expand Up @@ -755,7 +755,7 @@ paths:
schema:
type: "string"
content: {}
/api/v1/app-data/{profileId}/conference/{conference}:
/api/v1/app-data/{profileId}/conference/{conference}:
get:
tags:
- DkUiData
Expand Down Expand Up @@ -914,7 +914,7 @@ paths:
schema:
type: "string"
content: {}
/api/v1/tracks/{trackId}/viewer_count:
/api/v1/tracks/{trackId}/viewer_count:
get:
tags:
- ViewerCount
Expand Down
231 changes: 231 additions & 0 deletions src/generated/dreamkast-api.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export const addTagTypes = [
'ChatMessage',
'Sponsor',
'Booth',
'Point',
'Vote',
'DkUiData',
'ViewerCount',
] as const
const injectedRtkApi = api
.enhanceEndpoints({
Expand Down Expand Up @@ -214,6 +218,112 @@ const injectedRtkApi = api
query: (queryArg) => ({ url: `/api/v1/booths/${queryArg.boothId}` }),
providesTags: ['Booth'],
}),
getApiV1ProfileByProfileIdPoints: build.query<
GetApiV1ProfileByProfileIdPointsApiResponse,
GetApiV1ProfileByProfileIdPointsApiArg
>({
query: (queryArg) => ({
url: `/api/v1/profile/${queryArg.profileId}/points`,
params: { conference: queryArg.conference },
}),
providesTags: ['Point'],
}),
optionsApiV1ProfileByProfileIdPoints: build.mutation<
OptionsApiV1ProfileByProfileIdPointsApiResponse,
OptionsApiV1ProfileByProfileIdPointsApiArg
>({
query: (queryArg) => ({
url: `/api/v1/profile/${queryArg.profileId}/points`,
method: 'OPTIONS',
}),
}),
postApiV1TalksByTalkIdVote: build.mutation<
PostApiV1TalksByTalkIdVoteApiResponse,
PostApiV1TalksByTalkIdVoteApiArg
>({
query: (queryArg) => ({
url: `/api/v1/talks/${queryArg.talkId}/vote`,
method: 'POST',
body: queryArg.vote,
}),
invalidatesTags: ['Vote'],
}),
optionsApiV1TalksByTalkIdVote: build.mutation<
OptionsApiV1TalksByTalkIdVoteApiResponse,
OptionsApiV1TalksByTalkIdVoteApiArg
>({
query: (queryArg) => ({
url: `/api/v1/talks/${queryArg.talkId}/vote`,
method: 'OPTIONS',
}),
}),
postApiV1ProfileByProfileIdPoint: build.mutation<
PostApiV1ProfileByProfileIdPointApiResponse,
PostApiV1ProfileByProfileIdPointApiArg
>({
query: (queryArg) => ({
url: `/api/v1/profile/${queryArg.profileId}/point`,
method: 'POST',
body: queryArg.profilePoint,
}),
invalidatesTags: ['Point'],
}),
optionsApiV1ProfileByProfileIdPoint: build.mutation<
OptionsApiV1ProfileByProfileIdPointApiResponse,
OptionsApiV1ProfileByProfileIdPointApiArg
>({
query: (queryArg) => ({
url: `/api/v1/profile/${queryArg.profileId}/point`,
method: 'OPTIONS',
}),
}),
getApiV1AppDataByProfileIdConferenceAndConference: build.query<
GetApiV1AppDataByProfileIdConferenceAndConferenceApiResponse,
GetApiV1AppDataByProfileIdConferenceAndConferenceApiArg
>({
query: (queryArg) => ({
url: `/api/v1/app-data/${queryArg.profileId}/conference/${queryArg.conference}`,
}),
providesTags: ['DkUiData'],
}),
postApiV1AppDataByProfileIdConferenceAndConference: build.mutation<
PostApiV1AppDataByProfileIdConferenceAndConferenceApiResponse,
PostApiV1AppDataByProfileIdConferenceAndConferenceApiArg
>({
query: (queryArg) => ({
url: `/api/v1/app-data/${queryArg.profileId}/conference/${queryArg.conference}`,
method: 'POST',
body: queryArg.dkUiDataMutation,
}),
invalidatesTags: ['DkUiData'],
}),
optionsApiV1AppDataByProfileIdConferenceAndConference: build.mutation<
OptionsApiV1AppDataByProfileIdConferenceAndConferenceApiResponse,
OptionsApiV1AppDataByProfileIdConferenceAndConferenceApiArg
>({
query: (queryArg) => ({
url: `/api/v1/app-data/${queryArg.profileId}/conference/${queryArg.conference}`,
method: 'OPTIONS',
}),
}),
getApiV1TracksByTrackIdViewerCount: build.query<
GetApiV1TracksByTrackIdViewerCountApiResponse,
GetApiV1TracksByTrackIdViewerCountApiArg
>({
query: (queryArg) => ({
url: `/api/v1/tracks/${queryArg.trackId}/viewer_count`,
}),
providesTags: ['ViewerCount'],
}),
optionsApiV1TracksByTrackIdViewerCount: build.mutation<
OptionsApiV1TracksByTrackIdViewerCountApiResponse,
OptionsApiV1TracksByTrackIdViewerCountApiArg
>({
query: (queryArg) => ({
url: `/api/v1/tracks/${queryArg.trackId}/viewer_count`,
method: 'OPTIONS',
}),
}),
}),
overrideExisting: false,
})
Expand Down Expand Up @@ -333,6 +443,64 @@ export type GetApiV1BoothsByBoothIdApiArg = {
/** ID of booth */
boothId: string
}
export type GetApiV1ProfileByProfileIdPointsApiResponse =
/** status 200 200 response */ ProfilePointsResponse
export type GetApiV1ProfileByProfileIdPointsApiArg = {
conference: string
profileId: string
}
export type OptionsApiV1ProfileByProfileIdPointsApiResponse = unknown
export type OptionsApiV1ProfileByProfileIdPointsApiArg = {
profileId: string
}
export type PostApiV1TalksByTalkIdVoteApiResponse =
/** status 200 200 response */ CommonResponse
export type PostApiV1TalksByTalkIdVoteApiArg = {
talkId: string
vote: VoteResponse
}
export type OptionsApiV1TalksByTalkIdVoteApiResponse = unknown
export type OptionsApiV1TalksByTalkIdVoteApiArg = {
talkId: string
}
export type PostApiV1ProfileByProfileIdPointApiResponse =
/** status 200 200 response */ CommonResponse
export type PostApiV1ProfileByProfileIdPointApiArg = {
profileId: string
profilePoint: ProfilePointRequest
}
export type OptionsApiV1ProfileByProfileIdPointApiResponse = unknown
export type OptionsApiV1ProfileByProfileIdPointApiArg = {
profileId: string
}
export type GetApiV1AppDataByProfileIdConferenceAndConferenceApiResponse =
/** status 200 200 response */ DkUiData
export type GetApiV1AppDataByProfileIdConferenceAndConferenceApiArg = {
profileId: string
conference: string
}
export type PostApiV1AppDataByProfileIdConferenceAndConferenceApiResponse =
/** status 200 200 response */ CommonResponse
export type PostApiV1AppDataByProfileIdConferenceAndConferenceApiArg = {
profileId: string
conference: string
dkUiDataMutation: DkUiDataMutation
}
export type OptionsApiV1AppDataByProfileIdConferenceAndConferenceApiResponse =
unknown
export type OptionsApiV1AppDataByProfileIdConferenceAndConferenceApiArg = {
profileId: string
conference: string
}
export type GetApiV1TracksByTrackIdViewerCountApiResponse =
/** status 200 200 response */ ViewerCountResponse
export type GetApiV1TracksByTrackIdViewerCountApiArg = {
trackId: string
}
export type OptionsApiV1TracksByTrackIdViewerCountApiResponse = unknown
export type OptionsApiV1TracksByTrackIdViewerCountApiArg = {
trackId: string
}
export type RegisteredTalk = {
talkId?: number | undefined
talkTitle?: string | undefined
Expand Down Expand Up @@ -522,6 +690,58 @@ export type Booth = {
}[]
keyImageUrls: string[]
}
export type ProfilePointsResponse = {
total: number
points: {
conference: string
pointEventId: string
point?: number | undefined
timestamp?: number | undefined
desc?: string | undefined
}[]
}
export type ErrorSchema = {
message?: string | undefined
}
export type CommonResponse = {
message?: string | undefined
status?: string | undefined
[key: string]: any
}
export type VoteResponse = {
eventAbbr: string
}
export type ProfilePointRequest = {
conference: string
pointEventId: string
}
export type DkUiData = {
watchedTalksOnline: {
watchingTime?:
| {
[key: string]: any
}
| undefined
prevTimestamp?: number | undefined
}
stampChallenges: {
condition?: string | undefined
waiting: boolean
slotId: number
timestamp?: number | undefined
}[]
[key: string]: any
}
export type DkUiDataMutation = {
payload: {
[key: string]: any
}
action: string
}
export type ViewerCountResponse = {
trackId: number
viewerCount: number
}
export const {
useGetApiV1ByEventAbbrMyProfileQuery,
usePostApiV1CheckInEventsMutation,
Expand All @@ -543,4 +763,15 @@ export const {
usePutApiV1ChatMessagesByMessageIdMutation,
useGetApiV1SponsorsQuery,
useGetApiV1BoothsByBoothIdQuery,
useGetApiV1ProfileByProfileIdPointsQuery,
useOptionsApiV1ProfileByProfileIdPointsMutation,
usePostApiV1TalksByTalkIdVoteMutation,
useOptionsApiV1TalksByTalkIdVoteMutation,
usePostApiV1ProfileByProfileIdPointMutation,
useOptionsApiV1ProfileByProfileIdPointMutation,
useGetApiV1AppDataByProfileIdConferenceAndConferenceQuery,
usePostApiV1AppDataByProfileIdConferenceAndConferenceMutation,
useOptionsApiV1AppDataByProfileIdConferenceAndConferenceMutation,
useGetApiV1TracksByTrackIdViewerCountQuery,
useOptionsApiV1TracksByTrackIdViewerCountMutation,
} = injectedRtkApi

0 comments on commit 340a4a0

Please sign in to comment.