145 lines
4.5 KiB
TypeScript
145 lines
4.5 KiB
TypeScript
//
|
|
// Autogenerated by Thrift Compiler (0.16.0)
|
|
//
|
|
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
//
|
|
|
|
import thrift = require('thrift');
|
|
import Thrift = thrift.Thrift;
|
|
import Q = thrift.Q;
|
|
import Int64 = require('node-int64');
|
|
import structs_ttypes = require('./structs_types');
|
|
import exceptions_ttypes = require('./exceptions_types');
|
|
|
|
import ttypes = require('./service_types');
|
|
|
|
declare class Client {
|
|
private output: thrift.TTransport;
|
|
private pClass: thrift.TProtocol;
|
|
private _seqid: number;
|
|
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
callback?: (
|
|
error: exceptions_ttypes.CoreServicesException,
|
|
response: structs_ttypes.DeleteWajibpajakListResponse,
|
|
) => void,
|
|
): void;
|
|
}
|
|
|
|
declare class Processor {
|
|
private _handler: object;
|
|
|
|
constructor(handler: object);
|
|
process(input: thrift.TProtocol, output: thrift.TProtocol): void;
|
|
process_login(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
|
process_getProfile(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
|
process_logout(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
|
process_getUserList(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
|
process_createUser(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_createWajibPajak(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
|
|
process_deleteWajibPajakList(
|
|
seqid: number,
|
|
input: thrift.TProtocol,
|
|
output: thrift.TProtocol,
|
|
): void;
|
|
}
|