getAllForms
احصل على جميع كائنات النموذج.
Description
تسترجع هذه الطريقة جميع كائنات النموذج من واجهة برمجة التطبيقات (API). تعيد Promise التي تحل إلى مصفوفة من كائنات FormEntity. تعيد Promise التي تحل إلى كائن IFormsEntity[].
Forms.getAllForms(
langCode,
offset,
limit
);
Parameters schema
Schema
langCode: string
رمز اللغة. الافتراضي: "en_US"
مثال: "en_US"
offset: number
معامل للتصفح. الافتراضي: 0
مثال: 0
limit: number
معامل للتصفح. الافتراضي: 30
مثال: 30
Examples
Minimal example
const response = await Forms.getAllForms();
Example with attributes
const response = await Forms.getAllForms('en_US', 0, 30);
Example response
[
{
"id": 9,
"attributeSetId": 20,
"type": "sing_in_up",
"localizeInfos": {
"title": "التسجيل",
"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": "البريد الإلكتروني"
},
"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": "كلمة المرور"
},
"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": "الاسم"
},
"additionalFields": [],
"isNotificationEmail": false,
"isNotificationPhoneSMS": null,
"isNotificationPhonePush": null
},
"..."
]
},
{
"id": 11,
"attributeSetId": 28,
"type": "data",
"localizeInfos": {
"title": "الجدول الزمني",
"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": "الجدول الزمني",
"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": "نموذج جمع البيانات ru_RU",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 3,
"identifier": "collection_form",
"processingType": "script",
"templateId": null,
"attributes": {}
},
"..."
]
Response schema
Schema: IFormsEntity[]
id: number
معرف الكائن.
مثال: 12345
attributeSetId: number | null
معرف مجموعة السمات المستخدمة، أو null إذا لم يكن ذلك قابلاً للتطبيق.
مثال: 1234
type: string | null
نوع النموذج.
مثال: "contact"
localizeInfos: ILocalizeInfo
اسم النموذج، مع الأخذ في الاعتبار التوطين.
مثال:
{
"key": "value"
}
version: number
رقم إصدار الكائن.
مثال: 1
position: number
موضع الكائن.
مثال: 1
identifier: string
المعرف النصي لحقل السجل.
مثال: "form_contact_us"
processingType: string
نوع معالجة النموذج.
مثال: "async"
templateId: number | null
معرف القالب المستخدم من قبل النموذج، أو null إذا لم يتم استخدام قالب.
مثال: 6789
attributes: IAttributes[] | Record<string, any>
سمات النموذج، والتي يمكن أن تكون مصفوفة من كائنات السمات أو سجل من أزواج المفتاح والقيمة.
مثال:
{
"key": "value"
}