tools.json•20.9 kB
{
"erp_token_al": {
"description": "ERP sisteminden geçici erişim anahtarı (token) alır. Tarayıcıyı açar, kullanıcının şifre girmesini bekler ve #anahtar elementinden token'i alır.",
"handler": "getErpToken",
"inputSchema": {
"type": "object",
"properties": {
"password": {
"type": "string",
"description": "ERP şifresi (opsiyonel - belirtilmezse kullanıcı manuel girer)"
}
},
"required": []
}
},
"erp_token_sil": {
"description": "Cache'deki token'ı siler. Yeni API çağrıları için yeni token alınması gerekecek.",
"handler": "deleteToken",
"inputSchema": {
"type": "object",
"properties": {},
"required": []
}
},
"erp_token_manuel_ekle": {
"description": "Manuel olarak token bilgilerini parse edip cache'e ekler. Token metni HTML formatında olabilir.",
"handler": "addManualToken",
"inputSchema": {
"type": "object",
"properties": {
"tokenText": {
"type": "string",
"description": "Token metni (HTML formatında olabilir, kullanıcı, token, tarihler ve grup bilgilerini içermeli)"
}
},
"required": ["tokenText"]
}
},
"erp_stok_listele": {
"description": "ERP sisteminden stok listesini getirir. Filtreleme parametreleri ile arama yapabilirsiniz.",
"endpoint": "/api/Stok",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"EsnekAramaKisiti": { "type": "string", "description": "Stok kodunda, adında arama" },
"StokID": { "type": "string", "description": "Belirli stok ID'si" },
"SirketID": { "type": "string", "description": "Şirket ID filtresi" },
"SubeID": { "type": "string", "description": "Şube ID filtresi" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'Tarih' asc için, 'Tarih:desc' desc için)" },
"Sayfa": { "type": "string", "description": "Sayfa numarası" },
"SayfaSatirSayisi": { "type": "string", "description": "Sayfa başına kayıt sayısı" }
},
"required": []
}
},
"erp_cari_listele": {
"description": "ERP sisteminden cari listesini getirir. Filtreleme parametreleri ile arama yapabilirsiniz.",
"endpoint": "/api/Cari/",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"EsnekAramaKisiti": { "type": "string", "description": "Cari adında, kodunda arama" },
"CariID": { "type": "string", "description": "Belirli cari ID'si" },
"CariKodu": { "type": "string", "description": "Cari kodu" },
"VergiNo": { "type": "string", "description": "Vergi numarası" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'CariAdi' asc için, 'CariAdi:desc' desc için)" },
"Sayfa": { "type": "string", "description": "Sayfa numarası" },
"SayfaSatirSayisi": { "type": "string", "description": "Sayfa başına kayıt sayısı" }
},
"required": []
}
},
"erp_depo_listele": {
"description": "ERP sisteminden depo listesini getirir.",
"endpoint": "/api/Depo",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"EsnekAramaKisiti": { "type": "string", "description": "Depo adında, kodunda arama" },
"DepoID": { "type": "string", "description": "Belirli depo ID'si" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'DepoAdi' asc için, 'DepoAdi:desc' desc için)" }
},
"required": []
}
},
"erp_seri_lot_listele": {
"description": "ERP sisteminden seri/lot listesini getirir.",
"endpoint": "/api/SeriLot",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"StokID": { "type": "string", "description": "Stok ID filtresi" },
"SeriLotKodu": { "type": "string", "description": "Seri/Lot kodu" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'SeriLotKodu' asc için, 'SeriLotKodu:desc' desc için)" }
},
"required": []
}
},
"erp_barkod_listele": {
"description": "ERP sisteminden barkod listesini getirir.",
"endpoint": "/api/StokBarkod",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"StokID": { "type": "string", "description": "Stok ID filtresi" },
"BarkodNo": { "type": "string", "description": "Barkod numarası" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'BarkodNo' asc için, 'BarkodNo:desc' desc için)" }
},
"required": []
}
},
"erp_doviz_listele": {
"description": "ERP sisteminden döviz listesini getirir.",
"endpoint": "/api/Doviz",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"DovizID": { "type": "string", "description": "Döviz ID filtresi" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'DovizAdi' asc için, 'DovizAdi:desc' desc için)" }
},
"required": []
}
},
"erp_kasa_listele": {
"description": "ERP sisteminden kasa listesini getirir.",
"endpoint": "/api/Kasa/GetKayit",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"KasaID": { "type": "string", "description": "Kasa ID filtresi" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'KasaAdi' asc için, 'KasaAdi:desc' desc için)" }
},
"required": []
}
},
"erp_banka_listele": {
"description": "ERP sisteminden banka listesini getirir.",
"endpoint": "/api/Banka/GetKayit",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"BankaID": { "type": "string", "description": "Banka ID filtresi" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'BankaAdi' asc için, 'BankaAdi:desc' desc için)" }
},
"required": []
}
},
"erp_personel_listele": {
"description": "ERP sisteminden personel listesini getirir.",
"endpoint": "/api/Personel/Get",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"PersonelID": { "type": "string", "description": "Personel ID filtresi" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'PersonelAdi' asc için, 'PersonelAdi:desc' desc için)" }
},
"required": []
}
},
"erp_stok_olustur": {
"description": "ERP sisteminde yeni stok kartı oluşturur. oluşturduktan sonra https://erp.aaro.com.tr/Stok/Kalem?id={id} kullanıcıya bu linki sunabilir",
"endpoint": "/api/Stok",
"method": "POST",
"handler": "createStok",
"inputSchema": {
"type": "object",
"properties": {
"StokKodu": { "type": "string", "description": "Stok kodu (zorunlu)" },
"StokAdi": { "type": "string", "description": "Stok adı (zorunlu)" },
"StokKisaKodu": { "type": "string", "description": "Stok kısa kodu" },
"StokKisaAdi": { "type": "string", "description": "Stok kısa adı" },
"TipID": { "type": "string", "description": "Stok tipi (varsayılan: 105001)" },
"SubeID": { "type": "string", "description": "Şube ID (varsayılan: 1)" },
"SirketID": { "type": "string", "description": "Şirket ID (varsayılan: 1)" },
"Brm1ID": { "type": "string", "description": "Birim ID (varsayılan: 1 - Adet)" },
"StokMuhasebeID": { "type": "string", "description": "Muhasebe ID" },
"Durum": { "type": "boolean", "description": "Aktif/Pasif durumu (varsayılan: true)" }
},
"required": ["StokKodu", "StokAdi"]
}
},
"erp_cari_olustur": {
"description": "ERP sisteminde yeni cari kartı oluşturur. oluşturdukdan sonra kullanıcıya bu linki verebilir https://erp.aaro.com.tr/Cari/Kalem?id={id}",
"endpoint": "/api/Cari",
"method": "POST",
"handler": "createCari",
"inputSchema": {
"type": "object",
"properties": {
"CariKodu": { "type": "string", "description": "Cari kodu (zorunlu)" },
"CariAdi": { "type": "string", "description": "Cari adı (zorunlu)" },
"VergiNo": { "type": "string", "description": "Vergi numarası" },
"VergiDairesiID": { "type": "string", "description": "Vergi dairesi ID" },
"TipID": { "type": "string", "description": "Cari tipi (varsayılan: 2001)" },
"SubeID": { "type": "string", "description": "Şube ID (varsayılan: 1)" },
"SirketID": { "type": "string", "description": "Şirket ID (varsayılan: 1)" },
"Durum": { "type": "boolean", "description": "Aktif/Pasif durumu (varsayılan: true)" }
},
"required": ["CariKodu", "CariAdi"]
}
},
"erp_siparis_listele": {
"description": "ERP sisteminden sipariş hareketlerini listeler.",
"endpoint": "/api/SipStokHareketleri",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"EsnekArama": { "type": "string", "description": "Genel arama terimi" },
"TipID": { "type": "string", "description": "Sipariş tipi (10013: Alınan Sipariş)" },
"CariID": { "type": "string", "description": "Cari ID filtresi" },
"StokID": { "type": "string", "description": "Stok ID filtresi" },
"TarihBas": { "type": "string", "description": "Başlangıç tarihi (YYYY-MM-DD)" },
"TarihBit": { "type": "string", "description": "Bitiş tarihi (YYYY-MM-DD)" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'Tarih' asc için, 'Tarih:desc' desc için)" },
"Sayfa": { "type": "string", "description": "Sayfa numarası" },
"SayfaSatirSayisi": { "type": "string", "description": "Sayfa başına kayıt sayısı" }
},
"required": []
}
},
"erp_fatura_listele": {
"description": "ERP sisteminden fatura hareketlerini listeler.",
"endpoint": "/api/StokHareketleri",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"EsnekArama": { "type": "string", "description": "Genel arama terimi" },
"TipID": { "type": "string", "description": "Fatura tipi (10005: Satış Faturası, 10006: Alış Faturası)" },
"CariID": { "type": "string", "description": "Cari ID filtresi" },
"StokID": { "type": "string", "description": "Stok ID filtresi" },
"TarihBas": { "type": "string", "description": "Başlangıç tarihi (YYYY-MM-DD)" },
"TarihBit": { "type": "string", "description": "Bitiş tarihi (YYYY-MM-DD)" },
"BelgeNo": { "type": "string", "description": "Belge numarası" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'Tarih' asc için, 'Tarih:desc' desc için)" },
"Sayfa": { "type": "string", "description": "Sayfa numarası" },
"SayfaSatirSayisi": { "type": "string", "description": "Sayfa başına kayıt sayısı" }
},
"required": []
}
},
"erp_stok_hareketleri_listele": {
"description": "ERP sisteminden stok hareketlerini listeler.",
"endpoint": "/api/StokHareketleri",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"EsnekArama": { "type": "string", "description": "Genel arama terimi" },
"StokID": { "type": "string", "description": "Stok ID filtresi" },
"TipID": { "type": "string", "description": "Hareket tipi" },
"CariID": { "type": "string", "description": "Cari ID filtresi" },
"DepoID": { "type": "string", "description": "Depo ID filtresi" },
"TarihBas": { "type": "string", "description": "Başlangıç tarihi (YYYY-MM-DD)" },
"TarihBit": { "type": "string", "description": "Bitiş tarihi (YYYY-MM-DD)" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'Tarih' asc için, 'Tarih:desc' desc için)" },
"Sayfa": { "type": "string", "description": "Sayfa numarası" },
"SayfaSatirSayisi": { "type": "string", "description": "Sayfa başına kayıt sayısı" }
},
"required": []
}
},
"erp_dekont_listele": {
"description": "ERP sisteminden dekont başlıklarını listeler.",
"endpoint": "/api/Dekont/Baslik",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"DekontID": { "type": "string", "description": "DekontID filtresi" },
"BelgeNo": { "type": "string", "description": "Belge numarası filtresi" },
"TipID": { "type": "string", "description": "Dekont tipi" },
"TarihBas": { "type": "string", "description": "Başlangıç tarihi (YYYY-MM-DD)" },
"TarihBit": { "type": "string", "description": "Bitiş tarihi (YYYY-MM-DD)" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'Tarih' asc için, 'Tarih:desc' desc için)" },
"Sayfa": { "type": "string", "description": "Sayfa numarası" },
"SayfaSatirSayisi": { "type": "string", "description": "Sayfa başına kayıt sayısı" }
},
"required": []
}
},
"erp_personel_mesai_hareket": {
"description": "AARO ERP'den personellerin mesai hareketlerini çeker bu veriyi pdks cihazından çeker hangi personel kaç saat çalıştı bunu listeler",
"endpoint": "/api/PerMesaiHareketDetay",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"personelAdiSoyadiBas": { "type": "string", "description": "verinin hangi personele ait olduğunu ifade eder" },
"baslangicBas": { "type": "string", "description": "Başlangıç tarihi (YYYY-MM-DD)" },
"bitisBit": { "type": "string", "description": "Bitiş tarihi (YYYY-MM-DD)" },
"SiralamaKisiti": { "type": "string", "description": "Sıralama kriteri (örn: 'Tarih' asc için, 'Tarih:desc' desc için)" }
},
"required": []
}
},
"erp_dekont_olustur": {
"description": "ERP sisteminde yeni dekont başlığı oluşturur (Sipariş, Teklif, Fatura vb.). Görüntülemek için: https://erp.aaro.com.tr/Fatura/Kalem?id={DekontID}",
"endpoint": "/api/Dekont/Baslik?KayitTipi=1",
"method": "POST",
"handler": "createDekont",
"inputSchema": {
"type": "object",
"properties": {
"TipID": { "type": "string", "description": "Dekont tipi (10013: Alınan Sipariş, 10014: Verilen Sipariş, 10015: Alınan Teklif, 10016: Verilen Teklif, 10005: Satış Faturası, 10006: Alış Faturası, 10007: Satış İade Faturası, 10008: Alış İade Faturası)" },
"Tarih": { "type": "string", "description": "Dekont tarihi (YYYY-MM-DD)" },
"BelgeNo": { "type": "string", "description": "Belge numarası aynı tipte bulunan id ye göre en son eklenen dekontu bul ve onun belgenosuna +1 ekle" },
"Vade": { "type": "string", "description": "Vade tarihi (YYYY-MM-DD)" },
"SirketID": { "type": "string", "description": "Şirket ID (varsayılan: 1)" },
"SubeID": { "type": "string", "description": "Şube ID (varsayılan: 1)" },
"RefDepoID": { "type": "string", "description": "Referans depo ID (varsayılan: 1)" },
"CariID": { "type": "string", "description": "Cari ID (zorunlu)" },
"DovizID": { "type": "string", "description": "Döviz ID (varsayılan: 1)" },
"Aciklama": { "type": "string", "description": "Açıklama" }
},
"required": ["TipID", "Tarih", "BelgeNo", "CariID"]
}
},
"erp_dekont_kalem_ekle": {
"description": "Dekonta stok kalemi ekler",
"endpoint": "/api/Dekont/Kalem?KayitTipi=1",
"method": "POST",
"handler": "addDekontKalem",
"inputSchema": {
"type": "object",
"properties": {
"DekontID": { "type": "string", "description": "Dekont ID (zorunlu)" },
"StokID": { "type": "string", "description": "Stok ID (zorunlu)" },
"Miktar": { "type": "number", "description": "Miktar (zorunlu)" },
"Tutar": { "type": "number", "description": "Tutar (zorunlu)" },
"DovizID": { "type": "string", "description": "Döviz ID (varsayılan: 1)" },
"TutarDvz": { "type": "number", "description": "Dövizli tutar (varsayılan: 0)" },
"BA": { "type": "string", "description": "Borç/Alacak (varsayılan: A)" },
"DepoID": { "type": "string", "description": "Depo ID (varsayılan: 1)" },
"TeslimTarihi": { "type": "string", "description": "Teslim tarihi (YYYY-MM-DD)" },
"VergiID": { "type": "string", "description": "Vergi ID (varsayılan: 1)" },
"VergiOrani": { "type": "number", "description": "Vergi oranı (varsayılan: 18)" }
},
"required": ["DekontID", "StokID", "Miktar", "Tutar"]
}
},
"erp_dekont_tamamla": {
"description": "Dekontu tamamlar ve işlemi sonlandırır. Görüntülemek için: https://erp.aaro.com.tr/Fatura/Kalem?id={DekontID}",
"endpoint": "/api/Dekont/Tamamla",
"method": "POST",
"inputSchema": {
"type": "object",
"properties": {
"DekontID": { "type": "string", "description": "Dekont ID (zorunlu)" }
},
"required": ["DekontID"]
}
},
"erp_dekont_duzenle": {
"description": "ERP sisteminden dekont başlıklarını düzenler. Alınan sipariş, verilen sipariş, verilen teklif, alınan teklif, satış fatura, alış fatura düzenler",
"endpoint": "/api/Dekont/Baslik?KayitTipi=2",
"method": "POST",
"handler": "updateDekont",
"inputSchema": {
"type": "object",
"properties": {
"DekontID": { "type": "string", "description": "Düzenlenecek dekontun ID'si (zorunlu)" },
"Tarih": { "type": "string", "description": "Dekontun yeni tarihi, değişmeyecek ise eski tarihi giriniz (YYYY-MM-DD)" },
"BelgeNo": { "type": "string", "description": "Dekontun belge nosu, değişmeyecek ise eski belge nosunu giriniz" },
"Vade": { "type": "string", "description": "Dekontun yeni vade tarihi, değişmeyecek ise eski vadeyi giriniz (YYYY-MM-DD)" },
"SirketID": { "type": "string", "description": "Dekontun yeni şirket ID'si, değişmeyecek ise eski şirket ID'sini giriniz" },
"SubeID": { "type": "string", "description": "Dekontun yeni şube ID'si, değişmeyecek ise eski şube ID'sini giriniz" },
"RefDepoID": { "type": "string", "description": "Dekontun yeni referans depo ID'si" },
"CariID": { "type": "string", "description": "Dekontun yeni cari ID'si" },
"DovizID": { "type": "string", "description": "Dekontun yeni döviz ID'si" },
"Aciklama": { "type": "string", "description": "Dekontun yeni açıklaması" }
},
"required": ["DekontID"]
}
},
"erp_test_webhook": {
"description": "Test amaçlı webhook URL'sine ERP API request'i gönderir. Aynı header ve body bilgileri ile test endpoint'ine istek atar.",
"handler": "testWebhook",
"inputSchema": {
"type": "object",
"properties": {
"endpoint": { "type": "string", "description": "Test edilecek ERP endpoint'i (örn: /api/Stok)" },
"method": { "type": "string", "description": "HTTP metodu (GET veya POST)", "enum": ["GET", "POST"] },
"body": { "type": "object", "description": "POST request için body verisi" },
"params": { "type": "object", "description": "Query parametreleri" }
},
"required": ["endpoint", "method"]
}
},
"erp_test_hook": {
"description": "Test amaçlı kullanılmaktadır hooklar test edilir. Harici URL'ye istek gönderir.",
"endpoint": "https://webhook-test.com/98d5387842dbdb11a49158e688a67d65",
"method": "GET",
"inputSchema": {
"type": "object",
"properties": {
"EsnekAramaKisiti": { "type": "string", "description": "Stok kodunda, adında arama" },
"StokID": { "type": "string", "description": "Belirli stok ID'si" },
"SirketID": { "type": "string", "description": "Şirket ID filtresi" },
"SubeID": { "type": "string", "description": "Şube ID filtresi" },
"Sayfa": { "type": "string", "description": "Sayfa numarası" },
"SayfaSatirSayisi": { "type": "string", "description": "Sayfa başına kayıt sayısı" }
},
"required": []
}
}
}