getAttributes
Tüm özellik seti nesnelerini alma
AttributesSets.getAttributes(langCode, offset, limit, typeId, sortBy)
const value = await AttributesSets.getAttributes()
Şema
langCode: string
dil kodu
örnek: en_US
offset: number
kayıt seçiminde parametre ofseti, varsayılan - 0
örnek: 0
limit: number
kayıt seçiminde sınırlama parametresi, varsayılan - 30
örnek: 30
typeId: any
özellik seti türünün tanımlayıcısı
örnek: null
sortBy: string
sıralama anahtarı
örnek: id
Bu yöntem, tüm özellik seti nesnelerini ve toplamı döndürür.
Örnek dönüş:
{
"total": 100,
"items": [
{
"id": 1764,
"updatedDate": "2025-01-31T21:53:39.276Z",
"version": 10,
"identifier": "my_id",
"title": "Sayfalar için set",
"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
}
]
}
Şema
total: number
Bulunan kayıtların toplam sayısı
örnek: 100
items: Array
**
id: number
Nesne tanımlayıcısı
örnek: 1764
updatedDate: string($date-time)
Nesne değişiklik tarihi
örnek: ''
version: number
Nesne değişiklik sürüm numarası
örnek: 10
identifier: string
Kayıt alanı için metin tanımlayıcısı
örnek: 'my-id'
title: string
Özellik seti adı
örnek: Sayfalar için set
schema: Record<string, string>
Özellik setinin (set tarafından kullanılan özellikler) JSON açıklaması
örnek:
{
"attribute1": {
"id": 1,
"type": "string",
"isPrice": false,
"original": true,
"identifier": "string",
"localizeInfos": {
"en_US": { "title": "String" }
}
}
}
title: string
Özellik seti adı
örnek: Sayfalar için set
isVisible: boolean
Setin görünürlük bayrağı
type: object
Set türü nesnesi
position: number
Pozisyon numarası
örnek: 1