taxtank-core 0.29.34 → 0.29.36

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.
@@ -39,9 +39,13 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
39
39
  findBy(path: string, value: any): Model | null;
40
40
  findIndexBy(path: string, value: any): number;
41
41
  push(...items: Model[]): this;
42
- replaceBy(path: string, value: any, item: Model): this;
43
- remove(items: Model[]): this;
42
+ remove(...items: Model[]): this;
43
+ /**
44
+ * @TODO it's filter, not remove
45
+ */
44
46
  removeBy(path: string, values: any): this;
47
+ replaceBy(path: string, value: any, item: Model): this;
48
+ diff(items: Model[]): this;
45
49
  minBy(path: string): Model;
46
50
  maxBy(path: string): Model;
47
51
  reduce(callback: (sum: number, item: Model) => number, init?: number): number;
@@ -1,5 +1,6 @@
1
1
  import { Collection } from '../collection';
2
2
  import { ServiceProduct } from '../../models';
3
3
  export declare class ServiceProductCollection extends Collection<ServiceProduct> {
4
+ get title(): string;
4
5
  getActive(): this;
5
6
  }
@@ -8,6 +8,7 @@ export declare class ServiceSubscriptionCollection extends Collection<ServiceSub
8
8
  getTrials(): this;
9
9
  getActiveTrials(): this;
10
10
  getExpiredTrials(): this;
11
+ getExpiredAfter(date: Date): this;
11
12
  getPaid(): this;
12
13
  getActivePaid(): ServiceSubscription;
13
14
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.29.34",
3
+ "version": "0.29.36",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",