chore: lint + add source code link
This commit is contained in:
parent
f3db64fa38
commit
35424ceb94
41 changed files with 15150 additions and 45895 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,6 +3,7 @@ docs/
|
||||||
app.db
|
app.db
|
||||||
docker/server
|
docker/server
|
||||||
server
|
server
|
||||||
|
__debug_bin
|
||||||
|
|
||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
.vscode/*
|
.vscode/*
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -12,7 +12,7 @@ CXXFLAGS ?=
|
||||||
CXXFLAGS += -target $(TARGET_TRIPLE)
|
CXXFLAGS += -target $(TARGET_TRIPLE)
|
||||||
|
|
||||||
GOFLAGS ?=
|
GOFLAGS ?=
|
||||||
GOFLAGS += -x -o docker/server
|
GOFLAGS += -x -trimpath -o docker/server
|
||||||
|
|
||||||
all:
|
all:
|
||||||
gen: gen-backend-thrift gen-frontend-thrift
|
gen: gen-backend-thrift gen-frontend-thrift
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"plugins": [
|
|
||||||
"minify-dead-code-elimination",
|
|
||||||
"@babel/plugin-transform-classes",
|
|
||||||
"@babel/plugin-syntax-class-properties",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
2
frontend/.gitignore
vendored
2
frontend/.gitignore
vendored
|
|
@ -8,8 +8,6 @@ pnpm-debug.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
node_modules_linux
|
|
||||||
node_modules_windows
|
|
||||||
dist
|
dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
|
|
|
||||||
104
frontend/gen/CoreService.d.ts
vendored
104
frontend/gen/CoreService.d.ts
vendored
|
|
@ -11,7 +11,6 @@ import Int64 = require('node-int64');
|
||||||
import structs_ttypes = require('./structs_types');
|
import structs_ttypes = require('./structs_types');
|
||||||
import exceptions_ttypes = require('./exceptions_types');
|
import exceptions_ttypes = require('./exceptions_types');
|
||||||
|
|
||||||
|
|
||||||
import ttypes = require('./service_types');
|
import ttypes = require('./service_types');
|
||||||
|
|
||||||
declare class Client {
|
declare class Client {
|
||||||
|
|
@ -19,43 +18,110 @@ declare class Client {
|
||||||
private pClass: thrift.TProtocol;
|
private pClass: thrift.TProtocol;
|
||||||
private _seqid: number;
|
private _seqid: number;
|
||||||
|
|
||||||
constructor(output: thrift.TTransport, pClass: { new(trans: thrift.TTransport): thrift.TProtocol });
|
constructor(
|
||||||
|
output: thrift.TTransport,
|
||||||
|
pClass: { new (trans: thrift.TTransport): thrift.TProtocol },
|
||||||
|
);
|
||||||
|
|
||||||
login(request: structs_ttypes.LoginRequest): Promise<structs_ttypes.LoginResponse>;
|
login(request: structs_ttypes.LoginRequest): Promise<structs_ttypes.LoginResponse>;
|
||||||
|
|
||||||
login(request: structs_ttypes.LoginRequest, callback?: (error: exceptions_ttypes.CoreServicesException, response: structs_ttypes.LoginResponse)=>void): void;
|
login(
|
||||||
|
request: structs_ttypes.LoginRequest,
|
||||||
|
callback?: (
|
||||||
|
error: exceptions_ttypes.CoreServicesException,
|
||||||
|
response: structs_ttypes.LoginResponse,
|
||||||
|
) => void,
|
||||||
|
): void;
|
||||||
|
|
||||||
getProfile(request: structs_ttypes.GetProfileRequest): Promise<structs_ttypes.GetProfileResponse>;
|
getProfile(request: structs_ttypes.GetProfileRequest): Promise<structs_ttypes.GetProfileResponse>;
|
||||||
|
|
||||||
getProfile(request: structs_ttypes.GetProfileRequest, callback?: (error: exceptions_ttypes.CoreServicesException, response: structs_ttypes.GetProfileResponse)=>void): void;
|
getProfile(
|
||||||
|
request: structs_ttypes.GetProfileRequest,
|
||||||
|
callback?: (
|
||||||
|
error: exceptions_ttypes.CoreServicesException,
|
||||||
|
response: structs_ttypes.GetProfileResponse,
|
||||||
|
) => void,
|
||||||
|
): void;
|
||||||
|
|
||||||
logout(request: structs_ttypes.LogoutRequest): Promise<structs_ttypes.LogoutResponse>;
|
logout(request: structs_ttypes.LogoutRequest): Promise<structs_ttypes.LogoutResponse>;
|
||||||
|
|
||||||
logout(request: structs_ttypes.LogoutRequest, callback?: (error: exceptions_ttypes.CoreServicesException, response: structs_ttypes.LogoutResponse)=>void): void;
|
logout(
|
||||||
|
request: structs_ttypes.LogoutRequest,
|
||||||
|
callback?: (
|
||||||
|
error: exceptions_ttypes.CoreServicesException,
|
||||||
|
response: structs_ttypes.LogoutResponse,
|
||||||
|
) => void,
|
||||||
|
): void;
|
||||||
|
|
||||||
getUserList(request: structs_ttypes.GetUserListRequest): Promise<structs_ttypes.GetUserListResponse>;
|
getUserList(
|
||||||
|
request: structs_ttypes.GetUserListRequest,
|
||||||
|
): Promise<structs_ttypes.GetUserListResponse>;
|
||||||
|
|
||||||
getUserList(request: structs_ttypes.GetUserListRequest, callback?: (error: exceptions_ttypes.CoreServicesException, response: structs_ttypes.GetUserListResponse)=>void): void;
|
getUserList(
|
||||||
|
request: structs_ttypes.GetUserListRequest,
|
||||||
|
callback?: (
|
||||||
|
error: exceptions_ttypes.CoreServicesException,
|
||||||
|
response: structs_ttypes.GetUserListResponse,
|
||||||
|
) => void,
|
||||||
|
): void;
|
||||||
|
|
||||||
createUser(request: structs_ttypes.CreateUserRequest): Promise<structs_ttypes.CreateUserResponse>;
|
createUser(request: structs_ttypes.CreateUserRequest): Promise<structs_ttypes.CreateUserResponse>;
|
||||||
|
|
||||||
createUser(request: structs_ttypes.CreateUserRequest, callback?: (error: exceptions_ttypes.CoreServicesException, response: structs_ttypes.CreateUserResponse)=>void): void;
|
createUser(
|
||||||
|
request: structs_ttypes.CreateUserRequest,
|
||||||
|
callback?: (
|
||||||
|
error: exceptions_ttypes.CoreServicesException,
|
||||||
|
response: structs_ttypes.CreateUserResponse,
|
||||||
|
) => void,
|
||||||
|
): void;
|
||||||
|
|
||||||
deleteUsers(request: structs_ttypes.DeleteUsersRequest): Promise<structs_ttypes.DeleteUsersResponse>;
|
deleteUsers(
|
||||||
|
request: structs_ttypes.DeleteUsersRequest,
|
||||||
|
): Promise<structs_ttypes.DeleteUsersResponse>;
|
||||||
|
|
||||||
deleteUsers(request: structs_ttypes.DeleteUsersRequest, callback?: (error: exceptions_ttypes.CoreServicesException, response: structs_ttypes.DeleteUsersResponse)=>void): void;
|
deleteUsers(
|
||||||
|
request: structs_ttypes.DeleteUsersRequest,
|
||||||
|
callback?: (
|
||||||
|
error: exceptions_ttypes.CoreServicesException,
|
||||||
|
response: structs_ttypes.DeleteUsersResponse,
|
||||||
|
) => void,
|
||||||
|
): void;
|
||||||
|
|
||||||
getWajibPajakList(request: structs_ttypes.GetWajibPajakListRequest): Promise<structs_ttypes.GetWajibPajakListResponse>;
|
getWajibPajakList(
|
||||||
|
request: structs_ttypes.GetWajibPajakListRequest,
|
||||||
|
): Promise<structs_ttypes.GetWajibPajakListResponse>;
|
||||||
|
|
||||||
getWajibPajakList(request: structs_ttypes.GetWajibPajakListRequest, callback?: (error: exceptions_ttypes.CoreServicesException, response: structs_ttypes.GetWajibPajakListResponse)=>void): void;
|
getWajibPajakList(
|
||||||
|
request: structs_ttypes.GetWajibPajakListRequest,
|
||||||
|
callback?: (
|
||||||
|
error: exceptions_ttypes.CoreServicesException,
|
||||||
|
response: structs_ttypes.GetWajibPajakListResponse,
|
||||||
|
) => void,
|
||||||
|
): void;
|
||||||
|
|
||||||
createWajibPajak(request: structs_ttypes.CreateWajibPajakRequest): Promise<structs_ttypes.CreateWajibPajakResponse>;
|
createWajibPajak(
|
||||||
|
request: structs_ttypes.CreateWajibPajakRequest,
|
||||||
|
): Promise<structs_ttypes.CreateWajibPajakResponse>;
|
||||||
|
|
||||||
createWajibPajak(request: structs_ttypes.CreateWajibPajakRequest, callback?: (error: exceptions_ttypes.CoreServicesException, response: structs_ttypes.CreateWajibPajakResponse)=>void): void;
|
createWajibPajak(
|
||||||
|
request: structs_ttypes.CreateWajibPajakRequest,
|
||||||
|
callback?: (
|
||||||
|
error: exceptions_ttypes.CoreServicesException,
|
||||||
|
response: structs_ttypes.CreateWajibPajakResponse,
|
||||||
|
) => void,
|
||||||
|
): void;
|
||||||
|
|
||||||
deleteWajibPajakList(request: structs_ttypes.DeleteWajibpajakListRequest): Promise<structs_ttypes.DeleteWajibpajakListResponse>;
|
deleteWajibPajakList(
|
||||||
|
request: structs_ttypes.DeleteWajibpajakListRequest,
|
||||||
|
): Promise<structs_ttypes.DeleteWajibpajakListResponse>;
|
||||||
|
|
||||||
deleteWajibPajakList(request: structs_ttypes.DeleteWajibpajakListRequest, callback?: (error: exceptions_ttypes.CoreServicesException, response: structs_ttypes.DeleteWajibpajakListResponse)=>void): void;
|
deleteWajibPajakList(
|
||||||
|
request: structs_ttypes.DeleteWajibpajakListRequest,
|
||||||
|
callback?: (
|
||||||
|
error: exceptions_ttypes.CoreServicesException,
|
||||||
|
response: structs_ttypes.DeleteWajibpajakListResponse,
|
||||||
|
) => void,
|
||||||
|
): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class Processor {
|
declare class Processor {
|
||||||
|
|
@ -71,5 +137,9 @@ declare class Processor {
|
||||||
process_deleteUsers(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
process_deleteUsers(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
||||||
process_getWajibPajakList(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
process_getWajibPajakList(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
||||||
process_createWajibPajak(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
process_createWajibPajak(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
||||||
process_deleteWajibPajakList(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
process_deleteWajibPajakList(
|
||||||
|
seqid: number,
|
||||||
|
input: thrift.TProtocol,
|
||||||
|
output: thrift.TProtocol,
|
||||||
|
): void;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
//
|
//
|
||||||
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
//
|
//
|
||||||
"use strict";
|
'use strict';
|
||||||
|
|
||||||
const thrift = require('thrift');
|
const thrift = require('thrift');
|
||||||
const Thrift = thrift.Thrift;
|
const Thrift = thrift.Thrift;
|
||||||
|
|
@ -12,7 +12,6 @@ const Int64 = require('node-int64');
|
||||||
const structs_ttypes = require('./structs_types');
|
const structs_ttypes = require('./structs_types');
|
||||||
const exceptions_ttypes = require('./exceptions_types');
|
const exceptions_ttypes = require('./exceptions_types');
|
||||||
|
|
||||||
|
|
||||||
const ttypes = require('./service_types');
|
const ttypes = require('./service_types');
|
||||||
//HELPER FUNCTIONS AND STRUCTURES
|
//HELPER FUNCTIONS AND STRUCTURES
|
||||||
|
|
||||||
|
|
@ -67,7 +66,6 @@ const CoreService_login_args = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_login_result = class {
|
const CoreService_login_result = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -138,7 +136,6 @@ const CoreService_login_result = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_getProfile_args = class {
|
const CoreService_getProfile_args = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -191,7 +188,6 @@ const CoreService_getProfile_args = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_getProfile_result = class {
|
const CoreService_getProfile_result = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -262,7 +258,6 @@ const CoreService_getProfile_result = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_logout_args = class {
|
const CoreService_logout_args = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -315,7 +310,6 @@ const CoreService_logout_args = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_logout_result = class {
|
const CoreService_logout_result = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -386,7 +380,6 @@ const CoreService_logout_result = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_getUserList_args = class {
|
const CoreService_getUserList_args = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -439,7 +432,6 @@ const CoreService_getUserList_args = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_getUserList_result = class {
|
const CoreService_getUserList_result = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -510,7 +502,6 @@ const CoreService_getUserList_result = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_createUser_args = class {
|
const CoreService_createUser_args = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -563,7 +554,6 @@ const CoreService_createUser_args = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_createUser_result = class {
|
const CoreService_createUser_result = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -634,7 +624,6 @@ const CoreService_createUser_result = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_deleteUsers_args = class {
|
const CoreService_deleteUsers_args = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -687,7 +676,6 @@ const CoreService_deleteUsers_args = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_deleteUsers_result = class {
|
const CoreService_deleteUsers_result = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -758,7 +746,6 @@ const CoreService_deleteUsers_result = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_getWajibPajakList_args = class {
|
const CoreService_getWajibPajakList_args = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -811,7 +798,6 @@ const CoreService_getWajibPajakList_args = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_getWajibPajakList_result = class {
|
const CoreService_getWajibPajakList_result = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -882,7 +868,6 @@ const CoreService_getWajibPajakList_result = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_createWajibPajak_args = class {
|
const CoreService_createWajibPajak_args = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -935,7 +920,6 @@ const CoreService_createWajibPajak_args = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_createWajibPajak_result = class {
|
const CoreService_createWajibPajak_result = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -1006,7 +990,6 @@ const CoreService_createWajibPajak_result = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_deleteWajibPajakList_args = class {
|
const CoreService_deleteWajibPajakList_args = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -1059,7 +1042,6 @@ const CoreService_deleteWajibPajakList_args = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreService_deleteWajibPajakList_result = class {
|
const CoreService_deleteWajibPajakList_result = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
|
|
@ -1130,17 +1112,20 @@ const CoreService_deleteWajibPajakList_result = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const CoreServiceClient = exports.Client = class CoreServiceClient {
|
const CoreServiceClient = (exports.Client = class CoreServiceClient {
|
||||||
constructor(output, pClass) {
|
constructor(output, pClass) {
|
||||||
this.output = output;
|
this.output = output;
|
||||||
this.pClass = pClass;
|
this.pClass = pClass;
|
||||||
this._seqid = 0;
|
this._seqid = 0;
|
||||||
this._reqs = {};
|
this._reqs = {};
|
||||||
}
|
}
|
||||||
seqid () { return this._seqid; }
|
seqid() {
|
||||||
new_seqid () { return this._seqid += 1; }
|
return this._seqid;
|
||||||
|
}
|
||||||
|
new_seqid() {
|
||||||
|
return (this._seqid += 1);
|
||||||
|
}
|
||||||
|
|
||||||
login(request) {
|
login(request) {
|
||||||
this._seqid = this.new_seqid();
|
this._seqid = this.new_seqid();
|
||||||
|
|
@ -1156,7 +1141,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
send_login(request) {
|
send_login(request) {
|
||||||
const output = new this.pClass(this.output);
|
const output = new this.pClass(this.output);
|
||||||
const params = {
|
const params = {
|
||||||
request: request
|
request: request,
|
||||||
};
|
};
|
||||||
const args = new CoreService_login_args(params);
|
const args = new CoreService_login_args(params);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1164,8 +1149,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
args.write(output);
|
args.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
return this.output.flush();
|
return this.output.flush();
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
|
||||||
delete this._reqs[this.seqid()];
|
delete this._reqs[this.seqid()];
|
||||||
if (typeof output.reset === 'function') {
|
if (typeof output.reset === 'function') {
|
||||||
output.reset();
|
output.reset();
|
||||||
|
|
@ -1210,7 +1194,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
send_getProfile(request) {
|
send_getProfile(request) {
|
||||||
const output = new this.pClass(this.output);
|
const output = new this.pClass(this.output);
|
||||||
const params = {
|
const params = {
|
||||||
request: request
|
request: request,
|
||||||
};
|
};
|
||||||
const args = new CoreService_getProfile_args(params);
|
const args = new CoreService_getProfile_args(params);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1218,8 +1202,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
args.write(output);
|
args.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
return this.output.flush();
|
return this.output.flush();
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
|
||||||
delete this._reqs[this.seqid()];
|
delete this._reqs[this.seqid()];
|
||||||
if (typeof output.reset === 'function') {
|
if (typeof output.reset === 'function') {
|
||||||
output.reset();
|
output.reset();
|
||||||
|
|
@ -1264,7 +1247,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
send_logout(request) {
|
send_logout(request) {
|
||||||
const output = new this.pClass(this.output);
|
const output = new this.pClass(this.output);
|
||||||
const params = {
|
const params = {
|
||||||
request: request
|
request: request,
|
||||||
};
|
};
|
||||||
const args = new CoreService_logout_args(params);
|
const args = new CoreService_logout_args(params);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1272,8 +1255,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
args.write(output);
|
args.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
return this.output.flush();
|
return this.output.flush();
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
|
||||||
delete this._reqs[this.seqid()];
|
delete this._reqs[this.seqid()];
|
||||||
if (typeof output.reset === 'function') {
|
if (typeof output.reset === 'function') {
|
||||||
output.reset();
|
output.reset();
|
||||||
|
|
@ -1318,7 +1300,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
send_getUserList(request) {
|
send_getUserList(request) {
|
||||||
const output = new this.pClass(this.output);
|
const output = new this.pClass(this.output);
|
||||||
const params = {
|
const params = {
|
||||||
request: request
|
request: request,
|
||||||
};
|
};
|
||||||
const args = new CoreService_getUserList_args(params);
|
const args = new CoreService_getUserList_args(params);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1326,8 +1308,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
args.write(output);
|
args.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
return this.output.flush();
|
return this.output.flush();
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
|
||||||
delete this._reqs[this.seqid()];
|
delete this._reqs[this.seqid()];
|
||||||
if (typeof output.reset === 'function') {
|
if (typeof output.reset === 'function') {
|
||||||
output.reset();
|
output.reset();
|
||||||
|
|
@ -1372,7 +1353,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
send_createUser(request) {
|
send_createUser(request) {
|
||||||
const output = new this.pClass(this.output);
|
const output = new this.pClass(this.output);
|
||||||
const params = {
|
const params = {
|
||||||
request: request
|
request: request,
|
||||||
};
|
};
|
||||||
const args = new CoreService_createUser_args(params);
|
const args = new CoreService_createUser_args(params);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1380,8 +1361,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
args.write(output);
|
args.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
return this.output.flush();
|
return this.output.flush();
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
|
||||||
delete this._reqs[this.seqid()];
|
delete this._reqs[this.seqid()];
|
||||||
if (typeof output.reset === 'function') {
|
if (typeof output.reset === 'function') {
|
||||||
output.reset();
|
output.reset();
|
||||||
|
|
@ -1426,7 +1406,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
send_deleteUsers(request) {
|
send_deleteUsers(request) {
|
||||||
const output = new this.pClass(this.output);
|
const output = new this.pClass(this.output);
|
||||||
const params = {
|
const params = {
|
||||||
request: request
|
request: request,
|
||||||
};
|
};
|
||||||
const args = new CoreService_deleteUsers_args(params);
|
const args = new CoreService_deleteUsers_args(params);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1434,8 +1414,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
args.write(output);
|
args.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
return this.output.flush();
|
return this.output.flush();
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
|
||||||
delete this._reqs[this.seqid()];
|
delete this._reqs[this.seqid()];
|
||||||
if (typeof output.reset === 'function') {
|
if (typeof output.reset === 'function') {
|
||||||
output.reset();
|
output.reset();
|
||||||
|
|
@ -1480,7 +1459,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
send_getWajibPajakList(request) {
|
send_getWajibPajakList(request) {
|
||||||
const output = new this.pClass(this.output);
|
const output = new this.pClass(this.output);
|
||||||
const params = {
|
const params = {
|
||||||
request: request
|
request: request,
|
||||||
};
|
};
|
||||||
const args = new CoreService_getWajibPajakList_args(params);
|
const args = new CoreService_getWajibPajakList_args(params);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1488,8 +1467,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
args.write(output);
|
args.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
return this.output.flush();
|
return this.output.flush();
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
|
||||||
delete this._reqs[this.seqid()];
|
delete this._reqs[this.seqid()];
|
||||||
if (typeof output.reset === 'function') {
|
if (typeof output.reset === 'function') {
|
||||||
output.reset();
|
output.reset();
|
||||||
|
|
@ -1534,7 +1512,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
send_createWajibPajak(request) {
|
send_createWajibPajak(request) {
|
||||||
const output = new this.pClass(this.output);
|
const output = new this.pClass(this.output);
|
||||||
const params = {
|
const params = {
|
||||||
request: request
|
request: request,
|
||||||
};
|
};
|
||||||
const args = new CoreService_createWajibPajak_args(params);
|
const args = new CoreService_createWajibPajak_args(params);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1542,8 +1520,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
args.write(output);
|
args.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
return this.output.flush();
|
return this.output.flush();
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
|
||||||
delete this._reqs[this.seqid()];
|
delete this._reqs[this.seqid()];
|
||||||
if (typeof output.reset === 'function') {
|
if (typeof output.reset === 'function') {
|
||||||
output.reset();
|
output.reset();
|
||||||
|
|
@ -1588,7 +1565,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
send_deleteWajibPajakList(request) {
|
send_deleteWajibPajakList(request) {
|
||||||
const output = new this.pClass(this.output);
|
const output = new this.pClass(this.output);
|
||||||
const params = {
|
const params = {
|
||||||
request: request
|
request: request,
|
||||||
};
|
};
|
||||||
const args = new CoreService_deleteWajibPajakList_args(params);
|
const args = new CoreService_deleteWajibPajakList_args(params);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1596,8 +1573,7 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
args.write(output);
|
args.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
return this.output.flush();
|
return this.output.flush();
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
|
||||||
delete this._reqs[this.seqid()];
|
delete this._reqs[this.seqid()];
|
||||||
if (typeof output.reset === 'function') {
|
if (typeof output.reset === 'function') {
|
||||||
output.reset();
|
output.reset();
|
||||||
|
|
@ -1627,8 +1603,8 @@ const CoreServiceClient = exports.Client = class CoreServiceClient {
|
||||||
}
|
}
|
||||||
return callback('deleteWajibPajakList failed: unknown result');
|
return callback('deleteWajibPajakList failed: unknown result');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
const CoreServiceProcessor = (exports.Processor = class CoreServiceProcessor {
|
||||||
constructor(handler) {
|
constructor(handler) {
|
||||||
this._handler = handler;
|
this._handler = handler;
|
||||||
}
|
}
|
||||||
|
|
@ -1639,7 +1615,10 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
input.skip(Thrift.Type.STRUCT);
|
input.skip(Thrift.Type.STRUCT);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
const x = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN_METHOD, 'Unknown function ' + r.fname);
|
const x = new Thrift.TApplicationException(
|
||||||
|
Thrift.TApplicationExceptionType.UNKNOWN_METHOD,
|
||||||
|
'Unknown function ' + r.fname,
|
||||||
|
);
|
||||||
output.writeMessageBegin(r.fname, Thrift.MessageType.EXCEPTION, r.rseqid);
|
output.writeMessageBegin(r.fname, Thrift.MessageType.EXCEPTION, r.rseqid);
|
||||||
x.write(output);
|
x.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1651,22 +1630,25 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
args.read(input);
|
args.read(input);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
if (this._handler.login.length === 1) {
|
if (this._handler.login.length === 1) {
|
||||||
Promise.resolve(this._handler.login.bind(this._handler)(
|
Promise.resolve(this._handler.login.bind(this._handler)(args.request))
|
||||||
args.request
|
.then((result) => {
|
||||||
)).then(result => {
|
|
||||||
const result_obj = new CoreService_login_result({ success: result });
|
const result_obj = new CoreService_login_result({ success: result });
|
||||||
output.writeMessageBegin("login", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('login', Thrift.MessageType.REPLY, seqid);
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
output.flush();
|
output.flush();
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
let result;
|
let result;
|
||||||
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
||||||
result = new CoreService_login_result(err);
|
result = new CoreService_login_result(err);
|
||||||
output.writeMessageBegin("login", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('login', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("login", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('login', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result.write(output);
|
result.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1675,12 +1657,21 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
this._handler.login(args.request, (err, result) => {
|
this._handler.login(args.request, (err, result) => {
|
||||||
let result_obj;
|
let result_obj;
|
||||||
if ((err === null || typeof err === 'undefined') || err instanceof exceptions_ttypes.CoreServicesException) {
|
if (
|
||||||
result_obj = new CoreService_login_result((err !== null || typeof err === 'undefined') ? err : {success: result});
|
err === null ||
|
||||||
output.writeMessageBegin("login", Thrift.MessageType.REPLY, seqid);
|
typeof err === 'undefined' ||
|
||||||
|
err instanceof exceptions_ttypes.CoreServicesException
|
||||||
|
) {
|
||||||
|
result_obj = new CoreService_login_result(
|
||||||
|
err !== null || typeof err === 'undefined' ? err : { success: result },
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('login', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result_obj = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("login", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('login', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1693,22 +1684,25 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
args.read(input);
|
args.read(input);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
if (this._handler.getProfile.length === 1) {
|
if (this._handler.getProfile.length === 1) {
|
||||||
Promise.resolve(this._handler.getProfile.bind(this._handler)(
|
Promise.resolve(this._handler.getProfile.bind(this._handler)(args.request))
|
||||||
args.request
|
.then((result) => {
|
||||||
)).then(result => {
|
|
||||||
const result_obj = new CoreService_getProfile_result({ success: result });
|
const result_obj = new CoreService_getProfile_result({ success: result });
|
||||||
output.writeMessageBegin("getProfile", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('getProfile', Thrift.MessageType.REPLY, seqid);
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
output.flush();
|
output.flush();
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
let result;
|
let result;
|
||||||
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
||||||
result = new CoreService_getProfile_result(err);
|
result = new CoreService_getProfile_result(err);
|
||||||
output.writeMessageBegin("getProfile", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('getProfile', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("getProfile", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('getProfile', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result.write(output);
|
result.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1717,12 +1711,21 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
this._handler.getProfile(args.request, (err, result) => {
|
this._handler.getProfile(args.request, (err, result) => {
|
||||||
let result_obj;
|
let result_obj;
|
||||||
if ((err === null || typeof err === 'undefined') || err instanceof exceptions_ttypes.CoreServicesException) {
|
if (
|
||||||
result_obj = new CoreService_getProfile_result((err !== null || typeof err === 'undefined') ? err : {success: result});
|
err === null ||
|
||||||
output.writeMessageBegin("getProfile", Thrift.MessageType.REPLY, seqid);
|
typeof err === 'undefined' ||
|
||||||
|
err instanceof exceptions_ttypes.CoreServicesException
|
||||||
|
) {
|
||||||
|
result_obj = new CoreService_getProfile_result(
|
||||||
|
err !== null || typeof err === 'undefined' ? err : { success: result },
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('getProfile', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result_obj = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("getProfile", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('getProfile', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1735,22 +1738,25 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
args.read(input);
|
args.read(input);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
if (this._handler.logout.length === 1) {
|
if (this._handler.logout.length === 1) {
|
||||||
Promise.resolve(this._handler.logout.bind(this._handler)(
|
Promise.resolve(this._handler.logout.bind(this._handler)(args.request))
|
||||||
args.request
|
.then((result) => {
|
||||||
)).then(result => {
|
|
||||||
const result_obj = new CoreService_logout_result({ success: result });
|
const result_obj = new CoreService_logout_result({ success: result });
|
||||||
output.writeMessageBegin("logout", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('logout', Thrift.MessageType.REPLY, seqid);
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
output.flush();
|
output.flush();
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
let result;
|
let result;
|
||||||
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
||||||
result = new CoreService_logout_result(err);
|
result = new CoreService_logout_result(err);
|
||||||
output.writeMessageBegin("logout", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('logout', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("logout", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('logout', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result.write(output);
|
result.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1759,12 +1765,21 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
this._handler.logout(args.request, (err, result) => {
|
this._handler.logout(args.request, (err, result) => {
|
||||||
let result_obj;
|
let result_obj;
|
||||||
if ((err === null || typeof err === 'undefined') || err instanceof exceptions_ttypes.CoreServicesException) {
|
if (
|
||||||
result_obj = new CoreService_logout_result((err !== null || typeof err === 'undefined') ? err : {success: result});
|
err === null ||
|
||||||
output.writeMessageBegin("logout", Thrift.MessageType.REPLY, seqid);
|
typeof err === 'undefined' ||
|
||||||
|
err instanceof exceptions_ttypes.CoreServicesException
|
||||||
|
) {
|
||||||
|
result_obj = new CoreService_logout_result(
|
||||||
|
err !== null || typeof err === 'undefined' ? err : { success: result },
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('logout', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result_obj = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("logout", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('logout', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1777,22 +1792,25 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
args.read(input);
|
args.read(input);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
if (this._handler.getUserList.length === 1) {
|
if (this._handler.getUserList.length === 1) {
|
||||||
Promise.resolve(this._handler.getUserList.bind(this._handler)(
|
Promise.resolve(this._handler.getUserList.bind(this._handler)(args.request))
|
||||||
args.request
|
.then((result) => {
|
||||||
)).then(result => {
|
|
||||||
const result_obj = new CoreService_getUserList_result({ success: result });
|
const result_obj = new CoreService_getUserList_result({ success: result });
|
||||||
output.writeMessageBegin("getUserList", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('getUserList', Thrift.MessageType.REPLY, seqid);
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
output.flush();
|
output.flush();
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
let result;
|
let result;
|
||||||
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
||||||
result = new CoreService_getUserList_result(err);
|
result = new CoreService_getUserList_result(err);
|
||||||
output.writeMessageBegin("getUserList", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('getUserList', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("getUserList", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('getUserList', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result.write(output);
|
result.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1801,12 +1819,21 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
this._handler.getUserList(args.request, (err, result) => {
|
this._handler.getUserList(args.request, (err, result) => {
|
||||||
let result_obj;
|
let result_obj;
|
||||||
if ((err === null || typeof err === 'undefined') || err instanceof exceptions_ttypes.CoreServicesException) {
|
if (
|
||||||
result_obj = new CoreService_getUserList_result((err !== null || typeof err === 'undefined') ? err : {success: result});
|
err === null ||
|
||||||
output.writeMessageBegin("getUserList", Thrift.MessageType.REPLY, seqid);
|
typeof err === 'undefined' ||
|
||||||
|
err instanceof exceptions_ttypes.CoreServicesException
|
||||||
|
) {
|
||||||
|
result_obj = new CoreService_getUserList_result(
|
||||||
|
err !== null || typeof err === 'undefined' ? err : { success: result },
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('getUserList', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result_obj = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("getUserList", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('getUserList', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1819,22 +1846,25 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
args.read(input);
|
args.read(input);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
if (this._handler.createUser.length === 1) {
|
if (this._handler.createUser.length === 1) {
|
||||||
Promise.resolve(this._handler.createUser.bind(this._handler)(
|
Promise.resolve(this._handler.createUser.bind(this._handler)(args.request))
|
||||||
args.request
|
.then((result) => {
|
||||||
)).then(result => {
|
|
||||||
const result_obj = new CoreService_createUser_result({ success: result });
|
const result_obj = new CoreService_createUser_result({ success: result });
|
||||||
output.writeMessageBegin("createUser", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('createUser', Thrift.MessageType.REPLY, seqid);
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
output.flush();
|
output.flush();
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
let result;
|
let result;
|
||||||
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
||||||
result = new CoreService_createUser_result(err);
|
result = new CoreService_createUser_result(err);
|
||||||
output.writeMessageBegin("createUser", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('createUser', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("createUser", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('createUser', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result.write(output);
|
result.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1843,12 +1873,21 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
this._handler.createUser(args.request, (err, result) => {
|
this._handler.createUser(args.request, (err, result) => {
|
||||||
let result_obj;
|
let result_obj;
|
||||||
if ((err === null || typeof err === 'undefined') || err instanceof exceptions_ttypes.CoreServicesException) {
|
if (
|
||||||
result_obj = new CoreService_createUser_result((err !== null || typeof err === 'undefined') ? err : {success: result});
|
err === null ||
|
||||||
output.writeMessageBegin("createUser", Thrift.MessageType.REPLY, seqid);
|
typeof err === 'undefined' ||
|
||||||
|
err instanceof exceptions_ttypes.CoreServicesException
|
||||||
|
) {
|
||||||
|
result_obj = new CoreService_createUser_result(
|
||||||
|
err !== null || typeof err === 'undefined' ? err : { success: result },
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('createUser', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result_obj = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("createUser", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('createUser', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1861,22 +1900,25 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
args.read(input);
|
args.read(input);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
if (this._handler.deleteUsers.length === 1) {
|
if (this._handler.deleteUsers.length === 1) {
|
||||||
Promise.resolve(this._handler.deleteUsers.bind(this._handler)(
|
Promise.resolve(this._handler.deleteUsers.bind(this._handler)(args.request))
|
||||||
args.request
|
.then((result) => {
|
||||||
)).then(result => {
|
|
||||||
const result_obj = new CoreService_deleteUsers_result({ success: result });
|
const result_obj = new CoreService_deleteUsers_result({ success: result });
|
||||||
output.writeMessageBegin("deleteUsers", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('deleteUsers', Thrift.MessageType.REPLY, seqid);
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
output.flush();
|
output.flush();
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
let result;
|
let result;
|
||||||
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
||||||
result = new CoreService_deleteUsers_result(err);
|
result = new CoreService_deleteUsers_result(err);
|
||||||
output.writeMessageBegin("deleteUsers", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('deleteUsers', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("deleteUsers", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('deleteUsers', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result.write(output);
|
result.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1885,12 +1927,21 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
this._handler.deleteUsers(args.request, (err, result) => {
|
this._handler.deleteUsers(args.request, (err, result) => {
|
||||||
let result_obj;
|
let result_obj;
|
||||||
if ((err === null || typeof err === 'undefined') || err instanceof exceptions_ttypes.CoreServicesException) {
|
if (
|
||||||
result_obj = new CoreService_deleteUsers_result((err !== null || typeof err === 'undefined') ? err : {success: result});
|
err === null ||
|
||||||
output.writeMessageBegin("deleteUsers", Thrift.MessageType.REPLY, seqid);
|
typeof err === 'undefined' ||
|
||||||
|
err instanceof exceptions_ttypes.CoreServicesException
|
||||||
|
) {
|
||||||
|
result_obj = new CoreService_deleteUsers_result(
|
||||||
|
err !== null || typeof err === 'undefined' ? err : { success: result },
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('deleteUsers', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result_obj = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("deleteUsers", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('deleteUsers', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1903,22 +1954,25 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
args.read(input);
|
args.read(input);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
if (this._handler.getWajibPajakList.length === 1) {
|
if (this._handler.getWajibPajakList.length === 1) {
|
||||||
Promise.resolve(this._handler.getWajibPajakList.bind(this._handler)(
|
Promise.resolve(this._handler.getWajibPajakList.bind(this._handler)(args.request))
|
||||||
args.request
|
.then((result) => {
|
||||||
)).then(result => {
|
|
||||||
const result_obj = new CoreService_getWajibPajakList_result({ success: result });
|
const result_obj = new CoreService_getWajibPajakList_result({ success: result });
|
||||||
output.writeMessageBegin("getWajibPajakList", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('getWajibPajakList', Thrift.MessageType.REPLY, seqid);
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
output.flush();
|
output.flush();
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
let result;
|
let result;
|
||||||
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
||||||
result = new CoreService_getWajibPajakList_result(err);
|
result = new CoreService_getWajibPajakList_result(err);
|
||||||
output.writeMessageBegin("getWajibPajakList", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('getWajibPajakList', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("getWajibPajakList", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('getWajibPajakList', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result.write(output);
|
result.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1927,12 +1981,21 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
this._handler.getWajibPajakList(args.request, (err, result) => {
|
this._handler.getWajibPajakList(args.request, (err, result) => {
|
||||||
let result_obj;
|
let result_obj;
|
||||||
if ((err === null || typeof err === 'undefined') || err instanceof exceptions_ttypes.CoreServicesException) {
|
if (
|
||||||
result_obj = new CoreService_getWajibPajakList_result((err !== null || typeof err === 'undefined') ? err : {success: result});
|
err === null ||
|
||||||
output.writeMessageBegin("getWajibPajakList", Thrift.MessageType.REPLY, seqid);
|
typeof err === 'undefined' ||
|
||||||
|
err instanceof exceptions_ttypes.CoreServicesException
|
||||||
|
) {
|
||||||
|
result_obj = new CoreService_getWajibPajakList_result(
|
||||||
|
err !== null || typeof err === 'undefined' ? err : { success: result },
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('getWajibPajakList', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result_obj = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("getWajibPajakList", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('getWajibPajakList', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1945,22 +2008,25 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
args.read(input);
|
args.read(input);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
if (this._handler.createWajibPajak.length === 1) {
|
if (this._handler.createWajibPajak.length === 1) {
|
||||||
Promise.resolve(this._handler.createWajibPajak.bind(this._handler)(
|
Promise.resolve(this._handler.createWajibPajak.bind(this._handler)(args.request))
|
||||||
args.request
|
.then((result) => {
|
||||||
)).then(result => {
|
|
||||||
const result_obj = new CoreService_createWajibPajak_result({ success: result });
|
const result_obj = new CoreService_createWajibPajak_result({ success: result });
|
||||||
output.writeMessageBegin("createWajibPajak", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('createWajibPajak', Thrift.MessageType.REPLY, seqid);
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
output.flush();
|
output.flush();
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
let result;
|
let result;
|
||||||
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
||||||
result = new CoreService_createWajibPajak_result(err);
|
result = new CoreService_createWajibPajak_result(err);
|
||||||
output.writeMessageBegin("createWajibPajak", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('createWajibPajak', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("createWajibPajak", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('createWajibPajak', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result.write(output);
|
result.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1969,12 +2035,21 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
this._handler.createWajibPajak(args.request, (err, result) => {
|
this._handler.createWajibPajak(args.request, (err, result) => {
|
||||||
let result_obj;
|
let result_obj;
|
||||||
if ((err === null || typeof err === 'undefined') || err instanceof exceptions_ttypes.CoreServicesException) {
|
if (
|
||||||
result_obj = new CoreService_createWajibPajak_result((err !== null || typeof err === 'undefined') ? err : {success: result});
|
err === null ||
|
||||||
output.writeMessageBegin("createWajibPajak", Thrift.MessageType.REPLY, seqid);
|
typeof err === 'undefined' ||
|
||||||
|
err instanceof exceptions_ttypes.CoreServicesException
|
||||||
|
) {
|
||||||
|
result_obj = new CoreService_createWajibPajak_result(
|
||||||
|
err !== null || typeof err === 'undefined' ? err : { success: result },
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('createWajibPajak', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result_obj = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("createWajibPajak", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('createWajibPajak', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -1987,22 +2062,25 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
args.read(input);
|
args.read(input);
|
||||||
input.readMessageEnd();
|
input.readMessageEnd();
|
||||||
if (this._handler.deleteWajibPajakList.length === 1) {
|
if (this._handler.deleteWajibPajakList.length === 1) {
|
||||||
Promise.resolve(this._handler.deleteWajibPajakList.bind(this._handler)(
|
Promise.resolve(this._handler.deleteWajibPajakList.bind(this._handler)(args.request))
|
||||||
args.request
|
.then((result) => {
|
||||||
)).then(result => {
|
|
||||||
const result_obj = new CoreService_deleteWajibPajakList_result({ success: result });
|
const result_obj = new CoreService_deleteWajibPajakList_result({ success: result });
|
||||||
output.writeMessageBegin("deleteWajibPajakList", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('deleteWajibPajakList', Thrift.MessageType.REPLY, seqid);
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
output.flush();
|
output.flush();
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
let result;
|
let result;
|
||||||
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
if (err instanceof exceptions_ttypes.CoreServicesException) {
|
||||||
result = new CoreService_deleteWajibPajakList_result(err);
|
result = new CoreService_deleteWajibPajakList_result(err);
|
||||||
output.writeMessageBegin("deleteWajibPajakList", Thrift.MessageType.REPLY, seqid);
|
output.writeMessageBegin('deleteWajibPajakList', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("deleteWajibPajakList", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('deleteWajibPajakList', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result.write(output);
|
result.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -2011,12 +2089,21 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
} else {
|
} else {
|
||||||
this._handler.deleteWajibPajakList(args.request, (err, result) => {
|
this._handler.deleteWajibPajakList(args.request, (err, result) => {
|
||||||
let result_obj;
|
let result_obj;
|
||||||
if ((err === null || typeof err === 'undefined') || err instanceof exceptions_ttypes.CoreServicesException) {
|
if (
|
||||||
result_obj = new CoreService_deleteWajibPajakList_result((err !== null || typeof err === 'undefined') ? err : {success: result});
|
err === null ||
|
||||||
output.writeMessageBegin("deleteWajibPajakList", Thrift.MessageType.REPLY, seqid);
|
typeof err === 'undefined' ||
|
||||||
|
err instanceof exceptions_ttypes.CoreServicesException
|
||||||
|
) {
|
||||||
|
result_obj = new CoreService_deleteWajibPajakList_result(
|
||||||
|
err !== null || typeof err === 'undefined' ? err : { success: result },
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('deleteWajibPajakList', Thrift.MessageType.REPLY, seqid);
|
||||||
} else {
|
} else {
|
||||||
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
|
result_obj = new Thrift.TApplicationException(
|
||||||
output.writeMessageBegin("deleteWajibPajakList", Thrift.MessageType.EXCEPTION, seqid);
|
Thrift.TApplicationExceptionType.UNKNOWN,
|
||||||
|
err.message,
|
||||||
|
);
|
||||||
|
output.writeMessageBegin('deleteWajibPajakList', Thrift.MessageType.EXCEPTION, seqid);
|
||||||
}
|
}
|
||||||
result_obj.write(output);
|
result_obj.write(output);
|
||||||
output.writeMessageEnd();
|
output.writeMessageEnd();
|
||||||
|
|
@ -2024,4 +2111,4 @@ const CoreServiceProcessor = exports.Processor = class CoreServiceProcessor {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
|
|
|
||||||
5
frontend/gen/exceptions_types.d.ts
vendored
5
frontend/gen/exceptions_types.d.ts
vendored
|
|
@ -8,11 +8,10 @@ import Thrift = thrift.Thrift;
|
||||||
import Q = thrift.Q;
|
import Q = thrift.Q;
|
||||||
import Int64 = require('node-int64');
|
import Int64 = require('node-int64');
|
||||||
|
|
||||||
|
|
||||||
declare class CoreServicesException extends Thrift.TException {
|
declare class CoreServicesException extends Thrift.TException {
|
||||||
public code: number;
|
public code: number;
|
||||||
public message: string;
|
public message: string;
|
||||||
public parameters: { [k: string]: string; };
|
public parameters: { [k: string]: string };
|
||||||
|
|
||||||
constructor(args?: { code: number; message: string; parameters: { [k: string]: string; }; });
|
constructor(args?: { code: number; message: string; parameters: { [k: string]: string } });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,19 @@
|
||||||
//
|
//
|
||||||
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
//
|
//
|
||||||
"use strict";
|
'use strict';
|
||||||
|
|
||||||
const thrift = require('thrift');
|
const thrift = require('thrift');
|
||||||
const Thrift = thrift.Thrift;
|
const Thrift = thrift.Thrift;
|
||||||
const Int64 = require('node-int64');
|
const Int64 = require('node-int64');
|
||||||
|
|
||||||
|
const ttypes = (module.exports = {});
|
||||||
const ttypes = module.exports = {};
|
const CoreServicesException = (module.exports.CoreServicesException = class extends (
|
||||||
const CoreServicesException = module.exports.CoreServicesException = class extends Thrift.TException {
|
Thrift.TException
|
||||||
|
) {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
super(args);
|
super(args);
|
||||||
this.name = "CoreServicesException";
|
this.name = 'CoreServicesException';
|
||||||
this.code = null;
|
this.code = null;
|
||||||
this.message = null;
|
this.message = null;
|
||||||
this.parameters = null;
|
this.parameters = null;
|
||||||
|
|
@ -95,10 +96,14 @@ const CoreServicesException = module.exports.CoreServicesException = class exten
|
||||||
}
|
}
|
||||||
if (this.parameters !== null && this.parameters !== undefined) {
|
if (this.parameters !== null && this.parameters !== undefined) {
|
||||||
output.writeFieldBegin('parameters', Thrift.Type.MAP, 3);
|
output.writeFieldBegin('parameters', Thrift.Type.MAP, 3);
|
||||||
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.parameters));
|
output.writeMapBegin(
|
||||||
for (let kiter5 in this.parameters) {
|
Thrift.Type.STRING,
|
||||||
|
Thrift.Type.STRING,
|
||||||
|
Thrift.objectLength(this.parameters),
|
||||||
|
);
|
||||||
|
for (const kiter5 in this.parameters) {
|
||||||
if (this.parameters.hasOwnProperty(kiter5)) {
|
if (this.parameters.hasOwnProperty(kiter5)) {
|
||||||
let viter6 = this.parameters[kiter5];
|
const viter6 = this.parameters[kiter5];
|
||||||
output.writeString(kiter5);
|
output.writeString(kiter5);
|
||||||
output.writeString(viter6);
|
output.writeString(viter6);
|
||||||
}
|
}
|
||||||
|
|
@ -110,5 +115,4 @@ const CoreServicesException = module.exports.CoreServicesException = class exten
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
|
||||||
|
|
|
||||||
5
frontend/gen/exceptionsc_types.d.ts
vendored
5
frontend/gen/exceptionsc_types.d.ts
vendored
|
|
@ -8,11 +8,10 @@ import Thrift = thrift.Thrift;
|
||||||
import Q = thrift.Q;
|
import Q = thrift.Q;
|
||||||
import Int64 = require('node-int64');
|
import Int64 = require('node-int64');
|
||||||
|
|
||||||
|
|
||||||
declare class CommonException extends Thrift.TException {
|
declare class CommonException extends Thrift.TException {
|
||||||
public code: number;
|
public code: number;
|
||||||
public message: string;
|
public message: string;
|
||||||
public metadata?: { [k: string]: string; };
|
public metadata?: { [k: string]: string };
|
||||||
|
|
||||||
constructor(args?: { code: number; message: string; metadata?: { [k: string]: string; }; });
|
constructor(args?: { code: number; message: string; metadata?: { [k: string]: string } });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,17 @@
|
||||||
//
|
//
|
||||||
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
//
|
//
|
||||||
"use strict";
|
'use strict';
|
||||||
|
|
||||||
const thrift = require('thrift');
|
const thrift = require('thrift');
|
||||||
const Thrift = thrift.Thrift;
|
const Thrift = thrift.Thrift;
|
||||||
const Int64 = require('node-int64');
|
const Int64 = require('node-int64');
|
||||||
|
|
||||||
|
const ttypes = (module.exports = {});
|
||||||
const ttypes = module.exports = {};
|
const CommonException = (module.exports.CommonException = class extends Thrift.TException {
|
||||||
const CommonException = module.exports.CommonException = class extends Thrift.TException {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
super(args);
|
super(args);
|
||||||
this.name = "CommonException";
|
this.name = 'CommonException';
|
||||||
this.code = null;
|
this.code = null;
|
||||||
this.message = null;
|
this.message = null;
|
||||||
this.metadata = null;
|
this.metadata = null;
|
||||||
|
|
@ -95,10 +94,14 @@ const CommonException = module.exports.CommonException = class extends Thrift.TE
|
||||||
}
|
}
|
||||||
if (this.metadata !== null && this.metadata !== undefined) {
|
if (this.metadata !== null && this.metadata !== undefined) {
|
||||||
output.writeFieldBegin('metadata', Thrift.Type.MAP, 3);
|
output.writeFieldBegin('metadata', Thrift.Type.MAP, 3);
|
||||||
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.metadata));
|
output.writeMapBegin(
|
||||||
for (let kiter5 in this.metadata) {
|
Thrift.Type.STRING,
|
||||||
|
Thrift.Type.STRING,
|
||||||
|
Thrift.objectLength(this.metadata),
|
||||||
|
);
|
||||||
|
for (const kiter5 in this.metadata) {
|
||||||
if (this.metadata.hasOwnProperty(kiter5)) {
|
if (this.metadata.hasOwnProperty(kiter5)) {
|
||||||
let viter6 = this.metadata[kiter5];
|
const viter6 = this.metadata[kiter5];
|
||||||
output.writeString(kiter5);
|
output.writeString(kiter5);
|
||||||
output.writeString(viter6);
|
output.writeString(viter6);
|
||||||
}
|
}
|
||||||
|
|
@ -110,5 +113,4 @@ const CommonException = module.exports.CommonException = class extends Thrift.TE
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
|
||||||
|
|
|
||||||
2
frontend/gen/service_types.d.ts
vendored
2
frontend/gen/service_types.d.ts
vendored
|
|
@ -9,5 +9,3 @@ import Q = thrift.Q;
|
||||||
import Int64 = require('node-int64');
|
import Int64 = require('node-int64');
|
||||||
import structs_ttypes = require('./structs_types');
|
import structs_ttypes = require('./structs_types');
|
||||||
import exceptions_ttypes = require('./exceptions_types');
|
import exceptions_ttypes = require('./exceptions_types');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
//
|
//
|
||||||
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
//
|
//
|
||||||
"use strict";
|
'use strict';
|
||||||
|
|
||||||
const thrift = require('thrift');
|
const thrift = require('thrift');
|
||||||
const Thrift = thrift.Thrift;
|
const Thrift = thrift.Thrift;
|
||||||
|
|
@ -12,5 +12,4 @@ const Int64 = require('node-int64');
|
||||||
const structs_ttypes = require('./structs_types');
|
const structs_ttypes = require('./structs_types');
|
||||||
const exceptions_ttypes = require('./exceptions_types');
|
const exceptions_ttypes = require('./exceptions_types');
|
||||||
|
|
||||||
|
const ttypes = (module.exports = {});
|
||||||
const ttypes = module.exports = {};
|
|
||||||
|
|
|
||||||
86
frontend/gen/structs_types.d.ts
vendored
86
frontend/gen/structs_types.d.ts
vendored
|
|
@ -8,7 +8,6 @@ import Thrift = thrift.Thrift;
|
||||||
import Q = thrift.Q;
|
import Q = thrift.Q;
|
||||||
import Int64 = require('node-int64');
|
import Int64 = require('node-int64');
|
||||||
|
|
||||||
|
|
||||||
declare enum RoleType {
|
declare enum RoleType {
|
||||||
UNKNOWN = 0,
|
UNKNOWN = 0,
|
||||||
SYSTEM = 1,
|
SYSTEM = 1,
|
||||||
|
|
@ -43,7 +42,14 @@ declare class Role {
|
||||||
public users?: User[];
|
public users?: User[];
|
||||||
public wajibPajakList?: WajibPajak[];
|
public wajibPajakList?: WajibPajak[];
|
||||||
|
|
||||||
constructor(args?: { id: Int64; displayName: string; roleType: RoleType; creator?: User; users?: User[]; wajibPajakList?: WajibPajak[]; });
|
constructor(args?: {
|
||||||
|
id: Int64;
|
||||||
|
displayName: string;
|
||||||
|
roleType: RoleType;
|
||||||
|
creator?: User;
|
||||||
|
users?: User[];
|
||||||
|
wajibPajakList?: WajibPajak[];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class User {
|
declare class User {
|
||||||
|
|
@ -57,7 +63,17 @@ declare class User {
|
||||||
public ownedWajibPajakList?: WajibPajak[];
|
public ownedWajibPajakList?: WajibPajak[];
|
||||||
public rolesWajibPajakList?: Role[];
|
public rolesWajibPajakList?: Role[];
|
||||||
|
|
||||||
constructor(args?: { id: Int64; username: string; password: string; displayName: string; privateKey: Buffer; publicKey: Buffer; roles?: Role[]; ownedWajibPajakList?: WajibPajak[]; rolesWajibPajakList?: Role[]; });
|
constructor(args?: {
|
||||||
|
id: Int64;
|
||||||
|
username: string;
|
||||||
|
password: string;
|
||||||
|
displayName: string;
|
||||||
|
privateKey: Buffer;
|
||||||
|
publicKey: Buffer;
|
||||||
|
roles?: Role[];
|
||||||
|
ownedWajibPajakList?: WajibPajak[];
|
||||||
|
rolesWajibPajakList?: Role[];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class WajibPajakProfile {
|
declare class WajibPajakProfile {
|
||||||
|
|
@ -65,7 +81,7 @@ declare class WajibPajakProfile {
|
||||||
public displayName: string;
|
public displayName: string;
|
||||||
public address: string;
|
public address: string;
|
||||||
|
|
||||||
constructor(args?: { npwp: string; displayName: string; address: string; });
|
constructor(args?: { npwp: string; displayName: string; address: string });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class WajibPajakTaxObligation {
|
declare class WajibPajakTaxObligation {
|
||||||
|
|
@ -73,7 +89,7 @@ declare class WajibPajakTaxObligation {
|
||||||
public obligation: JenisPajak;
|
public obligation: JenisPajak;
|
||||||
public isActive: boolean;
|
public isActive: boolean;
|
||||||
|
|
||||||
constructor(args?: { id: Int64; obligation: JenisPajak; isActive: boolean; });
|
constructor(args?: { id: Int64; obligation: JenisPajak; isActive: boolean });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class WajibPajak {
|
declare class WajibPajak {
|
||||||
|
|
@ -83,28 +99,34 @@ declare class WajibPajak {
|
||||||
public taxObligations?: WajibPajakTaxObligation[];
|
public taxObligations?: WajibPajakTaxObligation[];
|
||||||
public roles?: Role[];
|
public roles?: Role[];
|
||||||
|
|
||||||
constructor(args?: { id: Int64; profile: WajibPajakProfile; owners: User[]; taxObligations?: WajibPajakTaxObligation[]; roles?: Role[]; });
|
constructor(args?: {
|
||||||
|
id: Int64;
|
||||||
|
profile: WajibPajakProfile;
|
||||||
|
owners: User[];
|
||||||
|
taxObligations?: WajibPajakTaxObligation[];
|
||||||
|
roles?: Role[];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class Pagination {
|
declare class Pagination {
|
||||||
public page: Int64;
|
public page: Int64;
|
||||||
public rowsPerPage: Int64;
|
public rowsPerPage: Int64;
|
||||||
|
|
||||||
constructor(args?: { page: Int64; rowsPerPage: Int64; });
|
constructor(args?: { page: Int64; rowsPerPage: Int64 });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class AlertInfo {
|
declare class AlertInfo {
|
||||||
public title: string;
|
public title: string;
|
||||||
public description: string;
|
public description: string;
|
||||||
|
|
||||||
constructor(args?: { title: string; description: string; });
|
constructor(args?: { title: string; description: string });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class LoginRequest {
|
declare class LoginRequest {
|
||||||
public username: string;
|
public username: string;
|
||||||
public password: string;
|
public password: string;
|
||||||
|
|
||||||
constructor(args?: { username: string; password: string; });
|
constructor(args?: { username: string; password: string });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class LoginResponse {
|
declare class LoginResponse {
|
||||||
|
|
@ -112,32 +134,30 @@ declare class LoginResponse {
|
||||||
public token: string;
|
public token: string;
|
||||||
public profile?: User;
|
public profile?: User;
|
||||||
|
|
||||||
constructor(args?: { trkToken: string; token: string; profile?: User; });
|
constructor(args?: { trkToken: string; token: string; profile?: User });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class LogoutRequest {
|
declare class LogoutRequest {
|
||||||
public token: string;
|
public token: string;
|
||||||
|
|
||||||
constructor(args?: { token: string; });
|
constructor(args?: { token: string });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class LogoutResponse {
|
declare class LogoutResponse {}
|
||||||
}
|
|
||||||
|
|
||||||
declare class GetProfileRequest {
|
declare class GetProfileRequest {}
|
||||||
}
|
|
||||||
|
|
||||||
declare class GetProfileResponse {
|
declare class GetProfileResponse {
|
||||||
public profile: User;
|
public profile: User;
|
||||||
|
|
||||||
constructor(args?: { profile: User; });
|
constructor(args?: { profile: User });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class GetUserListRequest {
|
declare class GetUserListRequest {
|
||||||
public pagination: Pagination;
|
public pagination: Pagination;
|
||||||
public searchTerm: string;
|
public searchTerm: string;
|
||||||
|
|
||||||
constructor(args?: { pagination: Pagination; searchTerm: string; });
|
constructor(args?: { pagination: Pagination; searchTerm: string });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class GetUserListResponse {
|
declare class GetUserListResponse {
|
||||||
|
|
@ -145,29 +165,28 @@ declare class GetUserListResponse {
|
||||||
public totalUsers: Int64;
|
public totalUsers: Int64;
|
||||||
public users: User[];
|
public users: User[];
|
||||||
|
|
||||||
constructor(args?: { pagination: Pagination; totalUsers: Int64; users: User[]; });
|
constructor(args?: { pagination: Pagination; totalUsers: Int64; users: User[] });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class CreateUserRequest {
|
declare class CreateUserRequest {
|
||||||
public user: User;
|
public user: User;
|
||||||
|
|
||||||
constructor(args?: { user: User; });
|
constructor(args?: { user: User });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class CreateUserResponse {
|
declare class CreateUserResponse {}
|
||||||
}
|
|
||||||
|
|
||||||
declare class DeleteUsersRequest {
|
declare class DeleteUsersRequest {
|
||||||
public userIds: Int64[];
|
public userIds: Int64[];
|
||||||
|
|
||||||
constructor(args?: { userIds: Int64[]; });
|
constructor(args?: { userIds: Int64[] });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class DeleteUsersResponse {
|
declare class DeleteUsersResponse {
|
||||||
public success: Int64[];
|
public success: Int64[];
|
||||||
public ignored: Int64[];
|
public ignored: Int64[];
|
||||||
|
|
||||||
constructor(args?: { success: Int64[]; ignored: Int64[]; });
|
constructor(args?: { success: Int64[]; ignored: Int64[] });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class GetWajibPajakListRequest {
|
declare class GetWajibPajakListRequest {
|
||||||
|
|
@ -175,7 +194,11 @@ declare class GetWajibPajakListRequest {
|
||||||
public ownership: WajibPajakOwnership;
|
public ownership: WajibPajakOwnership;
|
||||||
public searchTerm: string;
|
public searchTerm: string;
|
||||||
|
|
||||||
constructor(args?: { pagination: Pagination; ownership: WajibPajakOwnership; searchTerm: string; });
|
constructor(args?: {
|
||||||
|
pagination: Pagination;
|
||||||
|
ownership: WajibPajakOwnership;
|
||||||
|
searchTerm: string;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class GetWajibPajakListResponse {
|
declare class GetWajibPajakListResponse {
|
||||||
|
|
@ -183,27 +206,30 @@ declare class GetWajibPajakListResponse {
|
||||||
public totalWajibPajak: Int64;
|
public totalWajibPajak: Int64;
|
||||||
public wajibPajakList: WajibPajak[];
|
public wajibPajakList: WajibPajak[];
|
||||||
|
|
||||||
constructor(args?: { pagination: Pagination; totalWajibPajak: Int64; wajibPajakList: WajibPajak[]; });
|
constructor(args?: {
|
||||||
|
pagination: Pagination;
|
||||||
|
totalWajibPajak: Int64;
|
||||||
|
wajibPajakList: WajibPajak[];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class CreateWajibPajakRequest {
|
declare class CreateWajibPajakRequest {
|
||||||
public wajibPajak: WajibPajak;
|
public wajibPajak: WajibPajak;
|
||||||
|
|
||||||
constructor(args?: { wajibPajak: WajibPajak; });
|
constructor(args?: { wajibPajak: WajibPajak });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class CreateWajibPajakResponse {
|
declare class CreateWajibPajakResponse {}
|
||||||
}
|
|
||||||
|
|
||||||
declare class DeleteWajibpajakListRequest {
|
declare class DeleteWajibpajakListRequest {
|
||||||
public wpIds: Int64[];
|
public wpIds: Int64[];
|
||||||
|
|
||||||
constructor(args?: { wpIds: Int64[]; });
|
constructor(args?: { wpIds: Int64[] });
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class DeleteWajibpajakListResponse {
|
declare class DeleteWajibpajakListResponse {
|
||||||
public success: Int64[];
|
public success: Int64[];
|
||||||
public ignored: Int64[];
|
public ignored: Int64[];
|
||||||
|
|
||||||
constructor(args?: { success: Int64[]; ignored: Int64[]; });
|
constructor(args?: { success: Int64[]; ignored: Int64[] });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,55 +3,54 @@
|
||||||
//
|
//
|
||||||
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
//
|
//
|
||||||
"use strict";
|
'use strict';
|
||||||
|
|
||||||
const thrift = require('thrift');
|
const thrift = require('thrift');
|
||||||
const Thrift = thrift.Thrift;
|
const Thrift = thrift.Thrift;
|
||||||
const Int64 = require('node-int64');
|
const Int64 = require('node-int64');
|
||||||
|
|
||||||
|
const ttypes = (module.exports = {});
|
||||||
const ttypes = module.exports = {};
|
|
||||||
ttypes.RoleType = {
|
ttypes.RoleType = {
|
||||||
'0' : 'UNKNOWN',
|
0: 'UNKNOWN',
|
||||||
'UNKNOWN' : 0,
|
UNKNOWN: 0,
|
||||||
'1' : 'SYSTEM',
|
1: 'SYSTEM',
|
||||||
'SYSTEM' : 1,
|
SYSTEM: 1,
|
||||||
'2' : 'USER',
|
2: 'USER',
|
||||||
'USER' : 2,
|
USER: 2,
|
||||||
'100' : 'WP_OWNER',
|
100: 'WP_OWNER',
|
||||||
'WP_OWNER' : 100,
|
WP_OWNER: 100,
|
||||||
'110' : 'WP_ADMIN',
|
110: 'WP_ADMIN',
|
||||||
'WP_ADMIN' : 110
|
WP_ADMIN: 110,
|
||||||
};
|
};
|
||||||
ttypes.JenisPajak = {
|
ttypes.JenisPajak = {
|
||||||
'0' : 'UNKNOWN',
|
0: 'UNKNOWN',
|
||||||
'UNKNOWN' : 0,
|
UNKNOWN: 0,
|
||||||
'1' : 'PPH_21',
|
1: 'PPH_21',
|
||||||
'PPH_21' : 1,
|
PPH_21: 1,
|
||||||
'2' : 'PPH_23',
|
2: 'PPH_23',
|
||||||
'PPH_23' : 2,
|
PPH_23: 2,
|
||||||
'3' : 'PPH_25',
|
3: 'PPH_25',
|
||||||
'PPH_25' : 3,
|
PPH_25: 3,
|
||||||
'4' : 'PPH_26',
|
4: 'PPH_26',
|
||||||
'PPH_26' : 4,
|
PPH_26: 4,
|
||||||
'5' : 'PPH_4_2',
|
5: 'PPH_4_2',
|
||||||
'PPH_4_2' : 5,
|
PPH_4_2: 5,
|
||||||
'6' : 'PPH_15',
|
6: 'PPH_15',
|
||||||
'PPH_15' : 6,
|
PPH_15: 6,
|
||||||
'7' : 'PPN',
|
7: 'PPN',
|
||||||
'PPN' : 7,
|
PPN: 7,
|
||||||
'8' : 'TAHUNAN',
|
8: 'TAHUNAN',
|
||||||
'TAHUNAN' : 8
|
TAHUNAN: 8,
|
||||||
};
|
};
|
||||||
ttypes.WajibPajakOwnership = {
|
ttypes.WajibPajakOwnership = {
|
||||||
'0' : 'UNKNOWN',
|
0: 'UNKNOWN',
|
||||||
'UNKNOWN' : 0,
|
UNKNOWN: 0,
|
||||||
'1' : 'OWNED',
|
1: 'OWNED',
|
||||||
'OWNED' : 1,
|
OWNED: 1,
|
||||||
'2' : 'ROLE',
|
2: 'ROLE',
|
||||||
'ROLE' : 2
|
ROLE: 2,
|
||||||
};
|
};
|
||||||
const Role = module.exports.Role = class {
|
const Role = (module.exports.Role = class {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.id = null;
|
this.id = null;
|
||||||
this.displayName = null;
|
this.displayName = null;
|
||||||
|
|
@ -211,9 +210,8 @@ const Role = module.exports.Role = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const User = (module.exports.User = class {
|
||||||
const User = module.exports.User = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.id = null;
|
this.id = null;
|
||||||
this.username = null;
|
this.username = null;
|
||||||
|
|
@ -436,9 +434,8 @@ const User = module.exports.User = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const WajibPajakProfile = (module.exports.WajibPajakProfile = class {
|
||||||
const WajibPajakProfile = module.exports.WajibPajakProfile = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.npwp = null;
|
this.npwp = null;
|
||||||
this.displayName = null;
|
this.displayName = null;
|
||||||
|
|
@ -517,9 +514,8 @@ const WajibPajakProfile = module.exports.WajibPajakProfile = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const WajibPajakTaxObligation = (module.exports.WajibPajakTaxObligation = class {
|
||||||
const WajibPajakTaxObligation = module.exports.WajibPajakTaxObligation = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.id = null;
|
this.id = null;
|
||||||
this.obligation = null;
|
this.obligation = null;
|
||||||
|
|
@ -598,9 +594,8 @@ const WajibPajakTaxObligation = module.exports.WajibPajakTaxObligation = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const WajibPajak = (module.exports.WajibPajak = class {
|
||||||
const WajibPajak = module.exports.WajibPajak = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.id = null;
|
this.id = null;
|
||||||
this.profile = null;
|
this.profile = null;
|
||||||
|
|
@ -618,7 +613,9 @@ const WajibPajak = module.exports.WajibPajak = class {
|
||||||
this.owners = Thrift.copyList(args.owners, [ttypes.User]);
|
this.owners = Thrift.copyList(args.owners, [ttypes.User]);
|
||||||
}
|
}
|
||||||
if (args.taxObligations !== undefined && args.taxObligations !== null) {
|
if (args.taxObligations !== undefined && args.taxObligations !== null) {
|
||||||
this.taxObligations = Thrift.copyList(args.taxObligations, [ttypes.WajibPajakTaxObligation]);
|
this.taxObligations = Thrift.copyList(args.taxObligations, [
|
||||||
|
ttypes.WajibPajakTaxObligation,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
if (args.roles !== undefined && args.roles !== null) {
|
if (args.roles !== undefined && args.roles !== null) {
|
||||||
this.roles = Thrift.copyList(args.roles, [ttypes.Role]);
|
this.roles = Thrift.copyList(args.roles, [ttypes.Role]);
|
||||||
|
|
@ -760,9 +757,8 @@ const WajibPajak = module.exports.WajibPajak = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const Pagination = (module.exports.Pagination = class {
|
||||||
const Pagination = module.exports.Pagination = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.page = null;
|
this.page = null;
|
||||||
this.rowsPerPage = null;
|
this.rowsPerPage = null;
|
||||||
|
|
@ -825,9 +821,8 @@ const Pagination = module.exports.Pagination = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const AlertInfo = (module.exports.AlertInfo = class {
|
||||||
const AlertInfo = module.exports.AlertInfo = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.title = null;
|
this.title = null;
|
||||||
this.description = null;
|
this.description = null;
|
||||||
|
|
@ -890,9 +885,8 @@ const AlertInfo = module.exports.AlertInfo = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const LoginRequest = (module.exports.LoginRequest = class {
|
||||||
const LoginRequest = module.exports.LoginRequest = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.username = null;
|
this.username = null;
|
||||||
this.password = null;
|
this.password = null;
|
||||||
|
|
@ -955,9 +949,8 @@ const LoginRequest = module.exports.LoginRequest = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const LoginResponse = (module.exports.LoginResponse = class {
|
||||||
const LoginResponse = module.exports.LoginResponse = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.trkToken = null;
|
this.trkToken = null;
|
||||||
this.token = null;
|
this.token = null;
|
||||||
|
|
@ -1037,9 +1030,8 @@ const LoginResponse = module.exports.LoginResponse = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const LogoutRequest = (module.exports.LogoutRequest = class {
|
||||||
const LogoutRequest = module.exports.LogoutRequest = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.token = null;
|
this.token = null;
|
||||||
if (args) {
|
if (args) {
|
||||||
|
|
@ -1089,11 +1081,9 @@ const LogoutRequest = module.exports.LogoutRequest = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const LogoutResponse = (module.exports.LogoutResponse = class {
|
||||||
const LogoutResponse = module.exports.LogoutResponse = class {
|
constructor(args) {}
|
||||||
constructor(args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
read(input) {
|
read(input) {
|
||||||
input.readStructBegin();
|
input.readStructBegin();
|
||||||
|
|
@ -1116,11 +1106,9 @@ const LogoutResponse = module.exports.LogoutResponse = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const GetProfileRequest = (module.exports.GetProfileRequest = class {
|
||||||
const GetProfileRequest = module.exports.GetProfileRequest = class {
|
constructor(args) {}
|
||||||
constructor(args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
read(input) {
|
read(input) {
|
||||||
input.readStructBegin();
|
input.readStructBegin();
|
||||||
|
|
@ -1143,9 +1131,8 @@ const GetProfileRequest = module.exports.GetProfileRequest = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const GetProfileResponse = (module.exports.GetProfileResponse = class {
|
||||||
const GetProfileResponse = module.exports.GetProfileResponse = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.profile = null;
|
this.profile = null;
|
||||||
if (args) {
|
if (args) {
|
||||||
|
|
@ -1196,9 +1183,8 @@ const GetProfileResponse = module.exports.GetProfileResponse = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const GetUserListRequest = (module.exports.GetUserListRequest = class {
|
||||||
const GetUserListRequest = module.exports.GetUserListRequest = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.pagination = null;
|
this.pagination = null;
|
||||||
this.searchTerm = null;
|
this.searchTerm = null;
|
||||||
|
|
@ -1262,9 +1248,8 @@ const GetUserListRequest = module.exports.GetUserListRequest = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const GetUserListResponse = (module.exports.GetUserListResponse = class {
|
||||||
const GetUserListResponse = module.exports.GetUserListResponse = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.pagination = null;
|
this.pagination = null;
|
||||||
this.totalUsers = null;
|
this.totalUsers = null;
|
||||||
|
|
@ -1360,9 +1345,8 @@ const GetUserListResponse = module.exports.GetUserListResponse = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const CreateUserRequest = (module.exports.CreateUserRequest = class {
|
||||||
const CreateUserRequest = module.exports.CreateUserRequest = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.user = null;
|
this.user = null;
|
||||||
if (args) {
|
if (args) {
|
||||||
|
|
@ -1413,11 +1397,9 @@ const CreateUserRequest = module.exports.CreateUserRequest = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const CreateUserResponse = (module.exports.CreateUserResponse = class {
|
||||||
const CreateUserResponse = module.exports.CreateUserResponse = class {
|
constructor(args) {}
|
||||||
constructor(args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
read(input) {
|
read(input) {
|
||||||
input.readStructBegin();
|
input.readStructBegin();
|
||||||
|
|
@ -1440,9 +1422,8 @@ const CreateUserResponse = module.exports.CreateUserResponse = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const DeleteUsersRequest = (module.exports.DeleteUsersRequest = class {
|
||||||
const DeleteUsersRequest = module.exports.DeleteUsersRequest = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.userIds = null;
|
this.userIds = null;
|
||||||
if (args) {
|
if (args) {
|
||||||
|
|
@ -1507,9 +1488,8 @@ const DeleteUsersRequest = module.exports.DeleteUsersRequest = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const DeleteUsersResponse = (module.exports.DeleteUsersResponse = class {
|
||||||
const DeleteUsersResponse = module.exports.DeleteUsersResponse = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.success = null;
|
this.success = null;
|
||||||
this.ignored = null;
|
this.ignored = null;
|
||||||
|
|
@ -1602,9 +1582,8 @@ const DeleteUsersResponse = module.exports.DeleteUsersResponse = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const GetWajibPajakListRequest = (module.exports.GetWajibPajakListRequest = class {
|
||||||
const GetWajibPajakListRequest = module.exports.GetWajibPajakListRequest = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.pagination = null;
|
this.pagination = null;
|
||||||
this.ownership = null;
|
this.ownership = null;
|
||||||
|
|
@ -1684,9 +1663,8 @@ const GetWajibPajakListRequest = module.exports.GetWajibPajakListRequest = class
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const GetWajibPajakListResponse = (module.exports.GetWajibPajakListResponse = class {
|
||||||
const GetWajibPajakListResponse = module.exports.GetWajibPajakListResponse = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.pagination = null;
|
this.pagination = null;
|
||||||
this.totalWajibPajak = null;
|
this.totalWajibPajak = null;
|
||||||
|
|
@ -1782,9 +1760,8 @@ const GetWajibPajakListResponse = module.exports.GetWajibPajakListResponse = cla
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const CreateWajibPajakRequest = (module.exports.CreateWajibPajakRequest = class {
|
||||||
const CreateWajibPajakRequest = module.exports.CreateWajibPajakRequest = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.wajibPajak = null;
|
this.wajibPajak = null;
|
||||||
if (args) {
|
if (args) {
|
||||||
|
|
@ -1835,11 +1812,9 @@ const CreateWajibPajakRequest = module.exports.CreateWajibPajakRequest = class {
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const CreateWajibPajakResponse = (module.exports.CreateWajibPajakResponse = class {
|
||||||
const CreateWajibPajakResponse = module.exports.CreateWajibPajakResponse = class {
|
constructor(args) {}
|
||||||
constructor(args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
read(input) {
|
read(input) {
|
||||||
input.readStructBegin();
|
input.readStructBegin();
|
||||||
|
|
@ -1862,9 +1837,8 @@ const CreateWajibPajakResponse = module.exports.CreateWajibPajakResponse = class
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const DeleteWajibpajakListRequest = (module.exports.DeleteWajibpajakListRequest = class {
|
||||||
const DeleteWajibpajakListRequest = module.exports.DeleteWajibpajakListRequest = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.wpIds = null;
|
this.wpIds = null;
|
||||||
if (args) {
|
if (args) {
|
||||||
|
|
@ -1929,9 +1903,8 @@ const DeleteWajibpajakListRequest = module.exports.DeleteWajibpajakListRequest =
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
const DeleteWajibpajakListResponse = (module.exports.DeleteWajibpajakListResponse = class {
|
||||||
const DeleteWajibpajakListResponse = module.exports.DeleteWajibpajakListResponse = class {
|
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.success = null;
|
this.success = null;
|
||||||
this.ignored = null;
|
this.ignored = null;
|
||||||
|
|
@ -2024,5 +1997,4 @@ const DeleteWajibpajakListResponse = module.exports.DeleteWajibpajakListResponse
|
||||||
output.writeStructEnd();
|
output.writeStructEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>WPW-CTL</title>
|
<title>Vite + Vue + TS</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "frontend",
|
"name": "frontend2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
@ -14,82 +14,50 @@
|
||||||
"@algolia/client-search": "^4.14.2",
|
"@algolia/client-search": "^4.14.2",
|
||||||
"@heroicons/vue": "^2.0.13",
|
"@heroicons/vue": "^2.0.13",
|
||||||
"@vueuse/core": "^9.4.0",
|
"@vueuse/core": "^9.4.0",
|
||||||
"classnames": "^2.3.2",
|
|
||||||
"flowbite": "1.5.0",
|
"flowbite": "1.5.0",
|
||||||
"flowbite-vue": "^0.0.6",
|
"flowbite-vue": "^0.0.6",
|
||||||
"pinia": "^2.0.23",
|
"node-int64": "^0.4.0",
|
||||||
|
"node-stdlib-browser": "^1.2.0",
|
||||||
|
"pinia": "^2.0.27",
|
||||||
"thrift": "^0.16.0",
|
"thrift": "^0.16.0",
|
||||||
"vue": "^3.2.41",
|
"vue": "^3.2.41",
|
||||||
"vue-router": "^4.1.6",
|
"vue3-easy-data-table": "^1.5.20",
|
||||||
"vue3-easy-data-table": "^1.5.12",
|
|
||||||
"vue3-perfect-scrollbar": "^1.6.1"
|
"vue3-perfect-scrollbar": "^1.6.1"
|
||||||
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"node-stdlib-browser": "^1.2.0",
|
|
||||||
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
||||||
"@babel/core": "^7.0.0",
|
|
||||||
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
|
||||||
"@babel/plugin-transform-classes": "^7.19.0",
|
|
||||||
"@babel/preset-env": "^7.19.4",
|
|
||||||
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
|
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
|
||||||
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
|
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
|
||||||
"@lopatnov/rollup-plugin-uglify": "^2.1.5",
|
|
||||||
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
||||||
"@rollup/plugin-babel": "^6.0.2",
|
"@rollup/plugin-commonjs": "^23.0.3",
|
||||||
"@rollup/plugin-commonjs": "^22.0.2",
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
"@rollup/plugin-inject": "^4.0.4",
|
|
||||||
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
||||||
"@rollup/plugin-terser": "^0.1.0",
|
"@rollup/plugin-terser": "^0.1.0",
|
||||||
"@rushstack/eslint-patch": "^1.2.0",
|
"@rushstack/eslint-patch": "^1.2.0",
|
||||||
"@types/node": "^16.18.3",
|
|
||||||
"@types/thrift": "^0.10.11",
|
"@types/thrift": "^0.10.11",
|
||||||
"@vitejs/plugin-legacy": "^2.3.0",
|
|
||||||
"@vitejs/plugin-vue": "^3.2.0",
|
"@vitejs/plugin-vue": "^3.2.0",
|
||||||
"@vitejs/plugin-vue-jsx": "^2.1.0",
|
"@vitejs/plugin-vue-jsx": "^2.1.1",
|
||||||
"@vue/eslint-config-prettier": "^7.0.0",
|
"@vue/eslint-config-prettier": "^7.0.0",
|
||||||
"@vue/eslint-config-typescript": "^11.0.2",
|
"@vue/eslint-config-typescript": "^11.0.2",
|
||||||
"@vue/tsconfig": "^0.1.3",
|
"@vue/tsconfig": "^0.1.3",
|
||||||
"@vuedx/typecheck": "^0.7.6",
|
"@vuedx/typecheck": "^0.7.6",
|
||||||
"@vuedx/typescript-plugin-vue": "^0.7.6",
|
"@vuedx/typescript-plugin-vue": "^0.7.6",
|
||||||
"autoprefixer": "^10.4.13",
|
"autoprefixer": "^10.4.13",
|
||||||
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
|
|
||||||
"class-names": "^1.0.0",
|
|
||||||
"esbuild": "*",
|
"esbuild": "*",
|
||||||
"eslint": "^8.5.0",
|
"eslint": "^8.5.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"eslint-plugin-vue": "^9.7.0",
|
"eslint-plugin-vue": "^9.7.0",
|
||||||
"node-int64": "^0.4.0",
|
"postcss": "^8.2.15",
|
||||||
"postcss": "^8.4.18",
|
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"rollup": "^2.79.0",
|
"rollup": "^2.79.0",
|
||||||
"rollup-obfuscator": "^3.0.1",
|
"rollup-obfuscator": "^3.0.1",
|
||||||
"rollup-plugin-node-globals": "^1.4.0",
|
|
||||||
"rollup-plugin-node-polyfills": "^0.2.1",
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
||||||
"tailwindcss": "^3.2.2",
|
"tailwindcss": "^3",
|
||||||
"terser": "^5.15.1",
|
|
||||||
"typescript": "^4.6.4",
|
"typescript": "^4.6.4",
|
||||||
"vite": "^3.2.0",
|
"vite": "^3.2.3",
|
||||||
"vite-plugin-chunk-split": "^0.4.3",
|
"vite-plugin-commonjs": "^0.6.0",
|
||||||
"vite-plugin-node-stdlib-browser": "^0.1.1",
|
"vite-plugin-node-stdlib-browser": "^0.1.1",
|
||||||
|
"vue-router": "^4.1.6",
|
||||||
"vue-tsc": "^1.0.9"
|
"vue-tsc": "^1.0.9"
|
||||||
},
|
|
||||||
"eslintConfigxxx": {
|
|
||||||
"root": true,
|
|
||||||
"env": {
|
|
||||||
"browser": true,
|
|
||||||
"node": true,
|
|
||||||
"es6": true
|
|
||||||
},
|
|
||||||
"extendsxx": [
|
|
||||||
"plugin:vue/essential",
|
|
||||||
"plugin:prettier/recommended",
|
|
||||||
"eslint:recommended"
|
|
||||||
],
|
|
||||||
"parserOptions": {
|
|
||||||
"parser": "babel-eslint"
|
|
||||||
},
|
|
||||||
"rules": {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -8,7 +8,12 @@ import {
|
||||||
} from 'thrift';
|
} from 'thrift';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { ClientOptions } from '.';
|
import { ClientOptions } from '.';
|
||||||
import { CookieKeyAuthToken, CookieKeyTrackToken, HeaderKeyAuthToken, HeaderKeyTrackToken } from './hub';
|
import {
|
||||||
|
CookieKeyAuthToken,
|
||||||
|
CookieKeyTrackToken,
|
||||||
|
HeaderKeyAuthToken,
|
||||||
|
HeaderKeyTrackToken,
|
||||||
|
} from './hub';
|
||||||
|
|
||||||
export function initXHRClient<TClient>(
|
export function initXHRClient<TClient>(
|
||||||
clientCtor: TClientConstructor<TClient>,
|
clientCtor: TClientConstructor<TClient>,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export const useTheme = defineStore({
|
||||||
return state._darkTheme;
|
return state._darkTheme;
|
||||||
},
|
},
|
||||||
navigationBarVisibility(state): boolean {
|
navigationBarVisibility(state): boolean {
|
||||||
return state._navigationBarVisibility
|
return state._navigationBarVisibility;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ const auth = useAuth();
|
||||||
<HeadingPage
|
<HeadingPage
|
||||||
>Welcome<span v-if="auth.profile">, {{ auth.profile?.displayName }}</span></HeadingPage
|
>Welcome<span v-if="auth.profile">, {{ auth.profile?.displayName }}</span></HeadingPage
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<a class="text-blue-600" href="https://git.obj.my.id/study-dumps/wpw-final">Source code</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ function hide() {
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const targetEl = refTargetEl.value;
|
const targetEl = refTargetEl.value;
|
||||||
|
|
||||||
let options: any = {
|
const options: any = {
|
||||||
onHide: () => {
|
onHide: () => {
|
||||||
console.log('modal hide');
|
console.log('modal hide');
|
||||||
emit('onHide');
|
emit('onHide');
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ import HomeView from './HomeView.vue';
|
||||||
import LoginView from './LoginView.vue';
|
import LoginView from './LoginView.vue';
|
||||||
import UserWajibPajakListViewVue from './UserWajibPajakListView.vue';
|
import UserWajibPajakListViewVue from './UserWajibPajakListView.vue';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export function routes(): RouteRecordRaw[] {
|
export function routes(): RouteRecordRaw[] {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
1
frontend/src/vite-env.d.ts
vendored
1
frontend/src/vite-env.d.ts
vendored
|
|
@ -3,6 +3,5 @@
|
||||||
declare module '*.vue' {
|
declare module '*.vue' {
|
||||||
import type { DefineComponent } from 'vue';
|
import type { DefineComponent } from 'vue';
|
||||||
const component: DefineComponent<{}, {}, any>;
|
const component: DefineComponent<{}, {}, any>;
|
||||||
|
|
||||||
export default component;
|
export default component;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,9 @@
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"],
|
"@/*": ["./src/*"],
|
||||||
"@thriftgen/*": ["./gen/*"],
|
"@thriftgen/*": ["./gen/*"],
|
||||||
// "@flowbite-vue": ["./3rdparty/flowbite-vue/src/*"],
|
|
||||||
},
|
},
|
||||||
// "target": "ESNext",
|
"target": "ESNext",
|
||||||
// "module": "ESNext",
|
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"target": "ES5",
|
|
||||||
"sourceMap": true,
|
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|
@ -19,14 +15,15 @@
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"noImplicitReturns": true,
|
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
||||||
"lib": ["ESNext", "DOM"],
|
|
||||||
"plugins": [{ "name": "@vuedx/typescript-plugin-vue" }],
|
"plugins": [{ "name": "@vuedx/typescript-plugin-vue" }],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"noEmit": true
|
"noEmit": true,
|
||||||
|
"types": [
|
||||||
|
// "webpack-env",
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"env.d.ts",
|
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
"src/**/*.d.ts",
|
"src/**/*.d.ts",
|
||||||
"src/**/*.tsx",
|
"src/**/*.tsx",
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@
|
||||||
"include": [
|
"include": [
|
||||||
"package.json",
|
"package.json",
|
||||||
"vite.config.ts",
|
"vite.config.ts",
|
||||||
"vite-polyfill-aliases.ts",
|
"vite-polyfill-aliases.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
export default {
|
export default {
|
||||||
|
// This Rollup aliases are extracted from @esbuild-plugins/node-modules-polyfill,
|
||||||
|
// see https://github.com/remorses/esbuild-plugins/blob/master/node-modules-polyfill/src/polyfills.ts
|
||||||
|
// process and buffer are excluded because already managed
|
||||||
|
// by node-globals-polyfill
|
||||||
|
// https://github.com/vitejs/vite/issues/9511
|
||||||
|
|
||||||
util: 'rollup-plugin-node-polyfills/polyfills/util',
|
util: 'rollup-plugin-node-polyfills/polyfills/util',
|
||||||
sys: 'util',
|
sys: 'util',
|
||||||
events: 'rollup-plugin-node-polyfills/polyfills/events',
|
events: 'rollup-plugin-node-polyfills/polyfills/events',
|
||||||
|
|
@ -27,6 +33,4 @@ export default {
|
||||||
buffer: 'rollup-plugin-node-polyfills/polyfills/buffer-es6',
|
buffer: 'rollup-plugin-node-polyfills/polyfills/buffer-es6',
|
||||||
process: 'rollup-plugin-node-polyfills/polyfills/process-es6',
|
process: 'rollup-plugin-node-polyfills/polyfills/process-es6',
|
||||||
|
|
||||||
// Buffer: 'buffer/',
|
|
||||||
// process: 'rollup-plugin-node-globals',
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
import { Plugin } from 'rollup';
|
||||||
|
|
||||||
import { fileURLToPath, URL } from 'node:url';
|
import { fileURLToPath, URL } from 'node:url';
|
||||||
import { defineConfig, optimizeDeps } from 'vite';
|
import { defineConfig, optimizeDeps } from 'vite';
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
|
|
@ -7,28 +9,66 @@ import { esbuildCommonjs, viteCommonjs } from '@originjs/vite-plugin-commonjs';
|
||||||
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill';
|
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill';
|
||||||
import { NodeModulesPolyfillPlugin } from '@esbuild-plugins/node-modules-polyfill';
|
import { NodeModulesPolyfillPlugin } from '@esbuild-plugins/node-modules-polyfill';
|
||||||
|
|
||||||
import { Plugin } from 'rollup';
|
|
||||||
|
|
||||||
import { splitVendorChunkPlugin } from 'vite';
|
|
||||||
import rollupNodePolyfills from 'rollup-plugin-node-polyfills';
|
import rollupNodePolyfills from 'rollup-plugin-node-polyfills';
|
||||||
import viteNodePolyfills from 'vite-plugin-node-stdlib-browser';
|
|
||||||
import { nodeResolve as rollupNodeResolve } from '@rollup/plugin-node-resolve';
|
import { nodeResolve as rollupNodeResolve } from '@rollup/plugin-node-resolve';
|
||||||
import rollupCommonjs from '@rollup/plugin-commonjs';
|
import rollupCommonjs from '@rollup/plugin-commonjs';
|
||||||
import terser from '@rollup/plugin-terser';
|
|
||||||
import compiler from '@ampproject/rollup-plugin-closure-compiler';
|
|
||||||
import { babel, getBabelOutputPlugin } from '@rollup/plugin-babel';
|
|
||||||
import legacy from '@vitejs/plugin-legacy';
|
|
||||||
import uglify from '@lopatnov/rollup-plugin-uglify';
|
|
||||||
import { obfuscator } from 'rollup-obfuscator';
|
|
||||||
import { chunkSplitPlugin } from 'vite-plugin-chunk-split';
|
|
||||||
|
|
||||||
import { dependencies } from './package.json';
|
|
||||||
import polyfillAliases from './vite-polyfill-aliases';
|
import polyfillAliases from './vite-polyfill-aliases';
|
||||||
import { resolve } from 'node:path';
|
import { dependencies } from './package.json';
|
||||||
|
|
||||||
export function injectSecPlugin(mode) {
|
function injectSecPlugin(mode) {
|
||||||
return ['production', 'live'].indexOf(mode) !== -1 ? secPlugins : [];
|
return ['production', 'live', 'prod'].indexOf(mode) !== -1 ? secPlugins : [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://vitejs.dev/config/
|
||||||
|
export default defineConfig(({ command, mode, ssrBuild }) => {
|
||||||
|
return {
|
||||||
|
plugins: [viteCommonjs(), vue(), vueJsx()],
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||||
|
'@thriftgen': fileURLToPath(new URL('./gen', import.meta.url)),
|
||||||
|
|
||||||
|
...polyfillAliases,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
define: {
|
||||||
|
global: 'globalThis',
|
||||||
|
},
|
||||||
|
optimizeDeps: {
|
||||||
|
esbuildOptions: {
|
||||||
|
define: { global: 'globalThis' },
|
||||||
|
plugins: [
|
||||||
|
NodeGlobalsPolyfillPlugin({
|
||||||
|
process: true,
|
||||||
|
buffer: true,
|
||||||
|
}),
|
||||||
|
NodeModulesPolyfillPlugin(),
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
outDir: '../public',
|
||||||
|
manifest: true,
|
||||||
|
minify: false,
|
||||||
|
rollupOptions: {
|
||||||
|
plugins: [
|
||||||
|
rollupNodePolyfills(),
|
||||||
|
rollupNodeResolve(),
|
||||||
|
rollupCommonjs({}),
|
||||||
|
esbuildCommonjs(['thrift']),
|
||||||
|
|
||||||
|
...injectSecPlugin(mode),
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
import { obfuscator } from 'rollup-obfuscator';
|
||||||
|
import terser from '@rollup/plugin-terser';
|
||||||
|
|
||||||
export const secPlugins: Plugin[] = [
|
export const secPlugins: Plugin[] = [
|
||||||
// NOT WORK.
|
// NOT WORK.
|
||||||
// babel({
|
// babel({
|
||||||
|
|
@ -187,163 +227,3 @@ export const secPlugins: Plugin[] = [
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
|
||||||
|
|
||||||
export default defineConfig(({ command, mode, ssrBuild }) => {
|
|
||||||
return {
|
|
||||||
plugins: [viteCommonjs(), vue(), vueJsx()],
|
|
||||||
resolve: {
|
|
||||||
alias: {
|
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
||||||
'@thriftgen': fileURLToPath(new URL('./gen', import.meta.url)),
|
|
||||||
|
|
||||||
...polyfillAliases,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
define: {
|
|
||||||
global: 'window',
|
|
||||||
},
|
|
||||||
optimizeDeps: {
|
|
||||||
esbuildOptions: {
|
|
||||||
define: { global: 'globalThis' },
|
|
||||||
plugins: [
|
|
||||||
NodeGlobalsPolyfillPlugin({
|
|
||||||
process: true,
|
|
||||||
buffer: true,
|
|
||||||
}),
|
|
||||||
NodeModulesPolyfillPlugin(),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
// exclude: ['flowbite', 'flowbite-vue', 'thrift'],
|
|
||||||
},
|
|
||||||
build: {
|
|
||||||
outDir: '../public',
|
|
||||||
manifest: true,
|
|
||||||
minify: false,
|
|
||||||
rollupOptions: {
|
|
||||||
input: {
|
|
||||||
main: resolve(__dirname, 'index.html'),
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
// to be able to use manual chunk - iife
|
|
||||||
// inlineDynamicImports: true,
|
|
||||||
manualChunks(id, { getModuleInfo, getModuleIds }) {
|
|
||||||
// const dynImpIds = getModuleInfo(id).dynamicImporters;
|
|
||||||
|
|
||||||
// if (/(gen\/|thrift|Thrift|util|events|inherits|WebSocket|Int64|ws)/.test(id)) return 'ext';
|
|
||||||
// if (/flowbite/.test(id)) return 'flowbite';
|
|
||||||
// if (/data-table/.test(id)) return 'edt';
|
|
||||||
// if (/scrollbar/.test(id)) return 'scrollbar';
|
|
||||||
// if (/(node_modules)/.test(id)) return 'vendor';
|
|
||||||
|
|
||||||
// if (id in dependencies) {
|
|
||||||
// return 'vendor';
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
rollupNodePolyfills(),
|
|
||||||
rollupNodeResolve(),
|
|
||||||
rollupCommonjs({}),
|
|
||||||
esbuildCommonjs(['thrift']),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export const x = defineConfig(({ command, mode, ssrBuild }) => {
|
|
||||||
return {
|
|
||||||
plugins: [viteNodePolyfills(), viteCommonjs(), vue(), vueJsx()],
|
|
||||||
resolve: {
|
|
||||||
alias: {
|
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
||||||
'@thriftgen': fileURLToPath(new URL('./gen', import.meta.url)),
|
|
||||||
// '@flowbite-vue': fileURLToPath(new URL('./3rdparty/flowbite-vue/src', import.meta.url)),
|
|
||||||
|
|
||||||
...polyfillAliases,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
optimizeDeps: {
|
|
||||||
esbuildOptions: {
|
|
||||||
define: { global: 'globalThis' },
|
|
||||||
plugins: [
|
|
||||||
NodeGlobalsPolyfillPlugin({
|
|
||||||
process: true,
|
|
||||||
buffer: true,
|
|
||||||
}),
|
|
||||||
NodeModulesPolyfillPlugin(),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
// include: [],
|
|
||||||
// exclude: [/@thriftgen/],
|
|
||||||
// exclude: [
|
|
||||||
// 'flowbite',
|
|
||||||
// 'flowbite-vue',
|
|
||||||
// 'thrift',
|
|
||||||
// 'vue3-easy-data-table',
|
|
||||||
// 'vue3-perfect-scrollbar',
|
|
||||||
// ...['structs_types', 'exceptions_types', 'CoreService'].map((x) => '@thriftgen/' + x),
|
|
||||||
// ],
|
|
||||||
},
|
|
||||||
build: {
|
|
||||||
outDir: '../public',
|
|
||||||
manifest: true,
|
|
||||||
// minify: 'terser',
|
|
||||||
minify: false,
|
|
||||||
|
|
||||||
// target: 'esnext',
|
|
||||||
|
|
||||||
rollupOptions: {
|
|
||||||
// input: {
|
|
||||||
// main: resolve(__dirname, 'index.html'),
|
|
||||||
// },
|
|
||||||
// output: {
|
|
||||||
// // format: 'iife',
|
|
||||||
// // format: 'cjs',
|
|
||||||
// globals: {
|
|
||||||
// // vue: "Vue"
|
|
||||||
// },
|
|
||||||
|
|
||||||
// // to be able to use manual chunk - iife
|
|
||||||
// // inlineDynamicImports: true,
|
|
||||||
// // manualChunks(id, { getModuleInfo, getModuleIds }) {
|
|
||||||
// // // if (/(gen\/|thrift|Thrift|util|inherits|WebSocket|Int64)/.test(id)) return 'ext';
|
|
||||||
// // // const dynImpIds = getModuleInfo(id).dynamicImporters;
|
|
||||||
// // if (/data-table/.test(id)) return 'edt';
|
|
||||||
// // if (/(node_modules)/.test(id)) return 'vendor';
|
|
||||||
// // // if (id in dependencies) {
|
|
||||||
// // // return 'vendor';
|
|
||||||
// // // }
|
|
||||||
// // },
|
|
||||||
// },
|
|
||||||
external: [
|
|
||||||
// "vue",
|
|
||||||
],
|
|
||||||
plugins: [
|
|
||||||
// chunkSplitPlugin({
|
|
||||||
// strategy: 'single-vendor',
|
|
||||||
// customSplitting: {
|
|
||||||
// 'thrift-vendor': ['thrift'],
|
|
||||||
// 'flowbite-vendor': ['flowbite'],
|
|
||||||
// },
|
|
||||||
// }),
|
|
||||||
|
|
||||||
// splitVendorChunkPlugin(),
|
|
||||||
rollupNodePolyfills(),
|
|
||||||
rollupNodeResolve(),
|
|
||||||
rollupCommonjs({}),
|
|
||||||
esbuildCommonjs(['thrift']),
|
|
||||||
|
|
||||||
// NOT WORK.
|
|
||||||
// ...legacy({
|
|
||||||
// targets: ['defaults', 'IE 11'],
|
|
||||||
// }),
|
|
||||||
|
|
||||||
...injectSecPlugin(mode),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
12728
public/assets/index.d28a354c.js
Normal file
12728
public/assets/index.d28a354c.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -5,7 +5,7 @@
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Vite + Vue + TS</title>
|
<title>Vite + Vue + TS</title>
|
||||||
<script type="module" crossorigin src="/assets/index.241d8ed5.js"></script>
|
<script type="module" crossorigin src="/assets/index.d28a354c.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/index.d6f403e9.css">
|
<link rel="stylesheet" href="/assets/index.d6f403e9.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"index.html": {
|
"index.html": {
|
||||||
"file": "assets/index.241d8ed5.js",
|
"file": "assets/index.d28a354c.js",
|
||||||
"src": "index.html",
|
"src": "index.html",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"css": [
|
"css": [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue