Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tangy-coins-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ssecd/jkn': patch
---

Improve types and comments
5 changes: 3 additions & 2 deletions src/antrean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export class Antrean extends BaseApi<'antrean'> {
* @param params parameter berupa bulan, tahun, dan jenis waktu
*/
async dashboardPerBulan(params: {
/** 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 */
/** 1 sampai 12 */
bulan: number;

/** contoh 2023 */
Expand Down Expand Up @@ -451,6 +451,7 @@ export class Antrean extends BaseApi<'antrean'> {
* @param kodeBooking kode booking yang didapat dari servis tambah antrean
*/
async perKodeBooking(kodeBooking: string) {
// TODO: encode kodeBooking param
return this.send<AntreanDetail[]>({
name: 'Antrean Per-KodeBooking',
path: `/antrean/pendaftaran/kodebooking/${kodeBooking}`,
Expand Down Expand Up @@ -479,7 +480,7 @@ export class Antrean extends BaseApi<'antrean'> {
/** kode dokter diambil dari referensi dokter */
dokter: string;

/** hari mulai dari 1 sampai 12 */
/** hari mulai dari 1 sampai 7 */
hari: number;

/** jam praktik */
Expand Down
1 change: 1 addition & 0 deletions src/vclaim/peserta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ interface DataPeserta {
dinsos: string | null;
noSKTM: string | null;
prolanisPRB: string | null;
eSEP: 'True' | 'False' | null;
};
jenisPeserta: {
keterangan: string;
Expand Down
2 changes: 2 additions & 0 deletions src/vclaim/rencana-kontrol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,5 +388,7 @@ interface RencanaKontrolListItem {
namaDokter: string;
noKartu: string;
nama: string;

/** 'Belum' | 'Sudah' */
terbitSEP: 'Belum' | 'Sudah' | string;
}
2 changes: 1 addition & 1 deletion src/vclaim/rujukan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ interface DataRujukan {
dinsos: string | null;
noSKTM: string | null;
prolanisPRB: string | null;
eSEP: string | null;
eSEP: 'True' | 'False' | null;
};
jenisPeserta: {
keterangan: string;
Expand Down
10 changes: 8 additions & 2 deletions src/vclaim/sep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { VClaimBaseApi } from './base.js';
export class SEP extends VClaimBaseApi {
/**
* Buat SEP
*
* @deprecated Gunakan {@link insertV2}
*/
async insert(data: {
/** nomor kartu JKN/BPJS */
Expand Down Expand Up @@ -159,6 +161,7 @@ export class SEP extends VClaimBaseApi {
/**
* Update SEP
*
* @deprecated Gunakan {@link updateV2}
* @returns nomor SEP
*/
async update(data: {
Expand Down Expand Up @@ -275,6 +278,8 @@ export class SEP extends VClaimBaseApi {

/**
* Hapus SEP
*
* @deprecated Gunakan {@link deleteV2}
*/
async delete(data: {
/** nomor SEP yang akan dihapus */
Expand Down Expand Up @@ -860,6 +865,8 @@ export class SEP extends VClaimBaseApi {

/**
* Update tanggal pulang SEP
*
* @deprecated Gunakan {@link updateTanggalPulangV2}
*/
async updateTanggalPulang(data: {
/** nomor SEP */
Expand Down Expand Up @@ -1120,7 +1127,6 @@ export class SEP extends VClaimBaseApi {
nama: string;
}[];
}>({
// TODO: solve error endpoint not found
name: this.name + 'List Random Question',
path: `/SEP/FingerPrint/randomquestion/faskesterdaftar/nokapst/${params.nomorKartu}/tglsep/${params.tanggal}`,
method: 'GET'
Expand Down Expand Up @@ -1230,5 +1236,5 @@ interface SEPDetail {
kode: string;
nama: string;
};
eSEP: string;
eSEP: 'True' | 'False' | null;
}