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;
}