taxtank-core 0.31.30 → 0.31.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { BankTransaction as BankTransactionBase } from '../../db/Models/bank/bank-transaction';
2
2
  import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
3
- import { Transaction } from '../transaction/transaction';
4
- import { TransactionAllocationCollection } from '../../collections/transaction/transaction-allocation.collection';
3
+ import { Transaction } from '../transaction';
4
+ import { TransactionAllocationCollection } from '../../collections';
5
5
  export declare class BankTransaction extends BankTransactionBase {
6
6
  allocatedAmount: number;
7
7
  unallocatedAmount: number;
@@ -23,7 +23,7 @@ export declare class BankTransaction extends BankTransactionBase {
23
23
  /**
24
24
  * Create Transaction instance based on Bank Transaction
25
25
  */
26
- toTransaction(): Transaction;
26
+ toTransaction(isGST?: boolean, allocations?: TransactionAllocationCollection): Transaction;
27
27
  /**
28
28
  * Check if bank transaction is completely allocated
29
29
  */
@@ -2,7 +2,7 @@ import { AllocationRuleTransaction as AllocationRuleTransactionBase } from '../.
2
2
  import { ChartAccounts } from '../chart-accounts';
3
3
  import { AllocationRuleTransactionMetaField } from './allocation-rule-transaction-meta-field';
4
4
  import { BankTransaction, Loan, Property, SoleBusiness, Transaction } from '../../models';
5
- import { IncomeSource } from '../income-source/income-source';
5
+ import { IncomeSource } from '../income-source';
6
6
  export declare class AllocationRuleTransaction extends AllocationRuleTransactionBase {
7
7
  chartAccounts: ChartAccounts;
8
8
  property: Property;
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { CurrencyPipe } from '@angular/common';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * extended version of currency pipe
6
+ */
7
+ export declare class AppCurrencyPipe extends CurrencyPipe implements PipeTransform {
8
+ transform(value: number | string, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): any;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppCurrencyPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<AppCurrencyPipe, "appCurrency", true>;
11
+ }
@@ -0,0 +1 @@
1
+ export * from './app-currency.pipe';
@@ -2,7 +2,7 @@ import { RestService } from '../../rest/rest-old.service';
2
2
  import { User as UserBase } from '../../../../db/Models/user/user';
3
3
  import { Observable } from 'rxjs';
4
4
  import { User } from '../../../../models/user/user';
5
- import { EmployeeMessagesEnum } from "./employee-messages.enum";
5
+ import { EmployeeMessagesEnum } from './employee-messages.enum';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class EmployeeService extends RestService<UserBase, User> {
8
8
  url: string;
@@ -79,10 +79,12 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
79
79
  * Remove multiple Model instances from database
80
80
  */
81
81
  deleteBatch(models: Model[]): Observable<void>;
82
+ protected track(response: Model[], method: HttpMethod, postfix?: string): void;
83
+ protected handleResponseError(response: Model[], method: HttpMethod): void;
82
84
  /**
83
85
  * Handle response data - update cache and dispatch event if it is needed
84
86
  */
85
- handleResponse(response: Model[], method: HttpMethod): void;
87
+ protected handleResponse(response: Model[], method: HttpMethod): void;
86
88
  /**
87
89
  * Update cache with passed items. Add/Update detects automatically, Delete via optional flag
88
90
  */
@@ -2,6 +2,9 @@ import { ModuleWithProviders } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "@angular/common";
4
4
  import * as i2 from "./interceptors/interceptors.module";
5
+ /**
6
+ * https://angular.io/guide/creating-libraries
7
+ */
5
8
  export declare class TtCoreModule {
6
9
  static forRoot(environment: object): ModuleWithProviders<TtCoreModule>;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TtCoreModule, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.31.30",
3
+ "version": "0.31.31",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",
package/public-api.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  * Public API Surface of tt-core
3
3
  */
4
4
  export * from './lib/tt-core.module';
5
+ export * from './lib/pipes';
5
6
  /**
6
7
  * Collections
7
8
  */