Skip to content

Commit

Permalink
πŸ”§ chore: μ‹œκ°„μ œ μ·¨μ—…ν—ˆκ°€μ„œ κ΄€λ ¨ state, type μ •μ˜ #31
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMirror21 committed Oct 23, 2024
1 parent 8ac0d5d commit 2a5d0c6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/constants/documents.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DocumentType } from '@/types/api/document';
import { DocumentType, PartTimePermitFormRequest } from '@/types/api/document';

// λ¬Έμ„œ νƒ€μž…λ³„ 정보λ₯Ό 담은 객체
export const DocumentTypeInfo = {
Expand Down Expand Up @@ -36,3 +36,13 @@ export const DocumentSubTitleContent = {
'The Application Form is a required document that international students must submit to legally work part-time in Korea. This form reports the workplace and working conditions, allowing the student to obtain employment approval.',
},
} as const;

// μ‹œκ°„μ œκ·Όλ¬΄ ν—ˆκ°€ μ‹ μ²­μ„œ 초기 state
export const initialPartTimePermitForm: PartTimePermitFormRequest = {
first_name: '',
last_name: '',
major: '',
term_of_completion: 0,
phone_number: '',
email: '',
};
34 changes: 34 additions & 0 deletions src/types/api/document.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Address } from '@/types/api/users';

export type DocumentStatus =
| 'TEMPORARY_SAVE'
| 'SUBMITTED'
Expand Down Expand Up @@ -31,3 +33,35 @@ export enum DocumentType {
LABOR_CONTRACT = 'standard_labor_contract',
INTEGRATED_APPLICATION = 'integrated_application',
}

// μ‹œκ°„μ œμ·¨μ—… ν—ˆκ°€μ„œ

export type EmployeeInformation = {
first_name: string;
last_name: string;
major: string;
term_of_completion: number;
phone_number: string;
email: string;
}

export type EmployerInformation = {
company_name?: string;
company_registration_number?: string;
job_type?: string;
address?: Address;
}

export type PartTimePermitData = {
employee_information: EmployeeInformation;
employer_information?: EmployerInformation;
}

export type PartTimePermitFormRequest = {
first_name: string;
last_name: string;
major: string;
term_of_completion: number;
phone_number: string;
email: string;
}

0 comments on commit 2a5d0c6

Please sign in to comment.