getAllTypes
الحصول على جميع الأنواع.
الوصف
يجلب جميع الأنواع العامة ويُعيد مصفوفة من كائنات IGeneralTypesEntity.
.getAllTypes();
أمثلة
مثال بسيط
const response = await GeneralTypes.getAllTypes();
مثال على الاستجابة
[
{
"id": 20,
"type": "service"
},
{
"id": 1,
"type": "product"
},
{
"id": 3,
"type": "error_page"
}
]
مخطط الاستجابة
المخطط: IGeneralTypesEntity[]
id: number
معرّف النوع.
مثال: 1
type: BlockType
اسم النوع: قيمة BlockType مثل "product" أو "catalog_page" أو "product_block" أو "service".
مثال: "product"