taxtank-core 0.33.69 → 0.33.71

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.69",
3
+ "version": "0.33.71",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -21,7 +21,7 @@ export declare abstract class DataService<BaseModel, Model extends AbstractModel
21
21
  * @param model Single object or array from which will be created model instance(s)
22
22
  */
23
23
  protected createModelInstance(model: object): Model;
24
- protected createCollectionInstance(collectionClass: new (items: Model[]) => CollectionModel, items: Model[]): CollectionModel;
24
+ protected createCollectionInstance(collectionClass: new (items: Model[]) => CollectionModel, data: any[]): CollectionModel;
25
25
  /**
26
26
  * never return cache directly to prevent update
27
27
  */
@@ -41,6 +41,7 @@ export declare class BankAccountService extends RestService<BankAccountBase, Ban
41
41
  * manualConnection moved to basiq, old manual bankAccounts closed to let user add automated bankAccounts (because there is no reliable way to merge)
42
42
  */
43
43
  private listenConnections;
44
+ private listenNotifications;
44
45
  static ɵfac: i0.ɵɵFactoryDeclaration<BankAccountService, never>;
45
46
  static ɵprov: i0.ɵɵInjectableDeclaration<BankAccountService>;
46
47
  }
@@ -15,7 +15,6 @@ export declare class BankConnectionService extends RestService<BankConnectionBas
15
15
  collectionClass: typeof Collection;
16
16
  endpointUri: string;
17
17
  disabledMethods: RestMethod[];
18
- mercureTopic: string;
19
18
  constructor(environment: any);
20
19
  listenEvents(): void;
21
20
  /**
@@ -25,6 +24,7 @@ export declare class BankConnectionService extends RestService<BankConnectionBas
25
24
  post(bankConnection: BankConnection): Observable<BankConnection>;
26
25
  activate(bankConnection: BankConnection): Observable<BankConnection>;
27
26
  deactivate(bankConnection: BankConnection): Observable<BankConnection>;
27
+ private listenNotifications;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<BankConnectionService, never>;
29
29
  static ɵprov: i0.ɵɵInjectableDeclaration<BankConnectionService>;
30
30
  }
@@ -13,6 +13,7 @@ export declare class ClientMovementService extends RestService<ClientMovementBas
13
13
  collectionClass: typeof ClientMovementCollection;
14
14
  modelClass: typeof ClientMovement;
15
15
  disabledMethods: RestMethod[];
16
+ mercureTopic: string;
16
17
  constructor(environment: any);
17
18
  listenEvents(): void;
18
19
  getActive(): Observable<ClientMovementCollection>;
@@ -32,7 +33,6 @@ export declare class ClientMovementService extends RestService<ClientMovementBas
32
33
  * Reject current firm
33
34
  */
34
35
  close(clientMovement: ClientMovement): Observable<void>;
35
- private listenNotifications;
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<ClientMovementService, never>;
37
37
  static ɵprov: i0.ɵɵInjectableDeclaration<ClientMovementService>;
38
38
  }
@@ -4,6 +4,8 @@ import { RestMethod, RestService } from '../rest';
4
4
  import { HoldingTypeCollection } from '../../../collections';
5
5
  import { IEventListener } from '../../../interfaces';
6
6
  import { UserRolesEnum } from 'taxtank-core/common';
7
+ import { HoldingTypeCategoryEnum } from '../../../db/Enums';
8
+ import { Observable } from 'rxjs';
7
9
  import * as i0 from "@angular/core";
8
10
  export declare class HoldingTypeService extends RestService<HoldingTypeBase, HoldingType, HoldingTypeCollection> implements IEventListener {
9
11
  protected environment: any;
@@ -13,6 +15,8 @@ export declare class HoldingTypeService extends RestService<HoldingTypeBase, Hol
13
15
  disabledMethods: RestMethod[];
14
16
  roles: UserRolesEnum[];
15
17
  constructor(environment: any);
18
+ search(query: string, category?: HoldingTypeCategoryEnum): Observable<HoldingTypeCollection>;
19
+ getCurrent(): Observable<HoldingTypeCollection>;
16
20
  listenEvents(): void;
17
21
  static ɵfac: i0.ɵɵFactoryDeclaration<HoldingTypeService, never>;
18
22
  static ɵprov: i0.ɵɵInjectableDeclaration<HoldingTypeService>;
@@ -69,7 +69,7 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
69
69
  /**
70
70
  * Get data from backend and fill the cache
71
71
  */
72
- fetch(path?: string, cache?: boolean): Observable<CollectionModel>;
72
+ fetch(path?: string, cache?: boolean, queryParams?: {}): Observable<CollectionModel>;
73
73
  get(path?: string): Observable<CollectionModel>;
74
74
  getBy(path: string, values: any): Observable<CollectionModel>;
75
75
  getFirst(): Observable<Model>;
@@ -6,6 +6,13 @@ export declare class XlsxService {
6
6
  */
7
7
  exportTables(tables: NodeListOf<HTMLTableElement>, title: string, fileName: string): void;
8
8
  private generateFromTables;
9
+ htmlToXlsCell(cell: HTMLTableCellElement): string | number;
10
+ /**
11
+ * function which reconverts values from customCurrencyPipe
12
+ * @param cellValue - string with $ and possibly comma. $123,123.03
13
+ * @returns value without $ and comma. like 123123.03
14
+ */
15
+ currencyToNumber(cellValue: string): number;
9
16
  getFileName: (name: string) => {
10
17
  sheetName: string;
11
18
  fileName: string;