@arsedizioni/ars-utils 20.4.41 → 20.4.43

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/core/index.d.ts CHANGED
@@ -474,14 +474,15 @@ interface Checkable {
474
474
  declare class ValueModel<T> {
475
475
  value: T;
476
476
  }
477
- declare class IDModel<T> {
477
+ declare class IDModel<T = number> {
478
478
  id: T;
479
479
  }
480
- declare class GroupModel<T> {
480
+ declare class GroupModel<T = number> {
481
481
  ids: T[];
482
482
  }
483
- declare class DeleteModel<T> extends GroupModel<T> {
484
- mode: number;
483
+ declare class DeleteModel<T = number> extends GroupModel<T> {
484
+ mode?: number;
485
+ parentId?: T;
485
486
  }
486
487
  interface DeleteResultModel<T> {
487
488
  items?: T[];
@@ -489,11 +490,11 @@ interface DeleteResultModel<T> {
489
490
  total: number;
490
491
  log?: string;
491
492
  }
492
- declare class RelationModel<T> {
493
+ declare class RelationModel<T = number> {
493
494
  id: T;
494
495
  parentId: T;
495
496
  }
496
- declare class UpdateRelationsModel<T> {
497
+ declare class UpdateRelationsModel<T = number> {
497
498
  id: T;
498
499
  relatedIds: T[];
499
500
  }
@@ -509,7 +510,7 @@ interface QueryResultModel<T> {
509
510
  items: T[];
510
511
  total: number;
511
512
  }
512
- interface UpdateModel<T> {
513
+ interface UpdateModel<T = number> {
513
514
  parentId?: T;
514
515
  ids: T[];
515
516
  }
@@ -2612,10 +2612,10 @@ class ClipperService {
2612
2612
  downloadArchiveFile(id, otp) {
2613
2613
  return this.httpClient.get(this._serviceUri + '/archive/files/download/?id=' + id + '&otp=' + (otp ?? ''), { responseType: 'blob' });
2614
2614
  }
2615
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2616
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ClipperService, providedIn: 'root' }); }
2615
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2616
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ClipperService, providedIn: 'root' }); }
2617
2617
  }
2618
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ClipperService, decorators: [{
2618
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ClipperService, decorators: [{
2619
2619
  type: Injectable,
2620
2620
  args: [{
2621
2621
  providedIn: 'root',
@@ -2672,19 +2672,19 @@ class ClipperAuthInterceptor {
2672
2672
  }
2673
2673
  return next.handle(request);
2674
2674
  }
2675
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ClipperAuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2676
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ClipperAuthInterceptor }); }
2675
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ClipperAuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2676
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ClipperAuthInterceptor }); }
2677
2677
  }
2678
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ClipperAuthInterceptor, decorators: [{
2678
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ClipperAuthInterceptor, decorators: [{
2679
2679
  type: Injectable
2680
2680
  }] });
2681
2681
 
2682
2682
  class ArsClipperCommonModule {
2683
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ArsClipperCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2684
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.7", ngImport: i0, type: ArsClipperCommonModule }); }
2685
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ArsClipperCommonModule }); }
2683
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ArsClipperCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2684
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.10", ngImport: i0, type: ArsClipperCommonModule }); }
2685
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ArsClipperCommonModule }); }
2686
2686
  }
2687
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ArsClipperCommonModule, decorators: [{
2687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ArsClipperCommonModule, decorators: [{
2688
2688
  type: NgModule
2689
2689
  }] });
2690
2690