added

1.24.6

πŸ“‚ μ‚¬μš©μž μž…λ ₯λž€ 쑰회 API 응닡 ν•„λ“œ νƒ€μž… μΆ”κ°€

μ‚¬μš©μž μž…λ ₯λž€ 쑰회 API 응닡에 λ“œλ‘­λ‹€μš΄, κ³„μ•½μž 이름, νšŒμ‚¬μ΄λ¦„, μ£Όμ†Œ ν•„λ“œ νƒ€μž…μ΄ μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

participantFields: {
  ...
  type: FieldType
  value: AddressInputValueModel | string | null
}

type FieldType = {
    TEXT = "TEXT",
    CHECKBOX = "CHECKBOX",
    SIGNATURE = "SIGNATURE",
    IMAGE = "IMAGE",
    DROPDOWN = "DROPDOWN", // μ‹ κ·œ μΆ”κ°€
    NAME = "NAME", // μ‹ κ·œ μΆ”κ°€
    COMPANY_NAME = "COMPANY_NAME", // μ‹ κ·œ μΆ”κ°€
    ADDRESS = "ADDRESS", // μ‹ κ·œ μΆ”κ°€
}

// μ‹ κ·œ μΆ”κ°€ (type 이 ADDRESS 일 경우 ν•΄λ‹Ή value λ₯Ό λ°˜ν™˜)
type AddressInputValueModel = { 
    address1: string;
    address2: string;
    city: string;
    province: string;
    zip: string;
    country: AddressCountryCode;
}

🚧

μΆ”κ°€ 된 μ‹ κ·œ ν•„λ“œμœ ν˜•μ€ API μ„œλͺ… μš”μ²­ μ‹œ 아직 이용 ν•  수 μ—†μŠ΅λ‹ˆλ‹€.

μΆ”κ°€ 된 λ¬Έμ„œμ˜ μ‹ κ·œ ν•„λ“œ(λ“œλ‘­λ‹€μš΄ , κ³„μ•½μž 이름, νšŒμ‚¬μ΄λ¦„, μ£Όμ†Œ)λŠ” λͺ¨λ‘μ‹ΈμΈ ν”Œλž«νΌμ—μ„œ μš”μ²­ν•œ λ¬Έμ„œμ— λŒ€ν•œ 응닡 ν˜Έν™˜μ„±μ„ μœ μ§€ν•˜κΈ° μœ„ν•΄ μΆ”κ°€ 된 κ²ƒμœΌλ‘œ APIλ₯Ό μ΄μš©ν•œ μ„œλͺ… μš”μ²­μ‹œμ—λŠ” 아직 μ‚¬μš©ν•  수 μ—†μŠ΅λ‹ˆλ‹€. APIλ₯Ό ν†΅ν•œ μ„œλͺ… μš”μ²­ μ‹œ ν•΄λ‹Ή ν•„λ“œλ“€μ— λŒ€ν•œ 지원 μ—¬λΆ€λŠ” λ‚΄λΆ€ 검토쀑에 μžˆμœΌλ‹ˆ ν•΄λ‹Ή κΈ°λŠ₯ ν•„μš” μ‹œ λͺ¨λ‘μ‹ΈμΈ ν”Œλž«νΌμ„ ν™œμš© λ°”λžλ‹ˆλ‹€.

πŸ“‚ ν…œν”Œλ¦Ώ 쑰회 API 응닡 ν•„λ“œ νƒ€μž… μΆ”κ°€

ν…œν”Œλ¦Ώ 정보 κ°€μ Έμ˜€κΈ° API μ‘λ‹΅μ˜ fields에 λ“œλ‘­λ‹€μš΄, κ³„μ•½μž 이름, νšŒμ‚¬μ΄λ¦„, μ£Όμ†Œ ν•„λ“œ νƒ€μž…μ΄ μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€

각 ν•„λ“œ νƒ€μž…μ€ μ•„λž˜ μ½”λ“œμ—μ„œ μžμ„Ένžˆ ν™•μΈν•˜μ‹€ 수 μžˆμŠ΅λ‹ˆλ‹€.

class DropdownFieldInTemplateResponseDto {
  type: 'DROPDOWN';
  required: boolean
  size: {
    width: number;
    heigth: number;
  };
  position: {
  	x: number;
	  y: number;
	  page: number;
	};
  textStyle: {
    size: number;
    font: string;
  };
  dataLabel: string;
}
  
class NameFieldInTemplateResponseDto {
  type: 'NAME';
  required: boolean
  size: {
    width: number;
    heigth: number;
  };
  position: {
  	x: number;
	  y: number;
	  page: number;
	};
  textStyle: {
    size: number;
    font: string;
  };
  dataLabel: string;
}

class CompanyNameFieldInTemplateResponseDto {
  type: 'COMPANY_NAME';
  required: boolean
  size: {
    width: number;
    heigth: number;
  };
  position: {
  	x: number;
	  y: number;
	  page: number;
	};
  textStyle: {
    size: number;
    font: string;
  };
  dataLabel: string;
}

class AddressFieldInTemplateResponseDto {
  type: 'ADDRESS';
  required: boolean
  size: {
    width: number;
    heigth: number;
  };
  position: {
  	x: number;
	  y: number;
	  page: number;
	};
  textStyle: {
    size: number;
    font: string;
  };
  dataLabel: string;
}