Merge remote-tracking branch 'origin/main' into feat/weather-game
# Conflicts: # frontend/src/b/Sheets.tsx # frontend/src/b/sheetContext.ts
This commit is contained in:
commit
7d097a05de
99 files changed
+3230
-41
No files matched your search
@@ -3,8 +3,8 @@
|
||||
import { type DefaultError, type InfiniteData, infiniteQueryOptions, queryOptions, type UseMutationOptions } from '@tanstack/react-query';
|
||||
|
||||
import { client } from '../client.gen';
|
||||
import { addComment, addMyGak, addTalk, agreeTerms, authConfig, blockAuthor, blockTalkAuthor, createCard, createReel, deleteComment, deleteMyGak, deleteTalk, getArticle, getCardImage, getFeed, getImage, getIndex, getPost, getReelCover, getReelVideo, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, likeComment, likePost, likeTalk, listArticles, listBlocked, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listReels, listRegions, listSaved, listShorts, listTalks, login, logout, me, nearestRegion, type Options, publishCard, publishInstagram, publishInstagram2, refresh, rejectCard, reportComment, reportTalk, savePost, scoreMyGak, signup, talkGroups, toss, tossUnlink, unblock, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage, withdraw } from '../sdk.gen';
|
||||
import type { AddCommentData, AddCommentError, AddCommentResponse, AddMyGakData, AddMyGakError, AddMyGakResponse, AddTalkData, AddTalkError, AddTalkResponse, AgreeTermsData, AgreeTermsError, AgreeTermsResponse, AuthConfigData, AuthConfigResponse, BlockAuthorData, BlockAuthorError, BlockAuthorResponse, BlockTalkAuthorData, BlockTalkAuthorError, BlockTalkAuthorResponse, CreateCardData, CreateCardError, CreateCardResponse, CreateReelData, CreateReelError, CreateReelResponse, DeleteCommentData, DeleteCommentError, DeleteCommentResponse, DeleteMyGakData, DeleteMyGakError, DeleteMyGakResponse, DeleteTalkData, DeleteTalkError, DeleteTalkResponse, GetArticleData, GetArticleError, GetArticleResponse, GetCardImageData, GetCardImageError, GetFeedData, GetFeedError, GetFeedResponse, GetImageData, GetImageError, GetIndexData, GetIndexError, GetIndexResponse, GetPostData, GetPostError, GetPostResponse, GetReelCoverData, GetReelCoverError, GetReelVideoData, GetReelVideoError, GetSeasonWeekData, GetSeasonWeekResponse, GetSkyData, GetSkyError, GetSkyRankingData, GetSkyRankingResponse, GetSkyResponse, GetTalkImageData, GetTalkImageError, GetTodayGuPageData, GetTodayGuPageError, GetTodayGuPageResponse, GetTodayPageData, GetTodayPageError, GetTodayPageResponse, GetTomorrowGuPageData, GetTomorrowGuPageError, GetTomorrowGuPageResponse, GetTomorrowPageData, GetTomorrowPageError, GetTomorrowPageResponse, GetWatchSummaryData, GetWatchSummaryError, GetWatchSummaryResponse, GetWeatherNowData, GetWeatherNowError, GetWeatherNowResponse, GetWeatherTodayData, GetWeatherTodayError, GetWeatherTodayResponse, GetWeekData, GetWeekError, GetWeekRankingData, GetWeekRankingResponse, GetWeekResponse, GoogleLoginData, GoogleLoginError, GoogleLoginResponse, HealthzHealthzGetData, HealthzHealthzGetResponse, LikeCommentData, LikeCommentError, LikeCommentResponse, LikePostData, LikePostError, LikePostResponse, LikeTalkData, LikeTalkError, LikeTalkResponse, ListArticlesData, ListArticlesError, ListArticlesResponse, ListBlockedData, ListBlockedError, ListBlockedResponse, ListCardsData, ListCardsError, ListCardsResponse, ListCommentsData, ListCommentsError, ListCommentsResponse, ListEventsData, ListEventsError, ListEventsResponse, ListIndicesData, ListIndicesError, ListIndicesResponse, ListMyGakData, ListMyGakError, ListMyGakResponse, ListMyTalksData, ListMyTalksError, ListMyTalksResponse, ListPlacesData, ListPlacesError, ListPlacesResponse, ListPresetsData, ListPresetsResponse, ListReelsData, ListReelsError, ListReelsResponse, ListRegionsData, ListRegionsError, ListRegionsResponse, ListSavedData, ListSavedError, ListSavedResponse, ListShortsData, ListShortsResponse, ListTalksData, ListTalksError, ListTalksResponse, LoginData, LoginError, LoginResponse, LogoutData, LogoutError, LogoutResponse, MeData, MeError, MeResponse, NearestRegionData, NearestRegionError, NearestRegionResponse, PublishCardData, PublishCardError, PublishCardResponse, PublishInstagram2Data, PublishInstagram2Error, PublishInstagram2Response, PublishInstagramData, PublishInstagramError, PublishInstagramResponse, RefreshData, RefreshError, RefreshResponse, RejectCardData, RejectCardError, RejectCardResponse, ReportCommentData, ReportCommentError, ReportCommentResponse, ReportTalkData, ReportTalkError, ReportTalkResponse, SavePostData, SavePostError, SavePostResponse, ScoreMyGakData, ScoreMyGakError, ScoreMyGakResponse, SignupData, SignupError, SignupResponse, TalkGroupsData, TalkGroupsError, TalkGroupsResponse, TossData, TossError, TossResponse, TossUnlinkData, TossUnlinkError, TossUnlinkResponse, UnblockData, UnblockError, UnblockResponse, UnlikeCommentData, UnlikeCommentError, UnlikeCommentResponse, UnlikePostData, UnlikePostError, UnlikePostResponse, UnlikeTalkData, UnlikeTalkError, UnlikeTalkResponse, UnsavePostData, UnsavePostError, UnsavePostResponse, UpdateMeData, UpdateMeError, UpdateMeResponse, UploadTalkImageData, UploadTalkImageError, UploadTalkImageResponse, WithdrawData, WithdrawError, WithdrawResponse } from '../types.gen';
|
||||
import { addComment, addMyGak, addTalk, agreeTerms, attend, authConfig, blockAuthor, blockTalkAuthor, createCard, createReel, deleteComment, deleteMyGak, deleteTalk, drawFortune, getArticle, getCardImage, getFeed, getFortuneToday, getImage, getIndex, getPost, getReelCover, getReelVideo, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, importFortune, latestCard, likeComment, likePost, likeTalk, listArticles, listBlocked, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listReels, listRegions, listSaved, listShorts, listTalks, login, logout, me, myLevel, nearestRegion, type Options, publishCard, publishInstagram, publishInstagram2, refresh, rejectCard, reportComment, reportTalk, saveDayLog, savePost, scoreMyGak, searchFortunePlaces, shared, signup, talkGroups, toss, tossUnlink, unblock, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage, withdraw } from '../sdk.gen';
|
||||
import type { AddCommentData, AddCommentError, AddCommentResponse, AddMyGakData, AddMyGakError, AddMyGakResponse, AddTalkData, AddTalkError, AddTalkResponse, AgreeTermsData, AgreeTermsError, AgreeTermsResponse, AttendData, AttendError, AttendResponse, AuthConfigData, AuthConfigResponse, BlockAuthorData, BlockAuthorError, BlockAuthorResponse, BlockTalkAuthorData, BlockTalkAuthorError, BlockTalkAuthorResponse, CreateCardData, CreateCardError, CreateCardResponse, CreateReelData, CreateReelError, CreateReelResponse, DeleteCommentData, DeleteCommentError, DeleteCommentResponse, DeleteMyGakData, DeleteMyGakError, DeleteMyGakResponse, DeleteTalkData, DeleteTalkError, DeleteTalkResponse, DrawFortuneData, DrawFortuneError, DrawFortuneResponse, GetArticleData, GetArticleError, GetArticleResponse, GetCardImageData, GetCardImageError, GetFeedData, GetFeedError, GetFeedResponse, GetFortuneTodayData, GetFortuneTodayError, GetFortuneTodayResponse, GetImageData, GetImageError, GetIndexData, GetIndexError, GetIndexResponse, GetPostData, GetPostError, GetPostResponse, GetReelCoverData, GetReelCoverError, GetReelVideoData, GetReelVideoError, GetSeasonWeekData, GetSeasonWeekResponse, GetSkyData, GetSkyError, GetSkyRankingData, GetSkyRankingResponse, GetSkyResponse, GetTalkImageData, GetTalkImageError, GetTodayGuPageData, GetTodayGuPageError, GetTodayGuPageResponse, GetTodayPageData, GetTodayPageError, GetTodayPageResponse, GetTomorrowGuPageData, GetTomorrowGuPageError, GetTomorrowGuPageResponse, GetTomorrowPageData, GetTomorrowPageError, GetTomorrowPageResponse, GetWatchSummaryData, GetWatchSummaryError, GetWatchSummaryResponse, GetWeatherNowData, GetWeatherNowError, GetWeatherNowResponse, GetWeatherTodayData, GetWeatherTodayError, GetWeatherTodayResponse, GetWeekData, GetWeekError, GetWeekRankingData, GetWeekRankingResponse, GetWeekResponse, GoogleLoginData, GoogleLoginError, GoogleLoginResponse, HealthzHealthzGetData, HealthzHealthzGetResponse, ImportFortuneData, ImportFortuneError, ImportFortuneResponse, LatestCardData, LatestCardError, LatestCardResponse, LikeCommentData, LikeCommentError, LikeCommentResponse, LikePostData, LikePostError, LikePostResponse, LikeTalkData, LikeTalkError, LikeTalkResponse, ListArticlesData, ListArticlesError, ListArticlesResponse, ListBlockedData, ListBlockedError, ListBlockedResponse, ListCardsData, ListCardsError, ListCardsResponse, ListCommentsData, ListCommentsError, ListCommentsResponse, ListEventsData, ListEventsError, ListEventsResponse, ListIndicesData, ListIndicesError, ListIndicesResponse, ListMyGakData, ListMyGakError, ListMyGakResponse, ListMyTalksData, ListMyTalksError, ListMyTalksResponse, ListPlacesData, ListPlacesError, ListPlacesResponse, ListPresetsData, ListPresetsResponse, ListReelsData, ListReelsError, ListReelsResponse, ListRegionsData, ListRegionsError, ListRegionsResponse, ListSavedData, ListSavedError, ListSavedResponse, ListShortsData, ListShortsResponse, ListTalksData, ListTalksError, ListTalksResponse, LoginData, LoginError, LoginResponse, LogoutData, LogoutError, LogoutResponse, MeData, MeError, MeResponse, MyLevelData, MyLevelError, MyLevelResponse, NearestRegionData, NearestRegionError, NearestRegionResponse, PublishCardData, PublishCardError, PublishCardResponse, PublishInstagram2Data, PublishInstagram2Error, PublishInstagram2Response, PublishInstagramData, PublishInstagramError, PublishInstagramResponse, RefreshData, RefreshError, RefreshResponse, RejectCardData, RejectCardError, RejectCardResponse, ReportCommentData, ReportCommentError, ReportCommentResponse, ReportTalkData, ReportTalkError, ReportTalkResponse, SaveDayLogData, SaveDayLogError, SaveDayLogResponse, SavePostData, SavePostError, SavePostResponse, ScoreMyGakData, ScoreMyGakError, ScoreMyGakResponse, SearchFortunePlacesData, SearchFortunePlacesError, SearchFortunePlacesResponse, SharedData, SharedError, SharedResponse, SignupData, SignupError, SignupResponse, TalkGroupsData, TalkGroupsError, TalkGroupsResponse, TossData, TossError, TossResponse, TossUnlinkData, TossUnlinkError, TossUnlinkResponse, UnblockData, UnblockError, UnblockResponse, UnlikeCommentData, UnlikeCommentError, UnlikeCommentResponse, UnlikePostData, UnlikePostError, UnlikePostResponse, UnlikeTalkData, UnlikeTalkError, UnlikeTalkResponse, UnsavePostData, UnsavePostError, UnsavePostResponse, UpdateMeData, UpdateMeError, UpdateMeResponse, UploadTalkImageData, UploadTalkImageError, UploadTalkImageResponse, WithdrawData, WithdrawError, WithdrawResponse } from '../types.gen';
|
||||
|
||||
export type QueryKey<TOptions extends Options> = [
|
||||
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
||||
@@ -968,6 +968,145 @@ export const deleteMyGakMutation = (options?: Partial<Options<DeleteMyGakData>>)
|
||||
return mutationOptions;
|
||||
};
|
||||
|
||||
export const getFortuneTodayQueryKey = (options: Options<GetFortuneTodayData>) => createQueryKey('getFortuneToday', options);
|
||||
|
||||
/**
|
||||
* 오늘 한 장: 로그인했으면 오늘 뽑은 카드·행운·체크인·연속 기록 (안 뽑았으면 카드 없이)
|
||||
*/
|
||||
export const getFortuneTodayOptions = (options: Options<GetFortuneTodayData>) => queryOptions<GetFortuneTodayResponse, GetFortuneTodayError, GetFortuneTodayResponse, ReturnType<typeof getFortuneTodayQueryKey>>({
|
||||
queryFn: async ({ queryKey, signal }) => {
|
||||
const { data } = await getFortuneToday({
|
||||
...options,
|
||||
...queryKey[0],
|
||||
signal,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
},
|
||||
queryKey: getFortuneTodayQueryKey(options)
|
||||
});
|
||||
|
||||
/**
|
||||
* 오늘 카드 뽑기 (하루 한 장). 로그인 안 했으면 기기에 있는 오늘 카드를 넘기면 그 카드로 행운만 계산
|
||||
*/
|
||||
export const drawFortuneMutation = (options?: Partial<Options<DrawFortuneData>>): UseMutationOptions<DrawFortuneResponse, DrawFortuneError, Options<DrawFortuneData>> => {
|
||||
const mutationOptions: UseMutationOptions<DrawFortuneResponse, DrawFortuneError, Options<DrawFortuneData>> = {
|
||||
mutationFn: async (fnOptions) => {
|
||||
const { data } = await drawFortune({
|
||||
...options,
|
||||
...fnOptions,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
}
|
||||
};
|
||||
return mutationOptions;
|
||||
};
|
||||
|
||||
/**
|
||||
* 오늘 저녁 체크인 저장 (로그인). 다시 보내면 고친다
|
||||
*/
|
||||
export const saveDayLogMutation = (options?: Partial<Options<SaveDayLogData>>): UseMutationOptions<SaveDayLogResponse, SaveDayLogError, Options<SaveDayLogData>> => {
|
||||
const mutationOptions: UseMutationOptions<SaveDayLogResponse, SaveDayLogError, Options<SaveDayLogData>> = {
|
||||
mutationFn: async (fnOptions) => {
|
||||
const { data } = await saveDayLog({
|
||||
...options,
|
||||
...fnOptions,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
}
|
||||
};
|
||||
return mutationOptions;
|
||||
};
|
||||
|
||||
/**
|
||||
* 로그인할 때 기기에 있던 뽑은 카드·체크인을 계정으로 (계정에 있는 날은 계정 쪽을 둔다)
|
||||
*/
|
||||
export const importFortuneMutation = (options?: Partial<Options<ImportFortuneData>>): UseMutationOptions<ImportFortuneResponse, ImportFortuneError, Options<ImportFortuneData>> => {
|
||||
const mutationOptions: UseMutationOptions<ImportFortuneResponse, ImportFortuneError, Options<ImportFortuneData>> = {
|
||||
mutationFn: async (fnOptions) => {
|
||||
const { data } = await importFortune({
|
||||
...options,
|
||||
...fnOptions,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
}
|
||||
};
|
||||
return mutationOptions;
|
||||
};
|
||||
|
||||
export const searchFortunePlacesQueryKey = (options: Options<SearchFortunePlacesData>) => createQueryKey('searchFortunePlaces', options);
|
||||
|
||||
/**
|
||||
* 체크인에서 다녀온 곳 찾기: 이름에 q 가 들어간 데이트 명소·노을 명소·지금 하는 행사
|
||||
*/
|
||||
export const searchFortunePlacesOptions = (options: Options<SearchFortunePlacesData>) => queryOptions<SearchFortunePlacesResponse, SearchFortunePlacesError, SearchFortunePlacesResponse, ReturnType<typeof searchFortunePlacesQueryKey>>({
|
||||
queryFn: async ({ queryKey, signal }) => {
|
||||
const { data } = await searchFortunePlaces({
|
||||
...options,
|
||||
...queryKey[0],
|
||||
signal,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
},
|
||||
queryKey: searchFortunePlacesQueryKey(options)
|
||||
});
|
||||
|
||||
export const myLevelQueryKey = (options?: Options<MyLevelData>) => createQueryKey('myLevel', options);
|
||||
|
||||
/**
|
||||
* 내 레벨: 모은 각, 다음 레벨, 오늘 받은 각, 레벨로 열리는 것
|
||||
*/
|
||||
export const myLevelOptions = (options?: Options<MyLevelData>) => queryOptions<MyLevelResponse, MyLevelError, MyLevelResponse, ReturnType<typeof myLevelQueryKey>>({
|
||||
queryFn: async ({ queryKey, signal }) => {
|
||||
const { data } = await myLevel({
|
||||
...options,
|
||||
...queryKey[0],
|
||||
signal,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
},
|
||||
queryKey: myLevelQueryKey(options)
|
||||
});
|
||||
|
||||
/**
|
||||
* 출석 (하루 한 번 각). 7일 이어지면 보너스
|
||||
*/
|
||||
export const attendMutation = (options?: Partial<Options<AttendData>>): UseMutationOptions<AttendResponse, AttendError, Options<AttendData>> => {
|
||||
const mutationOptions: UseMutationOptions<AttendResponse, AttendError, Options<AttendData>> = {
|
||||
mutationFn: async (fnOptions) => {
|
||||
const { data } = await attend({
|
||||
...options,
|
||||
...fnOptions,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
}
|
||||
};
|
||||
return mutationOptions;
|
||||
};
|
||||
|
||||
/**
|
||||
* 공유를 마쳤을 때 (하루 한 번 각)
|
||||
*/
|
||||
export const sharedMutation = (options?: Partial<Options<SharedData>>): UseMutationOptions<SharedResponse, SharedError, Options<SharedData>> => {
|
||||
const mutationOptions: UseMutationOptions<SharedResponse, SharedError, Options<SharedData>> = {
|
||||
mutationFn: async (fnOptions) => {
|
||||
const { data } = await shared({
|
||||
...options,
|
||||
...fnOptions,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
}
|
||||
};
|
||||
return mutationOptions;
|
||||
};
|
||||
|
||||
export const talkGroupsQueryKey = (options?: Options<TalkGroupsData>) => createQueryKey('talkGroups', options);
|
||||
|
||||
/**
|
||||
@@ -1362,6 +1501,24 @@ export const createCardMutation = (options?: Partial<Options<CreateCardData>>):
|
||||
return mutationOptions;
|
||||
};
|
||||
|
||||
export const latestCardQueryKey = (options: Options<LatestCardData>) => createQueryKey('latestCard', options);
|
||||
|
||||
/**
|
||||
* 그 틀로 가장 최근에 피드에 올린 카드뉴스의 포스트 (오늘 탭 '오늘 코디' 아이콘)
|
||||
*/
|
||||
export const latestCardOptions = (options: Options<LatestCardData>) => queryOptions<LatestCardResponse, LatestCardError, LatestCardResponse, ReturnType<typeof latestCardQueryKey>>({
|
||||
queryFn: async ({ queryKey, signal }) => {
|
||||
const { data } = await latestCard({
|
||||
...options,
|
||||
...queryKey[0],
|
||||
signal,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
},
|
||||
queryKey: latestCardQueryKey(options)
|
||||
});
|
||||
|
||||
/**
|
||||
* 승인 대기 카드뉴스를 그날 피드에 올리기 (관리자)
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file is auto-generated by @hey-api/openapi-ts
|
||||
|
||||
export { addComment, addMyGak, addTalk, agreeTerms, authConfig, blockAuthor, blockTalkAuthor, createCard, createReel, deleteComment, deleteMyGak, deleteTalk, getArticle, getCardImage, getFeed, getImage, getIndex, getPost, getReelCover, getReelVideo, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, likeComment, likePost, likeTalk, listArticles, listBlocked, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listReels, listRegions, listSaved, listShorts, listTalks, login, logout, me, nearestRegion, type Options, publishCard, publishInstagram, publishInstagram2, refresh, rejectCard, reportComment, reportTalk, savePost, scoreMyGak, signup, talkGroups, toss, tossUnlink, unblock, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage, withdraw } from './sdk.gen';
|
||||
export { type AddCommentData, type AddCommentError, type AddCommentErrors, type AddCommentResponse, type AddCommentResponses, type AddMyGakData, type AddMyGakError, type AddMyGakErrors, type AddMyGakResponse, type AddMyGakResponses, type AddTalkData, type AddTalkError, type AddTalkErrors, type AddTalkResponse, type AddTalkResponses, type AgreeTermsData, type AgreeTermsError, type AgreeTermsErrors, type AgreeTermsResponse, type AgreeTermsResponses, type AirData, AirGrade, ArticleCategory, type ArticleSummary, type AuthConfigData, type AuthConfigResponse, type AuthConfigResponses, AuthProvider, type BandArticle, type BandEvent, type Bands, type BestTime, type BlockAuthorData, type BlockAuthorError, type BlockAuthorErrors, type BlockAuthorResponse, type BlockAuthorResponses, type BlockedUser, type BlockTalkAuthorData, type BlockTalkAuthorError, type BlockTalkAuthorErrors, type BlockTalkAuthorResponse, type BlockTalkAuthorResponses, type BodyUploadTalkImageV1TalkImagePost, type CardItem, CardStatus, type ClientOptions, type CommentData, type CommuteData, Confidence, type CreateCardData, type CreateCardError, type CreateCardErrors, type CreateCardResponse, type CreateCardResponses, type CreateReelData, type CreateReelError, type CreateReelErrors, type CreateReelResponse, type CreateReelResponses, type Cut, type DayData, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteMyGakData, type DeleteMyGakError, type DeleteMyGakErrors, type DeleteMyGakResponse, type DeleteMyGakResponses, type DeleteTalkData, type DeleteTalkError, type DeleteTalkErrors, type DeleteTalkResponse, type DeleteTalkResponses, type ErrorInfo, type EventData, type Factor, type GakSlide, type GetArticleData, type GetArticleError, type GetArticleErrors, type GetArticleResponse, type GetArticleResponses, type GetCardImageData, type GetCardImageError, type GetCardImageErrors, type GetCardImageResponses, type GetFeedData, type GetFeedError, type GetFeedErrors, type GetFeedResponse, type GetFeedResponses, type GetImageData, type GetImageError, type GetImageErrors, type GetImageResponses, type GetIndexData, type GetIndexError, type GetIndexErrors, type GetIndexResponse, type GetIndexResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetReelCoverData, type GetReelCoverError, type GetReelCoverErrors, type GetReelCoverResponses, type GetReelVideoData, type GetReelVideoError, type GetReelVideoErrors, type GetReelVideoResponses, type GetSeasonWeekData, type GetSeasonWeekResponse, type GetSeasonWeekResponses, type GetSkyData, type GetSkyError, type GetSkyErrors, type GetSkyRankingData, type GetSkyRankingResponse, type GetSkyRankingResponses, type GetSkyResponse, type GetSkyResponses, type GetTalkImageData, type GetTalkImageError, type GetTalkImageErrors, type GetTalkImageResponses, type GetTodayGuPageData, type GetTodayGuPageError, type GetTodayGuPageErrors, type GetTodayGuPageResponse, type GetTodayGuPageResponses, type GetTodayPageData, type GetTodayPageError, type GetTodayPageErrors, type GetTodayPageResponse, type GetTodayPageResponses, type GetTomorrowGuPageData, type GetTomorrowGuPageError, type GetTomorrowGuPageErrors, type GetTomorrowGuPageResponse, type GetTomorrowGuPageResponses, type GetTomorrowPageData, type GetTomorrowPageError, type GetTomorrowPageErrors, type GetTomorrowPageResponse, type GetTomorrowPageResponses, type GetWatchSummaryData, type GetWatchSummaryError, type GetWatchSummaryErrors, type GetWatchSummaryResponse, type GetWatchSummaryResponses, type GetWeatherNowData, type GetWeatherNowError, type GetWeatherNowErrors, type GetWeatherNowResponse, type GetWeatherNowResponses, type GetWeatherTodayData, type GetWeatherTodayError, type GetWeatherTodayErrors, type GetWeatherTodayResponse, type GetWeatherTodayResponses, type GetWeekData, type GetWeekError, type GetWeekErrors, type GetWeekRankingData, type GetWeekRankingResponse, type GetWeekRankingResponses, type GetWeekResponse, type GetWeekResponses, type GoogleLoginData, type GoogleLoginError, type GoogleLoginErrors, type GoogleLoginResponse, type GoogleLoginResponses, type HealthzHealthzGetData, type HealthzHealthzGetResponse, type HealthzHealthzGetResponses, type Hero, type HeroStat, type HeroTomorrow, type HourCell, type HoursSlide, type HttpValidationError, type ImageSlide, IndexCategory, type IndexSummary, type LikeCommentData, type LikeCommentError, type LikeCommentErrors, type LikeCommentResponse, type LikeCommentResponses, type LikePostData, type LikePostError, type LikePostErrors, type LikePostResponse, type LikePostResponses, type LikeTalkData, type LikeTalkError, type LikeTalkErrors, type LikeTalkResponse, type LikeTalkResponses, type ListArticlesData, type ListArticlesError, type ListArticlesErrors, type ListArticlesResponse, type ListArticlesResponses, type ListBlockedData, type ListBlockedError, type ListBlockedErrors,Line truncated
|
||||
export { addComment, addMyGak, addTalk, agreeTerms, attend, authConfig, blockAuthor, blockTalkAuthor, createCard, createReel, deleteComment, deleteMyGak, deleteTalk, drawFortune, getArticle, getCardImage, getFeed, getFortuneToday, getImage, getIndex, getPost, getReelCover, getReelVideo, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, importFortune, latestCard, likeComment, likePost, likeTalk, listArticles, listBlocked, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listReels, listRegions, listSaved, listShorts, listTalks, login, logout, me, myLevel, nearestRegion, type Options, publishCard, publishInstagram, publishInstagram2, refresh, rejectCard, reportComment, reportTalk, saveDayLog, savePost, scoreMyGak, searchFortunePlaces, shared, signup, talkGroups, toss, tossUnlink, unblock, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage, withdraw } from './sdk.gen';
|
||||
export { type AddCommentData, type AddCommentError, type AddCommentErrors, type AddCommentResponse, type AddCommentResponses, type AddMyGakData, type AddMyGakError, type AddMyGakErrors, type AddMyGakResponse, type AddMyGakResponses, type AddTalkData, type AddTalkError, type AddTalkErrors, type AddTalkResponse, type AddTalkResponses, type AgreeTermsData, type AgreeTermsError, type AgreeTermsErrors, type AgreeTermsResponse, type AgreeTermsResponses, type AirData, AirGrade, ArticleCategory, type ArticleSummary, type AttendData, type AttendError, type AttendErrors, type AttendResponse, type AttendResponses, type AuthConfigData, type AuthConfigResponse, type AuthConfigResponses, AuthProvider, type BandArticle, type BandEvent, type Bands, type BestTime, type BlockAuthorData, type BlockAuthorError, type BlockAuthorErrors, type BlockAuthorResponse, type BlockAuthorResponses, type BlockedUser, type BlockTalkAuthorData, type BlockTalkAuthorError, type BlockTalkAuthorErrors, type BlockTalkAuthorResponse, type BlockTalkAuthorResponses, type BodyUploadTalkImageV1TalkImagePost, type CardItem, CardStatus, type ClientOptions, type CommentData, type CommuteData, Confidence, type CreateCardData, type CreateCardError, type CreateCardErrors, type CreateCardResponse, type CreateCardResponses, type CreateReelData, type CreateReelError, type CreateReelErrors, type CreateReelResponse, type CreateReelResponses, type Cut, type DayData, type DayLogData, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteMyGakData, type DeleteMyGakError, type DeleteMyGakErrors, type DeleteMyGakResponse, type DeleteMyGakResponses, type DeleteTalkData, type DeleteTalkError, type DeleteTalkErrors, type DeleteTalkResponse, type DeleteTalkResponses, type DrawFortuneData, type DrawFortuneError, type DrawFortuneErrors, type DrawFortuneResponse, type DrawFortuneResponses, type ErrorInfo, type EventData, type Factor, type FortuneCard, type FortuneLuck, type FortunePlace, type GakSlide, type GetArticleData, type GetArticleError, type GetArticleErrors, type GetArticleResponse, type GetArticleResponses, type GetCardImageData, type GetCardImageError, type GetCardImageErrors, type GetCardImageResponses, type GetFeedData, type GetFeedError, type GetFeedErrors, type GetFeedResponse, type GetFeedResponses, type GetFortuneTodayData, type GetFortuneTodayError, type GetFortuneTodayErrors, type GetFortuneTodayResponse, type GetFortuneTodayResponses, type GetImageData, type GetImageError, type GetImageErrors, type GetImageResponses, type GetIndexData, type GetIndexError, type GetIndexErrors, type GetIndexResponse, type GetIndexResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetReelCoverData, type GetReelCoverError, type GetReelCoverErrors, type GetReelCoverResponses, type GetReelVideoData, type GetReelVideoError, type GetReelVideoErrors, type GetReelVideoResponses, type GetSeasonWeekData, type GetSeasonWeekResponse, type GetSeasonWeekResponses, type GetSkyData, type GetSkyError, type GetSkyErrors, type GetSkyRankingData, type GetSkyRankingResponse, type GetSkyRankingResponses, type GetSkyResponse, type GetSkyResponses, type GetTalkImageData, type GetTalkImageError, type GetTalkImageErrors, type GetTalkImageResponses, type GetTodayGuPageData, type GetTodayGuPageError, type GetTodayGuPageErrors, type GetTodayGuPageResponse, type GetTodayGuPageResponses, type GetTodayPageData, type GetTodayPageError, type GetTodayPageErrors, type GetTodayPageResponse, type GetTodayPageResponses, type GetTomorrowGuPageData, type GetTomorrowGuPageError, type GetTomorrowGuPageErrors, type GetTomorrowGuPageResponse, type GetTomorrowGuPageResponses, type GetTomorrowPageData, type GetTomorrowPageError, type GetTomorrowPageErrors, type GetTomorrowPageResponse, type GetTomorrowPageResponses, type GetWatchSummaryData, type GetWatchSummaryError, type GetWatchSummaryErrors, type GetWatchSummaryResponse, type GetWatchSummaryResponses, type GetWeatherNowData, type GetWeatherNowError, type GetWeatherNowErrors, type GetWeatherNowResponse, type GetWeatherNowResponses, type GetWeatherTodayData, type GetWeatherTodayError, type GetWeatherTodayErrors, type GetWeatherTodayResponse, type GetWeatherTodayResponses, type GetWeekData, type GetWeekError, type GetWeekErrors, type GetWeekRankingData, type GetWeekRankingResponse, type GetWeekRankingResponses, type GetWeekResponse, type GetWeekResponses, type GoogleLoginData, type GoogleLoginError, type GoogleLoginErrors, type GoogleLoginResponse, type GoogleLoginResponses, type HealthzHealthzGetData, type HealthzHealthzGetResponse, type HealthzHealthzGetResponses, type Hero, type HeroStat, type HeroTomorrow, type HourCell, type HoursSlide, type HttpValidationError, type ImageSlide, type ImportFortuneData, type ImportFortuneError, type ImportFortuneErrors, type ImportFortuneResponse, type ImportFortuneResponses,
Line truncated
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { type Client, type ClientMeta, formDataBodySerializer, type Options as Options2, type RequestResult, type TDataShape } from './client';
|
||||
import { client } from './client.gen';
|
||||
import type { AddCommentData, AddCommentErrors, AddCommentResponses, AddMyGakData, AddMyGakErrors, AddMyGakResponses, AddTalkData, AddTalkErrors, AddTalkResponses, AgreeTermsData, AgreeTermsErrors, AgreeTermsResponses, AuthConfigData, AuthConfigResponses, BlockAuthorData, BlockAuthorErrors, BlockAuthorResponses, BlockTalkAuthorData, BlockTalkAuthorErrors, BlockTalkAuthorResponses, CreateCardData, CreateCardErrors, CreateCardResponses, CreateReelData, CreateReelErrors, CreateReelResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteMyGakData, DeleteMyGakErrors, DeleteMyGakResponses, DeleteTalkData, DeleteTalkErrors, DeleteTalkResponses, GetArticleData, GetArticleErrors, GetArticleResponses, GetCardImageData, GetCardImageErrors, GetCardImageResponses, GetFeedData, GetFeedErrors, GetFeedResponses, GetImageData, GetImageErrors, GetImageResponses, GetIndexData, GetIndexErrors, GetIndexResponses, GetPostData, GetPostErrors, GetPostResponses, GetReelCoverData, GetReelCoverErrors, GetReelCoverResponses, GetReelVideoData, GetReelVideoErrors, GetReelVideoResponses, GetSeasonWeekData, GetSeasonWeekResponses, GetSkyData, GetSkyErrors, GetSkyRankingData, GetSkyRankingResponses, GetSkyResponses, GetTalkImageData, GetTalkImageErrors, GetTalkImageResponses, GetTodayGuPageData, GetTodayGuPageErrors, GetTodayGuPageResponses, GetTodayPageData, GetTodayPageErrors, GetTodayPageResponses, GetTomorrowGuPageData, GetTomorrowGuPageErrors, GetTomorrowGuPageResponses, GetTomorrowPageData, GetTomorrowPageErrors, GetTomorrowPageResponses, GetWatchSummaryData, GetWatchSummaryErrors, GetWatchSummaryResponses, GetWeatherNowData, GetWeatherNowErrors, GetWeatherNowResponses, GetWeatherTodayData, GetWeatherTodayErrors, GetWeatherTodayResponses, GetWeekData, GetWeekErrors, GetWeekRankingData, GetWeekRankingResponses, GetWeekResponses, GoogleLoginData, GoogleLoginErrors, GoogleLoginResponses, HealthzHealthzGetData, HealthzHealthzGetResponses, LikeCommentData, LikeCommentErrors, LikeCommentResponses, LikePostData, LikePostErrors, LikePostResponses, LikeTalkData, LikeTalkErrors, LikeTalkResponses, ListArticlesData, ListArticlesErrors, ListArticlesResponses, ListBlockedData, ListBlockedErrors, ListBlockedResponses, ListCardsData, ListCardsErrors, ListCardsResponses, ListCommentsData, ListCommentsErrors, ListCommentsResponses, ListEventsData, ListEventsErrors, ListEventsResponses, ListIndicesData, ListIndicesErrors, ListIndicesResponses, ListMyGakData, ListMyGakErrors, ListMyGakResponses, ListMyTalksData, ListMyTalksErrors, ListMyTalksResponses, ListPlacesData, ListPlacesErrors, ListPlacesResponses, ListPresetsData, ListPresetsResponses, ListReelsData, ListReelsErrors, ListReelsResponses, ListRegionsData, ListRegionsErrors, ListRegionsResponses, ListSavedData, ListSavedErrors, ListSavedResponses, ListShortsData, ListShortsResponses, ListTalksData, ListTalksErrors, ListTalksResponses, LoginData, LoginErrors, LoginResponses, LogoutData, LogoutErrors, LogoutResponses, MeData, MeErrors, MeResponses, NearestRegionData, NearestRegionErrors, NearestRegionResponses, PublishCardData, PublishCardErrors, PublishCardResponses, PublishInstagram2Data, PublishInstagram2Errors, PublishInstagram2Responses, PublishInstagramData, PublishInstagramErrors, PublishInstagramResponses, RefreshData, RefreshErrors, RefreshResponses, RejectCardData, RejectCardErrors, RejectCardResponses, ReportCommentData, ReportCommentErrors, ReportCommentResponses, ReportTalkData, ReportTalkErrors, ReportTalkResponses, SavePostData, SavePostErrors, SavePostResponses, ScoreMyGakData, ScoreMyGakErrors, ScoreMyGakResponses, SignupData, SignupErrors, SignupResponses, TalkGroupsData, TalkGroupsErrors, TalkGroupsResponses, TossData, TossErrors, TossResponses, TossUnlinkData, TossUnlinkErrors, TossUnlinkResponses, UnblockData, UnblockErrors, UnblockResponses, UnlikeCommentData, UnlikeCommentErrors, UnlikeCommentResponses, UnlikePostData, UnlikePostErrors, UnlikePostResponses, UnlikeTalkData, UnlikeTalkErrors, UnlikeTalkResponses, UnsavePostData, UnsavePostErrors, UnsavePostResponses, UpdateMeData, UpdateMeErrors, UpdateMeResponses, UploadTalkImageData, UploadTalkImageErrors, UploadTalkImageResponses, WithdrawData, WithdrawErrors, WithdrawResponses } from './types.gen';
|
||||
import type { AddCommentData, AddCommentErrors, AddCommentResponses, AddMyGakData, AddMyGakErrors, AddMyGakResponses, AddTalkData, AddTalkErrors, AddTalkResponses, AgreeTermsData, AgreeTermsErrors, AgreeTermsResponses, AttendData, AttendErrors, AttendResponses, AuthConfigData, AuthConfigResponses, BlockAuthorData, BlockAuthorErrors, BlockAuthorResponses, BlockTalkAuthorData, BlockTalkAuthorErrors, BlockTalkAuthorResponses, CreateCardData, CreateCardErrors, CreateCardResponses, CreateReelData, CreateReelErrors, CreateReelResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteMyGakData, DeleteMyGakErrors, DeleteMyGakResponses, DeleteTalkData, DeleteTalkErrors, DeleteTalkResponses, DrawFortuneData, DrawFortuneErrors, DrawFortuneResponses, GetArticleData, GetArticleErrors, GetArticleResponses, GetCardImageData, GetCardImageErrors, GetCardImageResponses, GetFeedData, GetFeedErrors, GetFeedResponses, GetFortuneTodayData, GetFortuneTodayErrors, GetFortuneTodayResponses, GetImageData, GetImageErrors, GetImageResponses, GetIndexData, GetIndexErrors, GetIndexResponses, GetPostData, GetPostErrors, GetPostResponses, GetReelCoverData, GetReelCoverErrors, GetReelCoverResponses, GetReelVideoData, GetReelVideoErrors, GetReelVideoResponses, GetSeasonWeekData, GetSeasonWeekResponses, GetSkyData, GetSkyErrors, GetSkyRankingData, GetSkyRankingResponses, GetSkyResponses, GetTalkImageData, GetTalkImageErrors, GetTalkImageResponses, GetTodayGuPageData, GetTodayGuPageErrors, GetTodayGuPageResponses, GetTodayPageData, GetTodayPageErrors, GetTodayPageResponses, GetTomorrowGuPageData, GetTomorrowGuPageErrors, GetTomorrowGuPageResponses, GetTomorrowPageData, GetTomorrowPageErrors, GetTomorrowPageResponses, GetWatchSummaryData, GetWatchSummaryErrors, GetWatchSummaryResponses, GetWeatherNowData, GetWeatherNowErrors, GetWeatherNowResponses, GetWeatherTodayData, GetWeatherTodayErrors, GetWeatherTodayResponses, GetWeekData, GetWeekErrors, GetWeekRankingData, GetWeekRankingResponses, GetWeekResponses, GoogleLoginData, GoogleLoginErrors, GoogleLoginResponses, HealthzHealthzGetData, HealthzHealthzGetResponses, ImportFortuneData, ImportFortuneErrors, ImportFortuneResponses, LatestCardData, LatestCardErrors, LatestCardResponses, LikeCommentData, LikeCommentErrors, LikeCommentResponses, LikePostData, LikePostErrors, LikePostResponses, LikeTalkData, LikeTalkErrors, LikeTalkResponses, ListArticlesData, ListArticlesErrors, ListArticlesResponses, ListBlockedData, ListBlockedErrors, ListBlockedResponses, ListCardsData, ListCardsErrors, ListCardsResponses, ListCommentsData, ListCommentsErrors, ListCommentsResponses, ListEventsData, ListEventsErrors, ListEventsResponses, ListIndicesData, ListIndicesErrors, ListIndicesResponses, ListMyGakData, ListMyGakErrors, ListMyGakResponses, ListMyTalksData, ListMyTalksErrors, ListMyTalksResponses, ListPlacesData, ListPlacesErrors, ListPlacesResponses, ListPresetsData, ListPresetsResponses, ListReelsData, ListReelsErrors, ListReelsResponses, ListRegionsData, ListRegionsErrors, ListRegionsResponses, ListSavedData, ListSavedErrors, ListSavedResponses, ListShortsData, ListShortsResponses, ListTalksData, ListTalksErrors, ListTalksResponses, LoginData, LoginErrors, LoginResponses, LogoutData, LogoutErrors, LogoutResponses, MeData, MeErrors, MeResponses, MyLevelData, MyLevelErrors, MyLevelResponses, NearestRegionData, NearestRegionErrors, NearestRegionResponses, PublishCardData, PublishCardErrors, PublishCardResponses, PublishInstagram2Data, PublishInstagram2Errors, PublishInstagram2Responses, PublishInstagramData, PublishInstagramErrors, PublishInstagramResponses, RefreshData, RefreshErrors, RefreshResponses, RejectCardData, RejectCardErrors, RejectCardResponses, ReportCommentData, ReportCommentErrors, ReportCommentResponses, ReportTalkData, ReportTalkErrors, ReportTalkResponses, SaveDayLogData, SaveDayLogErrors, SaveDayLogResponses, SavePostData, SavePostErrors, SavePostResponses, ScoreMyGakData, ScoreMyGakErrors, ScoreMyGakResponses, SearchFortunePlacesData, SearchFortunePlacesErrors, SearchFortunePlacesResponses, SharedData, SharedErrors, SharedResponses, SignupData, SignupErrors, SignupResponses, TalkGroupsData, TalkGroupsErrors, TalkGroupsResponses, TossData, TossErrors, TossResponses, TossUnlinkData, TossUnlinkErrors, TossUnlinkResponses, UnblockData, UnblockErrors, UnblockResponses, UnlikeCommentData, UnlikeCommentErrors, UnlikeCommentResponses, UnlikePostData, UnlikePostErrors, UnlikePostResponses, UnlikeTalkData, UnlikeTalkErrors, UnlikeTalkResponses, UnsavePostData, UnsavePostErrors, UnsavePostResponses, UpdateMeData, UpdateMeErrors, UpdateMeResponses, UploadTalkImageData, UploadTalkImageErrors, UploadTalkImageResponses, WithdrawData, WithdrawErrors, WithdrawResponses } from './types.gen';
|
||||
|
||||
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
||||
/**
|
||||
@@ -335,6 +335,67 @@ export const scoreMyGak = <ThrowOnError extends boolean = true>(options: Options
|
||||
*/
|
||||
export const deleteMyGak = <ThrowOnError extends boolean = true>(options: Options<DeleteMyGakData, ThrowOnError>): RequestResult<DeleteMyGakResponses, DeleteMyGakErrors, ThrowOnError> => (options.client ?? client).delete<DeleteMyGakResponses, DeleteMyGakErrors, ThrowOnError>({ url: '/v1/my-gak/{my_gak_id}', ...options });
|
||||
|
||||
/**
|
||||
* 오늘 한 장: 로그인했으면 오늘 뽑은 카드·행운·체크인·연속 기록 (안 뽑았으면 카드 없이)
|
||||
*/
|
||||
export const getFortuneToday = <ThrowOnError extends boolean = true>(options: Options<GetFortuneTodayData, ThrowOnError>): RequestResult<GetFortuneTodayResponses, GetFortuneTodayErrors, ThrowOnError> => (options.client ?? client).get<GetFortuneTodayResponses, GetFortuneTodayErrors, ThrowOnError>({ url: '/v1/fortune/today', ...options });
|
||||
|
||||
/**
|
||||
* 오늘 카드 뽑기 (하루 한 장). 로그인 안 했으면 기기에 있는 오늘 카드를 넘기면 그 카드로 행운만 계산
|
||||
*/
|
||||
export const drawFortune = <ThrowOnError extends boolean = true>(options: Options<DrawFortuneData, ThrowOnError>): RequestResult<DrawFortuneResponses, DrawFortuneErrors, ThrowOnError> => (options.client ?? client).post<DrawFortuneResponses, DrawFortuneErrors, ThrowOnError>({
|
||||
url: '/v1/fortune/draw',
|
||||
...options,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
...options.headers
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* 오늘 저녁 체크인 저장 (로그인). 다시 보내면 고친다
|
||||
*/
|
||||
export const saveDayLog = <ThrowOnError extends boolean = true>(options: Options<SaveDayLogData, ThrowOnError>): RequestResult<SaveDayLogResponses, SaveDayLogErrors, ThrowOnError> => (options.client ?? client).put<SaveDayLogResponses, SaveDayLogErrors, ThrowOnError>({
|
||||
url: '/v1/fortune/log',
|
||||
...options,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
...options.headers
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* 로그인할 때 기기에 있던 뽑은 카드·체크인을 계정으로 (계정에 있는 날은 계정 쪽을 둔다)
|
||||
*/
|
||||
export const importFortune = <ThrowOnError extends boolean = true>(options: Options<ImportFortuneData, ThrowOnError>): RequestResult<ImportFortuneResponses, ImportFortuneErrors, ThrowOnError> => (options.client ?? client).post<ImportFortuneResponses, ImportFortuneErrors, ThrowOnError>({
|
||||
url: '/v1/fortune/import',
|
||||
...options,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
...options.headers
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* 체크인에서 다녀온 곳 찾기: 이름에 q 가 들어간 데이트 명소·노을 명소·지금 하는 행사
|
||||
*/
|
||||
export const searchFortunePlaces = <ThrowOnError extends boolean = true>(options: Options<SearchFortunePlacesData, ThrowOnError>): RequestResult<SearchFortunePlacesResponses, SearchFortunePlacesErrors, ThrowOnError> => (options.client ?? client).get<SearchFortunePlacesResponses, SearchFortunePlacesErrors, ThrowOnError>({ url: '/v1/fortune/places', ...options });
|
||||
|
||||
/**
|
||||
* 내 레벨: 모은 각, 다음 레벨, 오늘 받은 각, 레벨로 열리는 것
|
||||
*/
|
||||
export const myLevel = <ThrowOnError extends boolean = true>(options?: Options<MyLevelData, ThrowOnError>): RequestResult<MyLevelResponses, MyLevelErrors, ThrowOnError> => (options?.client ?? client).get<MyLevelResponses, MyLevelErrors, ThrowOnError>({ url: '/v1/level/me', ...options });
|
||||
|
||||
/**
|
||||
* 출석 (하루 한 번 각). 7일 이어지면 보너스
|
||||
*/
|
||||
export const attend = <ThrowOnError extends boolean = true>(options?: Options<AttendData, ThrowOnError>): RequestResult<AttendResponses, AttendErrors, ThrowOnError> => (options?.client ?? client).post<AttendResponses, AttendErrors, ThrowOnError>({ url: '/v1/level/attend', ...options });
|
||||
|
||||
/**
|
||||
* 공유를 마쳤을 때 (하루 한 번 각)
|
||||
*/
|
||||
export const shared = <ThrowOnError extends boolean = true>(options?: Options<SharedData, ThrowOnError>): RequestResult<SharedResponses, SharedErrors, ThrowOnError> => (options?.client ?? client).post<SharedResponses, SharedErrors, ThrowOnError>({ url: '/v1/level/share', ...options });
|
||||
|
||||
/**
|
||||
* 오늘 피드 묶음 (동네 사람들 + 주제별, 가까운 동네·덜 지난 글 먼저, 한 사람 한 장)
|
||||
*/
|
||||
@@ -459,6 +520,11 @@ export const createCard = <ThrowOnError extends boolean = true>(options: Options
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* 그 틀로 가장 최근에 피드에 올린 카드뉴스의 포스트 (오늘 탭 '오늘 코디' 아이콘)
|
||||
*/
|
||||
export const latestCard = <ThrowOnError extends boolean = true>(options: Options<LatestCardData, ThrowOnError>): RequestResult<LatestCardResponses, LatestCardErrors, ThrowOnError> => (options.client ?? client).get<LatestCardResponses, LatestCardErrors, ThrowOnError>({ url: '/v1/card/latest', ...options });
|
||||
|
||||
/**
|
||||
* 승인 대기 카드뉴스를 그날 피드에 올리기 (관리자)
|
||||
*/
|
||||
|
||||
@@ -512,6 +512,42 @@ export type DayData = {
|
||||
is_rainy: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* DayLogData
|
||||
*/
|
||||
export type DayLogData = {
|
||||
/**
|
||||
* Day
|
||||
*/
|
||||
day: string;
|
||||
/**
|
||||
* Mood
|
||||
*
|
||||
* 1(가장 좋음)~5
|
||||
*/
|
||||
mood: number;
|
||||
/**
|
||||
* Went Out
|
||||
*/
|
||||
went_out: boolean;
|
||||
/**
|
||||
* Place Name
|
||||
*/
|
||||
place_name?: string | null;
|
||||
/**
|
||||
* Place Ref
|
||||
*
|
||||
* 목록에서 고른 곳: place:<id> · spot:<id> · event:<id>
|
||||
*/
|
||||
place_ref?: string | null;
|
||||
/**
|
||||
* Card Hit
|
||||
*
|
||||
* 오늘 카드 맞았나
|
||||
*/
|
||||
card_hit?: boolean | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ErrorInfo
|
||||
*/
|
||||
@@ -610,6 +646,92 @@ export type Factor = {
|
||||
note: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* FortuneCard
|
||||
*/
|
||||
export type FortuneCard = {
|
||||
/**
|
||||
* Code
|
||||
*
|
||||
* 각 코드 (카드 그림은 /fortune/<code>.webp)
|
||||
*/
|
||||
code: string;
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Icon
|
||||
*/
|
||||
icon: string;
|
||||
/**
|
||||
* Reading
|
||||
*
|
||||
* 리딩 한 문장
|
||||
*/
|
||||
reading: string;
|
||||
/**
|
||||
* Color
|
||||
*
|
||||
* 행운 색 이름
|
||||
*/
|
||||
color: string;
|
||||
/**
|
||||
* Hex
|
||||
*
|
||||
* 행운 색 #rrggbb
|
||||
*/
|
||||
hex: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* FortuneLuck
|
||||
*/
|
||||
export type FortuneLuck = {
|
||||
/**
|
||||
* Time
|
||||
*
|
||||
* 행운 시간: 오늘 남은 구간 중 날씨가 가장 좋은 때 (예: 오후 4~7시)
|
||||
*/
|
||||
time?: string | null;
|
||||
/**
|
||||
* Place
|
||||
*
|
||||
* 행운 장소: 날씨 맞춤 데이트 명소
|
||||
*/
|
||||
place?: string | null;
|
||||
/**
|
||||
* Place Id
|
||||
*/
|
||||
place_id?: number | null;
|
||||
/**
|
||||
* Top Gak
|
||||
*
|
||||
* 지금 1위 각 이름
|
||||
*/
|
||||
top_gak?: string | null;
|
||||
/**
|
||||
* Top Icon
|
||||
*/
|
||||
top_icon?: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* FortunePlace
|
||||
*/
|
||||
export type FortunePlace = {
|
||||
/**
|
||||
* Ref
|
||||
*
|
||||
* place:<id> · spot:<id> · event:<id>
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
name: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* GakSlide
|
||||
*/
|
||||
@@ -993,6 +1115,124 @@ export type IndexSummary = {
|
||||
slots?: Array<SlotPoint>;
|
||||
};
|
||||
|
||||
/**
|
||||
* LevelAction
|
||||
*/
|
||||
export type LevelAction = {
|
||||
/**
|
||||
* Action
|
||||
*/
|
||||
action: string;
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Points
|
||||
*
|
||||
* 한 번에 주는 각
|
||||
*/
|
||||
points: number;
|
||||
/**
|
||||
* Cap
|
||||
*
|
||||
* 하루 한도
|
||||
*/
|
||||
cap: number;
|
||||
/**
|
||||
* Earned
|
||||
*
|
||||
* 오늘 받은 각
|
||||
*/
|
||||
earned: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* LevelStep
|
||||
*/
|
||||
export type LevelStep = {
|
||||
/**
|
||||
* Level
|
||||
*/
|
||||
level: number;
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Points
|
||||
*
|
||||
* 이 레벨이 되는 각 총량
|
||||
*/
|
||||
points: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* LevelUnlock
|
||||
*/
|
||||
export type LevelUnlock = {
|
||||
/**
|
||||
* Level
|
||||
*/
|
||||
level: number;
|
||||
/**
|
||||
* Key
|
||||
*/
|
||||
key: string;
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
name: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* LocalDraw
|
||||
*/
|
||||
export type LocalDraw = {
|
||||
/**
|
||||
* Day
|
||||
*/
|
||||
day: string;
|
||||
/**
|
||||
* Card Code
|
||||
*/
|
||||
card_code: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* LocalLog
|
||||
*/
|
||||
export type LocalLog = {
|
||||
/**
|
||||
* Region Code
|
||||
*/
|
||||
region_code: string;
|
||||
/**
|
||||
* Mood
|
||||
*/
|
||||
mood: number;
|
||||
/**
|
||||
* Went Out
|
||||
*/
|
||||
went_out: boolean;
|
||||
/**
|
||||
* Place Name
|
||||
*/
|
||||
place_name?: string | null;
|
||||
/**
|
||||
* Place Ref
|
||||
*/
|
||||
place_ref?: string | null;
|
||||
/**
|
||||
* Card Hit
|
||||
*/
|
||||
card_hit?: boolean | null;
|
||||
/**
|
||||
* Day
|
||||
*/
|
||||
day: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Me
|
||||
*/
|
||||
@@ -1691,6 +1931,72 @@ export type ReqComment = {
|
||||
region?: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Req_DayLog
|
||||
*/
|
||||
export type ReqDayLog = {
|
||||
/**
|
||||
* Region Code
|
||||
*/
|
||||
region_code: string;
|
||||
/**
|
||||
* Mood
|
||||
*/
|
||||
mood: number;
|
||||
/**
|
||||
* Went Out
|
||||
*/
|
||||
went_out: boolean;
|
||||
/**
|
||||
* Place Name
|
||||
*/
|
||||
place_name?: string | null;
|
||||
/**
|
||||
* Place Ref
|
||||
*/
|
||||
place_ref?: string | null;
|
||||
/**
|
||||
* Card Hit
|
||||
*/
|
||||
card_hit?: boolean | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Req_FortuneDraw
|
||||
*/
|
||||
export type ReqFortuneDraw = {
|
||||
/**
|
||||
* Region Code
|
||||
*/
|
||||
region_code: string;
|
||||
/**
|
||||
* Card Code
|
||||
*
|
||||
* 로그인 안 했을 때 기기에 있는 오늘 카드 (없으면 새로 뽑음)
|
||||
*/
|
||||
card_code?: string | null;
|
||||
/**
|
||||
* Days
|
||||
*
|
||||
* 로그인 안 했을 때 기기에 남은 뽑은 날 (연속 기록용)
|
||||
*/
|
||||
days?: Array<string>;
|
||||
};
|
||||
|
||||
/**
|
||||
* Req_FortuneImport
|
||||
*/
|
||||
export type ReqFortuneImport = {
|
||||
/**
|
||||
* Draws
|
||||
*/
|
||||
draws?: Array<LocalDraw>;
|
||||
/**
|
||||
* Logs
|
||||
*/
|
||||
logs?: Array<LocalLog>;
|
||||
};
|
||||
|
||||
/**
|
||||
* Req_Google
|
||||
*/
|
||||
@@ -2080,6 +2386,18 @@ export type ResCommentList = {
|
||||
next_cursor?: number | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_DayLog
|
||||
*/
|
||||
export type ResDayLog = {
|
||||
result?: ErrorInfo;
|
||||
/**
|
||||
* Msg
|
||||
*/
|
||||
msg?: string | null;
|
||||
log?: DayLogData | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_EventList
|
||||
*/
|
||||
@@ -2133,6 +2451,57 @@ export type ResFeed = {
|
||||
bands?: Bands | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_FortunePlaces
|
||||
*/
|
||||
export type ResFortunePlaces = {
|
||||
result?: ErrorInfo;
|
||||
/**
|
||||
* Msg
|
||||
*/
|
||||
msg?: string | null;
|
||||
/**
|
||||
* Items
|
||||
*/
|
||||
items?: Array<FortunePlace>;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_FortuneToday
|
||||
*/
|
||||
export type ResFortuneToday = {
|
||||
result?: ErrorInfo;
|
||||
/**
|
||||
* Msg
|
||||
*/
|
||||
msg?: string | null;
|
||||
/**
|
||||
* Day
|
||||
*/
|
||||
day?: string | null;
|
||||
/**
|
||||
* 오늘 뽑은 카드. 아직 안 뽑았으면 없음
|
||||
*/
|
||||
card?: FortuneCard | null;
|
||||
luck?: FortuneLuck | null;
|
||||
/**
|
||||
* Streak
|
||||
*
|
||||
* 이어 뽑은 날 수 (7일에 한 번 쉬는 날은 봐준다)
|
||||
*/
|
||||
streak?: number;
|
||||
/**
|
||||
* Checkin Open
|
||||
*
|
||||
* 저녁(해 지기 2시간 전)부터 체크인
|
||||
*/
|
||||
checkin_open?: boolean;
|
||||
/**
|
||||
* 오늘 체크인 (로그인했을 때)
|
||||
*/
|
||||
log?: DayLogData | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_Health
|
||||
*/
|
||||
@@ -2227,6 +2596,86 @@ export type ResIndexList = {
|
||||
items?: Array<IndexSummary>;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_LatestCard
|
||||
*/
|
||||
export type ResLatestCard = {
|
||||
result?: ErrorInfo;
|
||||
/**
|
||||
* Msg
|
||||
*/
|
||||
msg?: string | null;
|
||||
/**
|
||||
* Post Id
|
||||
*/
|
||||
post_id?: number | null;
|
||||
/**
|
||||
* Published At
|
||||
*/
|
||||
published_at?: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_Level
|
||||
*/
|
||||
export type ResLevel = {
|
||||
result?: ErrorInfo;
|
||||
/**
|
||||
* Msg
|
||||
*/
|
||||
msg?: string | null;
|
||||
/**
|
||||
* Points
|
||||
*
|
||||
* 모은 각 총량
|
||||
*/
|
||||
points?: number;
|
||||
/**
|
||||
* Level
|
||||
*/
|
||||
level?: number;
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Floor
|
||||
*
|
||||
* 지금 레벨이 시작하는 각
|
||||
*/
|
||||
floor?: number;
|
||||
/**
|
||||
* Next Points
|
||||
*
|
||||
* 다음 레벨에 필요한 총량 (마지막 레벨이면 없음)
|
||||
*/
|
||||
next_points?: number | null;
|
||||
/**
|
||||
* Next Name
|
||||
*/
|
||||
next_name?: string | null;
|
||||
/**
|
||||
* Streak
|
||||
*
|
||||
* 이어 출석한 날
|
||||
*/
|
||||
streak?: number;
|
||||
/**
|
||||
* Today
|
||||
*/
|
||||
today?: Array<LevelAction>;
|
||||
/**
|
||||
* Unlocks
|
||||
*/
|
||||
unlocks?: Array<LevelUnlock>;
|
||||
/**
|
||||
* Levels
|
||||
*
|
||||
* 레벨 전체 (이름·필요한 각)
|
||||
*/
|
||||
levels?: Array<LevelStep>;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_Logout
|
||||
*/
|
||||
@@ -5556,6 +6005,262 @@ export type DeleteMyGakResponses = {
|
||||
|
||||
export type DeleteMyGakResponse = DeleteMyGakResponses[keyof DeleteMyGakResponses];
|
||||
|
||||
export type GetFortuneTodayData = {
|
||||
body?: never;
|
||||
headers?: {
|
||||
/**
|
||||
* Authorization
|
||||
*/
|
||||
authorization?: string | null;
|
||||
};
|
||||
path?: never;
|
||||
query: {
|
||||
/**
|
||||
* Region
|
||||
*/
|
||||
region: string;
|
||||
};
|
||||
url: '/v1/fortune/today';
|
||||
};
|
||||
|
||||
export type GetFortuneTodayErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type GetFortuneTodayError = GetFortuneTodayErrors[keyof GetFortuneTodayErrors];
|
||||
|
||||
export type GetFortuneTodayResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResFortuneToday;
|
||||
};
|
||||
|
||||
export type GetFortuneTodayResponse = GetFortuneTodayResponses[keyof GetFortuneTodayResponses];
|
||||
|
||||
export type DrawFortuneData = {
|
||||
body: ReqFortuneDraw;
|
||||
headers?: {
|
||||
/**
|
||||
* Authorization
|
||||
*/
|
||||
authorization?: string | null;
|
||||
};
|
||||
path?: never;
|
||||
query?: never;
|
||||
url: '/v1/fortune/draw';
|
||||
};
|
||||
|
||||
export type DrawFortuneErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type DrawFortuneError = DrawFortuneErrors[keyof DrawFortuneErrors];
|
||||
|
||||
export type DrawFortuneResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResFortuneToday;
|
||||
};
|
||||
|
||||
export type DrawFortuneResponse = DrawFortuneResponses[keyof DrawFortuneResponses];
|
||||
|
||||
export type SaveDayLogData = {
|
||||
body: ReqDayLog;
|
||||
headers?: {
|
||||
/**
|
||||
* Authorization
|
||||
*/
|
||||
authorization?: string | null;
|
||||
};
|
||||
path?: never;
|
||||
query?: never;
|
||||
url: '/v1/fortune/log';
|
||||
};
|
||||
|
||||
export type SaveDayLogErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type SaveDayLogError = SaveDayLogErrors[keyof SaveDayLogErrors];
|
||||
|
||||
export type SaveDayLogResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResDayLog;
|
||||
};
|
||||
|
||||
export type SaveDayLogResponse = SaveDayLogResponses[keyof SaveDayLogResponses];
|
||||
|
||||
export type ImportFortuneData = {
|
||||
body: ReqFortuneImport;
|
||||
headers?: {
|
||||
/**
|
||||
* Authorization
|
||||
*/
|
||||
authorization?: string | null;
|
||||
};
|
||||
path?: never;
|
||||
query?: never;
|
||||
url: '/v1/fortune/import';
|
||||
};
|
||||
|
||||
export type ImportFortuneErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type ImportFortuneError = ImportFortuneErrors[keyof ImportFortuneErrors];
|
||||
|
||||
export type ImportFortuneResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResWebPacketProtocol;
|
||||
};
|
||||
|
||||
export type ImportFortuneResponse = ImportFortuneResponses[keyof ImportFortuneResponses];
|
||||
|
||||
export type SearchFortunePlacesData = {
|
||||
body?: never;
|
||||
path?: never;
|
||||
query: {
|
||||
/**
|
||||
* Region
|
||||
*/
|
||||
region: string;
|
||||
/**
|
||||
* Q
|
||||
*/
|
||||
q: string;
|
||||
};
|
||||
url: '/v1/fortune/places';
|
||||
};
|
||||
|
||||
export type SearchFortunePlacesErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type SearchFortunePlacesError = SearchFortunePlacesErrors[keyof SearchFortunePlacesErrors];
|
||||
|
||||
export type SearchFortunePlacesResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResFortunePlaces;
|
||||
};
|
||||
|
||||
export type SearchFortunePlacesResponse = SearchFortunePlacesResponses[keyof SearchFortunePlacesResponses];
|
||||
|
||||
export type MyLevelData = {
|
||||
body?: never;
|
||||
headers?: {
|
||||
/**
|
||||
* Authorization
|
||||
*/
|
||||
authorization?: string | null;
|
||||
};
|
||||
path?: never;
|
||||
query?: never;
|
||||
url: '/v1/level/me';
|
||||
};
|
||||
|
||||
export type MyLevelErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type MyLevelError = MyLevelErrors[keyof MyLevelErrors];
|
||||
|
||||
export type MyLevelResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResLevel;
|
||||
};
|
||||
|
||||
export type MyLevelResponse = MyLevelResponses[keyof MyLevelResponses];
|
||||
|
||||
export type AttendData = {
|
||||
body?: never;
|
||||
headers?: {
|
||||
/**
|
||||
* Authorization
|
||||
*/
|
||||
authorization?: string | null;
|
||||
};
|
||||
path?: never;
|
||||
query?: never;
|
||||
url: '/v1/level/attend';
|
||||
};
|
||||
|
||||
export type AttendErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type AttendError = AttendErrors[keyof AttendErrors];
|
||||
|
||||
export type AttendResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResLevel;
|
||||
};
|
||||
|
||||
export type AttendResponse = AttendResponses[keyof AttendResponses];
|
||||
|
||||
export type SharedData = {
|
||||
body?: never;
|
||||
headers?: {
|
||||
/**
|
||||
* Authorization
|
||||
*/
|
||||
authorization?: string | null;
|
||||
};
|
||||
path?: never;
|
||||
query?: never;
|
||||
url: '/v1/level/share';
|
||||
};
|
||||
|
||||
export type SharedErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type SharedError = SharedErrors[keyof SharedErrors];
|
||||
|
||||
export type SharedResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResLevel;
|
||||
};
|
||||
|
||||
export type SharedResponse = SharedResponses[keyof SharedResponses];
|
||||
|
||||
export type TalkGroupsData = {
|
||||
body?: never;
|
||||
headers?: {
|
||||
@@ -6235,6 +6940,36 @@ export type CreateCardResponses = {
|
||||
|
||||
export type CreateCardResponse = CreateCardResponses[keyof CreateCardResponses];
|
||||
|
||||
export type LatestCardData = {
|
||||
body?: never;
|
||||
path?: never;
|
||||
query: {
|
||||
/**
|
||||
* Template
|
||||
*/
|
||||
template: string;
|
||||
};
|
||||
url: '/v1/card/latest';
|
||||
};
|
||||
|
||||
export type LatestCardErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type LatestCardError = LatestCardErrors[keyof LatestCardErrors];
|
||||
|
||||
export type LatestCardResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResLatestCard;
|
||||
};
|
||||
|
||||
export type LatestCardResponse = LatestCardResponses[keyof LatestCardResponses];
|
||||
|
||||
export type PublishCardData = {
|
||||
body?: never;
|
||||
headers?: {
|
||||
|
||||
Reference in new issue
Block a user