Skip to content

Commit

Permalink
Merge pull request #19 from achmadhadikurnia/main
Browse files Browse the repository at this point in the history
Make data from endpoint as is
  • Loading branch information
achmadhadikurnia authored Feb 19, 2024
2 parents 9e7e6ac + 0d9145c commit c25926b
Show file tree
Hide file tree
Showing 51 changed files with 167 additions and 320 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ php artisan vendor:publish --tag="siasn-referensi-config"

## Usage

Coming Soon
Pull referensi data from siasn to database

```bash
php artisan siasn-referensi:pull
```

## Testing

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.8",
"nunomaduro/larastan": "^2.0.1",
"larastan/larastan": "^2.0.1",
"orchestra/testbench": "^8.8",
"pestphp/pest": "^2.20",
"pestphp/pest-plugin-arch": "^2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public function up(): void
{
Schema::create('siasn_referensi_asn_jenis_jabatan', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('nama')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public function up(): void
Schema::create('siasn_referensi_asn_jenjang_jabatan', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('nama')->nullable();
$table->string('asn_jenis_jabatan_id')->nullable();
$table->string('asnJenisJabatanId')->nullable();
$table->string('level')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ public function up(): void
Schema::create('siasn_referensi_eselon', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('nama')->nullable();
$table->string('golongan_terendah_id')->nullable();
$table->string('golongan_tertinggi_id')->nullable();
$table->string('terendah_id')->nullable();
$table->string('tertinggi_id')->nullable();
$table->string('eselon_level_id')->nullable();
$table->string('asn_jenjang_jabatan_id')->nullable();
$table->string('jabatan_asn')->nullable();
$table->string('level_kompetensi_jabatan')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public function up(): void
Schema::create('siasn_referensi_golongan', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('nama')->nullable();
$table->string('nama_pangkat')->nullable();
$table->string('fungsi_kredit_utama')->nullable();
$table->string('fungsi_kredit_tambahan')->nullable();
$table->string('fungsi_kredit_total')->nullable();
$table->string('namaPangkat')->nullable();
$table->string('fungKredututama')->nullable();
$table->string('fungKreditTambahan')->nullable();
$table->string('fungKreditTotal')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ public function up(): void
{
Schema::create('siasn_referensi_instansi', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('lokasi_id')->nullable();
$table->string('lokasiId')->nullable();
$table->string('nama')->nullable();
$table->string('jenis')->nullable();
$table->string('kode_cepat')->nullable();
$table->string('proses_berkas_dipusat')->nullable();
$table->string('kode_cepat_merger')->nullable();
$table->string('cepatKode')->nullable();
$table->string('prosesBerkasDipusat')->nullable();
$table->string('mgrCepatKode')->nullable();
$table->string('status')->nullable();
$table->string('kode_cepat5')->nullable();
$table->string('kode_cepat5_lama')->nullable();
$table->string('nama_baru')->nullable();
$table->string('nama_jabatan')->nullable();
$table->string('jenis_instansi_id')->nullable();
$table->string('cepatKode5')->nullable();
$table->string('cepatKode5Lama')->nullable();
$table->string('namaBaru')->nullable();
$table->string('namaJabatan')->nullable();
$table->string('jenisInstansiId')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,30 @@ public function up(): void
{
Schema::create('siasn_referensi_jabatan_fungsional', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('min_golongan_id')->nullable();
$table->string('max_golongan_id')->nullable();
$table->string('min_gol_id')->nullable();
$table->string('max_gol_id')->nullable();
$table->string('nama')->nullable();
$table->string('usia_bup')->nullable();
$table->string('tunjangan_jabatan')->nullable();
$table->string('bup_usia')->nullable();
$table->string('tun_jabatan')->nullable();
$table->string('bobot')->nullable();
$table->string('kel_jabatan_id')->nullable();
$table->string('kode_cepat')->nullable();
$table->string('kode_cepat_merger')->nullable();
$table->string('cepat_kode')->nullable();
$table->string('mgr_cepat_kode')->nullable();
$table->string('jenis')->nullable();
$table->string('kode_cepat_new')->nullable();
$table->string('cepat_kode_new')->nullable();
$table->string('status')->nullable();
$table->string('jumlah_formasi')->nullable();
$table->string('jml_formasi')->nullable();
$table->string('nama_asli')->nullable();
$table->string('jenjang')->nullable();
$table->string('jf_ex_medis')->nullable();
$table->string('is_syarat_jabatan')->nullable();
$table->string('jenis_jabatan_id')->nullable();
$table->string('jenis_jabatan_nama')->nullable();
$table->string('kode_jenjang_jabatan')->nullable();
$table->string('asn_jenjang_jabatan')->nullable();
$table->string('level')->nullable();
$table->string('rumpun_jabatan_id')->nullable();
$table->string('rumpun_jabatan_nama')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,22 @@ public function up(): void
Schema::create('siasn_referensi_jabatan_fungsional_umum', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('nama')->nullable();
$table->string('kode_cepat')->nullable();
$table->string('cepat_kode')->nullable();
$table->string('wajib_ganti_tertentu')->nullable();
$table->string('jenis_jabatan_umum_id')->nullable();
$table->string('kode_cepat_merger')->nullable();
$table->string('mgr_cepat_kode')->nullable();
$table->string('nama_asli')->nullable();
$table->string('kode_menpan')->nullable();
$table->string('instansi_id')->nullable();
$table->string('status')->nullable();
$table->string('asal_peraturan_id')->nullable();
$table->string('jfu_urusan_pemerintahan')->nullable();
$table->string('jenis_jabatan_umum_id')->nullable();
$table->string('jenis_jabatan_umum_nama')->nullable();
$table->string('asn_jenjang_jabatan_id')->nullable();
$table->string('asn_jenjang_jabatan_nama')->nullable();
$table->string('level')->nullable();
$table->string('ref_urusan_pemerintahan_id')->nullable();
$table->string('ref_urusan_pemerintahan_nama')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function up(): void
Schema::create('siasn_referensi_jenis_hukuman', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('nama')->nullable();
$table->string('jenis_tingkat_hukuman_id')->nullable();
$table->string('jenisTingkatHukumanId')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ public function up(): void
{
Schema::create('siasn_referensi_kanreg', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('regional_kota')->nullable();
$table->string('regKota')->nullable();
$table->string('nama')->nullable();
$table->string('pengenal')->nullable();
$table->string('satuan_kerja_id')->nullable();
$table->string('tanggal_jorge')->nullable();
$table->string('satuanKerjaId')->nullable();
$table->string('tanggalJorge')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ public function up(): void
{
Schema::create('siasn_referensi_kel_jabatan', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('rumpun_jabatan_id')->nullable();
$table->string('rumpunJabatanId')->nullable();
$table->string('nama')->nullable();
$table->string('lingkup')->nullable();
$table->text('tugas_pokok')->nullable();
$table->text('pejabat_pak')->nullable();
$table->string('pembina_id')->nullable();
$table->string('jenis_jabatan_umum_id')->nullable();
$table->text('tugasPokok')->nullable();
$table->text('pejabatPak')->nullable();
$table->string('pembinaId')->nullable();
$table->string('jenisJabatanUmumId')->nullable();
$table->string('status')->nullable();
$table->string('kode_rumpun')->nullable();
$table->string('kode_kelompok')->nullable();
$table->string('jenis_jabatan_umum_baru_id')->nullable();
$table->string('kesehatan_nonmedis')->nullable();
$table->string('kodeRumpun')->nullable();
$table->string('kodeKelompok')->nullable();
$table->string('jenisJabatanUmumBaruId')->nullable();
$table->string('kesehatanNonmedis')->nullable();
$table->string('refUrusanPemerintahanId')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up(): void
$table->string('id')->primary();
$table->string('nama')->nullable();
$table->string('eselon_level')->nullable();
$table->string('ncsis_time')->nullable();
$table->string('ncsistime')->nullable();
$table->string('struktural_pns')->nullable();
$table->timestamps();
$table->softDeletes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ public function up(): void
{
Schema::create('siasn_referensi_lokasi', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('kanreg_id')->nullable();
$table->string('lokasi_id')->nullable();
$table->string('kanregId')->nullable();
$table->string('lokasiId')->nullable();
$table->string('nama')->nullable();
$table->string('kode_cepat')->nullable();
$table->string('cepatKode')->nullable();
$table->string('jenis')->nullable();
$table->string('jenis_kabupaten')->nullable();
$table->string('removal_date')->nullable();
$table->string('jenis_desa')->nullable();
$table->string('tanggal_jorge')->nullable();
$table->string('kode_cepat_merger')->nullable();
$table->string('ibu_kota')->nullable();
$table->string('jenisKabupaten')->nullable();
$table->string('removalDate')->nullable();
$table->string('jenisDesa')->nullable();
$table->string('tanggalJorge')->nullable();
$table->string('mgrCepatKode')->nullable();
$table->string('ibukota')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public function up(): void
$table->string('id')->primary();
$table->string('tingkat_pendidikan_id')->nullable();
$table->string('nama')->nullable();
$table->string('kode_cepat')->nullable();
$table->string('kode_cepat_merger')->nullable();
$table->string('cepat_kode')->nullable();
$table->string('mgr_cepat_kode')->nullable();
$table->string('nama_asli')->nullable();
$table->string('status')->nullable();
$table->string('sub_rumpun_prog_id')->nullable();
$table->string('kode_cepat_induk')->nullable();
$table->string('sub_rumpun_prog_kode')->nullable();
$table->string('subrumpun_prog_id')->nullable();
$table->string('cepat_kode_induk')->nullable();
$table->string('subrumpun_prog_kode')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ public function up(): void
{
Schema::create('siasn_referensi_ref_dokumen', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('layanan_id')->nullable();
$table->string('layanan_nama')->nullable();
$table->string('sub_layanan_id')->nullable();
$table->string('sub_layanan_nama')->nullable();
$table->string('detail_layanan_id')->nullable();
$table->string('detail_layanan_nama')->nullable();
$table->string('layananId')->nullable();
$table->string('layananNama')->nullable();
$table->string('subLayananId')->nullable();
$table->string('subLayananNama')->nullable();
$table->string('detailLayananId')->nullable();
$table->string('detailLayananNama')->nullable();
$table->string('document')->nullable();
$table->string('jenis_dokumen')->nullable();
$table->string('file_type')->nullable();
$table->string('link_proses')->nullable();
$table->string('jenisDokumen')->nullable();
$table->string('fileType')->nullable();
$table->string('linkProses')->nullable();
$table->string('mandatory')->nullable();
$table->timestamps();
$table->softDeletes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public function up(): void
$table->string('id')->primary();
$table->string('deskripsi')->nullable();
$table->string('peraturan')->nullable();
$table->string('kode')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ public function up(): void
{
Schema::create('siasn_referensi_satuan_kerja', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('kanreg_id')->nullable();
$table->string('lokasi_id')->nullable();
$table->string('instansi_id')->nullable();
$table->string('kanregId')->nullable();
$table->string('lokasiId')->nullable();
$table->string('instansiId')->nullable();
$table->string('nama')->nullable();
$table->string('parent_id')->nullable();
$table->string('jenis_satuan_kerja_id')->nullable();
$table->string('unblock_code')->nullable();
$table->string('parentId')->nullable();
$table->string('jenisSatuanKerjaId')->nullable();
$table->string('unblockCode')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public function up(): void
$table->string('nama')->nullable();
$table->string('golongan_awal_id')->nullable();
$table->string('id_lama')->nullable();
$table->string('group_tingkat_penddidikan_id')->nullable();
$table->string('group_tingkat_penddidikan_nama')->nullable();
$table->string('group_tk_pend_id')->nullable();
$table->string('group_tk_pend_nm')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
2 changes: 2 additions & 0 deletions src/Commands/PullCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public function handle()
$errorMessage = 'Data not found';
$endpointErrors->put($endpoint, $errorMessage);
$this->components->error($errorMessage);

return self::FAILURE;
}
} catch (\Exception $e) {
$errorMessage = $e->getMessage();
Expand Down
Loading

0 comments on commit c25926b

Please sign in to comment.