Merge pull request 'upd: api' (#8) from amalia/04-nov-25 into main

Reviewed-on: http://wibugit.wibudev.com/wibu/jenna-mcp/pulls/8
This commit is contained in:
2025-11-04 15:33:42 +08:00
4 changed files with 9 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ export const categoryPelayananSurat = [
name: "Surat Keterangan Belum Kawin", name: "Surat Keterangan Belum Kawin",
syaratDokumen: [ syaratDokumen: [
{ name: "pengantar kelian", desc: "Surat Pengantar Kelian Banjar Dinas" }, { name: "pengantar kelian", desc: "Surat Pengantar Kelian Banjar Dinas" },
{ name: "ktp/kk", desc: "Fotokopi KTP dan Kartu Keluarga" }, { name: "ktp/kk", desc: "Fotokopi KTP atau Kartu Keluarga" },
{ name: "akta cerai", desc: "Fotokopi Akta Cerai bagi yang berstatus janda/duda" } { name: "akta cerai", desc: "Fotokopi Akta Cerai bagi yang berstatus janda/duda" }
], ],
dataText: ["nik", "nama", "tempat tanggal lahir", "jenis kelamin", "alamat", "status perkawinan"] dataText: ["nik", "nama", "tempat tanggal lahir", "jenis kelamin", "alamat", "status perkawinan"]
@@ -43,7 +43,7 @@ export const categoryPelayananSurat = [
name: "Surat Keterangan Kelakuan Baik (Pengantar SKCK)", name: "Surat Keterangan Kelakuan Baik (Pengantar SKCK)",
syaratDokumen: [ syaratDokumen: [
{ name: "pengantar kelian", desc: "Surat Pengantar Kelian Banjar Dinas" }, { name: "pengantar kelian", desc: "Surat Pengantar Kelian Banjar Dinas" },
{ name: "ktp/kk", desc: "Fotokopi KTP dan Kartu Keluarga" } { name: "ktp/kk", desc: "Fotokopi KTP atau Kartu Keluarga" }
], ],
dataText: ["nik", "nama", "tempat tanggal lahir", "jenis kelamin", "alamat", "keperluan"] dataText: ["nik", "nama", "tempat tanggal lahir", "jenis kelamin", "alamat", "keperluan"]
}, },

View File

@@ -96,7 +96,6 @@ const LayananRoute = new Elysia({
detail: { detail: {
summary: "Create Layanan KTP/KK", summary: "Create Layanan KTP/KK",
description: "Create a new service request for KTP or KK.", description: "Create a new service request for KTP or KK.",
tags: ["mcp"],
}, },
} }
) )
@@ -132,7 +131,6 @@ const LayananRoute = new Elysia({
detail: { detail: {
summary: "Cek Status KTP", summary: "Cek Status KTP",
description: "Retrieve the current status of a KTP/KK request by unique ID.", description: "Retrieve the current status of a KTP/KK request by unique ID.",
tags: ["mcp"],
}, },
} }
); );

View File

@@ -13,6 +13,9 @@ const PelayananRoute = new Elysia({
const data = await prisma.categoryPelayanan.findMany({ const data = await prisma.categoryPelayanan.findMany({
where: { where: {
isActive: true isActive: true
},
orderBy:{
name: "asc"
} }
}) })
return data return data
@@ -307,7 +310,7 @@ const PelayananRoute = new Elysia({
idUser: t.String({ minLength: 1, error: "idUser harus diisi" }), idUser: t.String({ minLength: 1, error: "idUser harus diisi" }),
}), }),
detail: { detail: {
summary: "Update status pengajuan pelayanan surat", summary: "Update Status Pengajuan Pelayanan Surat",
description: `tool untuk update status pengajuan pelayanan surat`, description: `tool untuk update status pengajuan pelayanan surat`,
tags: ["mcp"] tags: ["mcp"]
} }

View File

@@ -13,6 +13,9 @@ const PengaduanRoute = new Elysia({
const data = await prisma.categoryPengaduan.findMany({ const data = await prisma.categoryPengaduan.findMany({
where: { where: {
isActive: true isActive: true
},
orderBy: {
name: "asc"
} }
}) })
return data return data