Ana içeriğe geç

getAllForms

Tüm form nesnelerini al.

Açıklama

Bu yöntem, API'den tüm form nesnelerini alır. Bir Promise döner ve bu Promise, FormEntity nesnelerinin bir dizisine çözülür. Bir Promise döner ve bu Promise, bir IFormsEntity[] nesnesine çözülür.

Forms.getAllForms(

langCode, offset, limit

);

Parametreler şeması

Şema

langCode: string
Dil kodu. Varsayılan: "en_US"
örnek: "en_US"

offset: number
Sayfalandırma için parametre. Varsayılan: 0
örnek: 0

limit: number
Sayfalandırma için parametre. Varsayılan: 30
örnek: 30

Örnekler

Minimal örnek

const response = await Forms.getAllForms();

Özelliklerle örnek

const response = await Forms.getAllForms('en_US', 0, 30);

Örnek yanıt

[
{
"id": 9,
"attributeSetId": 20,
"type": "sing_in_up",
"localizeInfos": {
"title": "Kayıt",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 1,
"identifier": "reg",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "string",
"marker": "email_reg",
"isLogin": true,
"isSignUp": false,
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"emailInspectionValidator": true
},
"localizeInfos": {
"title": "email"
},
"additionalFields": [],
"isNotificationEmail": false,
"isNotificationPhoneSMS": null,
"isNotificationPhonePush": null
},
{
"type": "string",
"marker": "password_reg",
"isLogin": null,
"isSignUp": false,
"position": 2,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
},
"stringInspectionValidator": {
"stringMax": 0,
"stringMin": 0,
"stringLength": 0
}
},
"localizeInfos": {
"title": "şifre"
},
"additionalFields": [],
"isNotificationEmail": false,
"isNotificationPhoneSMS": null,
"isNotificationPhonePush": null
},
{
"type": "string",
"marker": "name_reg",
"isLogin": null,
"isSignUp": true,
"position": 3,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"localizeInfos": {
"title": "isim"
},
"additionalFields": [],
"isNotificationEmail": false,
"isNotificationPhoneSMS": null,
"isNotificationPhonePush": null
},
"..."
]
},
{
"id": 11,
"attributeSetId": 28,
"type": "data",
"localizeInfos": {
"title": "Program",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 2,
"identifier": "schedule_form",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "timeInterval",
"marker": "schedule",
"isLogin": null,
"isSignUp": null,
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"localizeInfos": {
"title": "Program",
"intervals": [
{
"id": "f88c8793-798d-4fb1-9f8f-7b2013bcf04f",
"range": [
"2025-05-07T21:00:00.000Z",
"2025-05-07T21:00:00.000Z"
],
"external": [],
"intervals": [
{
"id": "47851bf0-1d39-422f-a155-3a6ba1d00a13",
"end": {
"hours": 12,
"minutes": 0
},
"start": {
"hours": 9,
"minutes": 0
},
"period": 60
}
],
"inEveryWeek": true,
"inEveryMonth": true
}
]
},
"additionalFields": [],
"isNotificationEmail": null,
"isNotificationPhoneSMS": null,
"isNotificationPhonePush": null
}
]
},
{
"id": 10,
"attributeSetId": 16,
"type": null,
"localizeInfos": {
"title": "Koleksiyon formu ru_RU",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 3,
"identifier": "collection_form",
"processingType": "script",
"templateId": null,
"attributes": {}
},
"..."
]

Yanıt şeması

Şema: IFormsEntity[]

id: number
Nesnenin tanımlayıcısı.
örnek: 12345

attributeSetId: number | null
Kullanılan özellik setinin tanımlayıcısı veya geçerli değilse null.
örnek: 1234

type: string | null
Form tipi.
örnek: "contact"

localizeInfos: ILocalizeInfo
Formun adı, yerelleştirmeyi dikkate alarak.
örnek:

{
"key": "value"
}

version: number
Nesnenin sürüm numarası.
örnek: 1

position: number
Nesnenin pozisyonu.
örnek: 1

identifier: string
Kayıt alanı için metinsel tanımlayıcı.
örnek: "form_contact_us"

processingType: string
Form işleme türü.
örnek: "async"

templateId: number | null
Form tarafından kullanılan şablonun tanımlayıcısı veya hiç şablon kullanılmıyorsa null.
örnek: 6789

attributes: IAttributes[] | Record<string, any>
Formun özellikleri, bir dizi özellik nesnesi veya anahtar-değer çiftleri kaydı olabilir.
örnek:

{
"key": "value"
}