@montarist/nilvera-api
Version:
An unofficial SDK for integrating with Nilvera e-Invoice, e-Archive services
29 lines (28 loc) • 773 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseService = void 0;
/**
* Base service class that provides common functionality for all services
* in the application. This class serves as a foundation for other service classes
* by managing the API client instance.
*
* @class BaseService
* @abstract
* @description Handles common service operations and maintains the API client instance
* that will be used for making HTTP requests.
*
* @example
* ```typescript
* class UserService extends BaseService {
* constructor(apiClient: ApiClient) {
* super(apiClient);
* }
* }
* ```
*/
class BaseService {
constructor(apiClient) {
this.apiClient = apiClient;
}
}
exports.BaseService = BaseService;