Skip to content

Commit

Permalink
API 마이그레이션 마무리 (#953)
Browse files Browse the repository at this point in the history
* Chip, dialog 배포 (#938)

* Chip 파트 한 개 이슈 대응 (#932)

* test: 임시로 Chip 구현 (MDS 문의 필요)

* feat: chip 구현 및 반응형 작업

* feat: 전체파트 클릭 로직 + MDS Chip 연결

* docs: 불필요한 파일 삭제

* docs: 불필요한 코드 삭제

* fix: 개별 옵션 해제 시 전체파트 해제 로직 추가

* refactor: 코드리뷰 반영

* refactor: input 높이 반응형 제거

* feat: 모임 안내 모집 대상 chip 변경

* style: 색상변경

* style: QA 반영

* fix: 이슈대응

* fix: Chip 한개 선택 이슈 대응

* fix: Chip 5개 선택 시 이슈 해결 (#934)

* feat: 모임 삭제 dialog mds 마이그레이션 (#937)

* Update FeedFormPresentation.tsx

* Update FeedFormPresentation.tsx

* refactor: 모임 삭제

* refactor: 모임 지원자 상태 변경

* refactor: 로그인

* 모임삭제 코리반영

---------

Co-authored-by: Hyeonsu Kim <[email protected]>
  • Loading branch information
j-nary and borimong authored Nov 13, 2024
1 parent ccc69c8 commit 480c484
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
6 changes: 2 additions & 4 deletions src/api/API_LEGACY/meeting/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ export const useQueryGetMeetingPeopleList = ({
});
};

export const useMutationDeleteMeeting = ({
useMutationOptions,
}: UseMutateBody<number>): UseMutationResult<{ statusCode: number }, AxiosError, number> => {
return useMutation<{ statusCode: number }, AxiosError, number>({
export const useMutationDeleteMeeting = ({ useMutationOptions }: UseMutateBody<number>) => {
return useMutation({
...useMutationOptions,
mutationKey: ['deleteMeeting'],
mutationFn: deleteMeeting,
Expand Down
6 changes: 3 additions & 3 deletions src/api/API_LEGACY/meeting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ export const getMeetingPeopleList = async ({ id, ...rest }: OptionData): Promise
).data.data;
};

export const deleteMeeting = async (id: number): Promise<{ statusCode: number }> => {
return (await api.delete<{ statusCode: number }>(`/meeting/${id}`)).data;
export const deleteMeeting = async (id: number) => {
return (await api.delete(`/meeting/v2/${id}`)).data;
};

export const postApplication = async (body: PostApplicationRequest): Promise<{ statusCode: number }> => {
Expand All @@ -226,7 +226,7 @@ export const deleteApplication = async (meetingId: number): Promise<{ statusCode
};

export const updateApplication = async ({ id, ...rest }: UpdateApplicationRequest) => {
return (await api.put(`/meeting/${id}/apply/status`, rest)).data;
return (await api.put(`/meeting/v2/${id}/apply/status`, rest)).data;
};

const serializeFormData = (formData: FormType) => {
Expand Down
11 changes: 4 additions & 7 deletions src/api/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { api, Data } from '..';
import { paths } from '@/__generated__/schema2';
import { api } from '..';

interface GetCrewTokenResponse {
accessToken: string;
}
type GetCrewTokenResponse = paths['/auth/v2']['post']['responses']['201']['content']['application/json;charset=UTF-8'];

export const getCrewToken = async (playgroundToken: string) => {
const {
data: { data },
} = await api.post<Data<GetCrewTokenResponse>>(`/auth`, {
const { data } = await api.post<GetCrewTokenResponse>(`/auth/v2`, {
authToken: playgroundToken,
});
return data;
Expand Down

0 comments on commit 480c484

Please sign in to comment.