getAttributeSetByMarker
الحصول على كائن واحد من مجموعة السمات المحددة بواسطة العلامة
AttributesSets.getAttributeSetByMarker(marker, langCode)
const value = await AttributesSets.getAttributeSetByMarker('my-marker')
Schema
marker:* string معرف نصي (علامة) لمجموعة السمات مثال: 'form'
langCode: string رمز اللغة مثال: en_US
تُرجع هذه الطريقة سمة واحدة مع بيانات من مجموعة السمات
مثال على الإرجاع:
{
"id": 1764,
"updatedDate": "2025-01-31T22:25:11.952Z",
"version": 10,
"identifier": "my-id",
"title": "مجموعة للصفحات",
"schema": {
"attribute1": {
"id": 1,
"type": "string",
"isPrice": false,
"original": true,
"identifier": "string",
"localizeInfos": {
"en_US": {
"title": "String"
}
}
}
},
"isVisible": true,
"type": {
"id": 5,
"type": "forProducts"
},
"position": 1
}
Schema
id: number معرف الكائن مثال: 1764
updatedDate: string($date-time) تاريخ تعديل الكائن مثال: ''
version: number رقم إصدار تعديل الكائن مثال: 10
identifier:* string معرف نصي لحقل السجل مثال: 'my-id'
title:* string اسم مجموعة السمات مثال: 'مجموعة للصفحات'
schema:* Record<string, string>
وصف JSON للمخطط (السمات المستخدمة من قبل المجموعة) لمجموعة السمات
مثال:
{
"attribute1": {
"id": 1,
"type": "string",
"isPrice": false,
"original": true,
"identifier": "string",
"localizeInfos": {
"en_US": {
"title": "String"
}
}
}
}
isVisible:* boolean علامة رؤية المجموعة
type:* object كائن نوع المجموعة
position:* number رقم الموضع مثال: 1