@dsivd/prestations-ng 16.5.1-beta.2 → 16.5.1-beta.3
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/CHANGELOG.md +7 -2
- package/dsivd-prestations-ng-v16.5.1-beta.3.tgz +0 -0
- package/esm2020/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.mjs +17 -4
- package/fesm2015/dsivd-prestations-ng.mjs +15 -3
- package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
- package/fesm2020/dsivd-prestations-ng.mjs +15 -3
- package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
- package/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.d.ts +4 -1
- package/package.json +1 -1
- package/dsivd-prestations-ng-v16.5.1-beta.2.tgz +0 -0
|
@@ -13610,12 +13610,13 @@ class BoDocumentsWithErrors {
|
|
|
13610
13610
|
}
|
|
13611
13611
|
|
|
13612
13612
|
class BoMultiUploadService {
|
|
13613
|
-
constructor(httpClient, growlService, applicationInfoService, dictionaryService, uploadProgressService) {
|
|
13613
|
+
constructor(httpClient, growlService, applicationInfoService, dictionaryService, uploadProgressService, iamInterceptor) {
|
|
13614
13614
|
this.httpClient = httpClient;
|
|
13615
13615
|
this.growlService = growlService;
|
|
13616
13616
|
this.applicationInfoService = applicationInfoService;
|
|
13617
13617
|
this.dictionaryService = dictionaryService;
|
|
13618
13618
|
this.uploadProgressService = uploadProgressService;
|
|
13619
|
+
this.iamInterceptor = iamInterceptor;
|
|
13619
13620
|
// A way to have a unique Id per file
|
|
13620
13621
|
this.globalSequence = 0;
|
|
13621
13622
|
this.NB_CONCURRENT_FILES_TO_UPLOAD = 3;
|
|
@@ -13667,6 +13668,7 @@ class BoMultiUploadService {
|
|
|
13667
13668
|
this.growlService.addWithType(GrowlType.SUCCESS, message);
|
|
13668
13669
|
}), catchError((e) => {
|
|
13669
13670
|
const message = this.dictionaryService.getKeySync('foehn-uploader.delete-error-message');
|
|
13671
|
+
this.manageBeneficiaryRequiredError(e);
|
|
13670
13672
|
this.growlService.addWithType(GrowlType.DANGER, message);
|
|
13671
13673
|
return throwError(() => e);
|
|
13672
13674
|
}));
|
|
@@ -13695,18 +13697,28 @@ class BoMultiUploadService {
|
|
|
13695
13697
|
this.uploadProgressService.showProgress.next(false);
|
|
13696
13698
|
const message = this.dictionaryService.getKeySync('foehn-uploader.transmission-error-message');
|
|
13697
13699
|
this.growlService.addWithType(GrowlType.DANGER, message);
|
|
13700
|
+
this.manageBeneficiaryRequiredError(e);
|
|
13698
13701
|
return throwError(() => e);
|
|
13699
13702
|
}));
|
|
13700
13703
|
}
|
|
13704
|
+
manageBeneficiaryRequiredError(httpErrorResponse) {
|
|
13705
|
+
if (!!httpErrorResponse) {
|
|
13706
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13707
|
+
const { error } = httpErrorResponse;
|
|
13708
|
+
if (error?.code === 'BENEFICIARY_REQUIRED') {
|
|
13709
|
+
this.iamInterceptor.setIamSessionExpiredManually();
|
|
13710
|
+
}
|
|
13711
|
+
}
|
|
13712
|
+
}
|
|
13701
13713
|
}
|
|
13702
|
-
BoMultiUploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BoMultiUploadService, deps: [{ token: i1.HttpClient }, { token: GrowlBrokerService }, { token: ApplicationInfoService }, { token: SdkDictionaryService }, { token: UploadProgressService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13714
|
+
BoMultiUploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BoMultiUploadService, deps: [{ token: i1.HttpClient }, { token: GrowlBrokerService }, { token: ApplicationInfoService }, { token: SdkDictionaryService }, { token: UploadProgressService }, { token: IamExpiredInterceptorService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13703
13715
|
BoMultiUploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BoMultiUploadService, providedIn: 'root' });
|
|
13704
13716
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BoMultiUploadService, decorators: [{
|
|
13705
13717
|
type: Injectable,
|
|
13706
13718
|
args: [{
|
|
13707
13719
|
providedIn: 'root'
|
|
13708
13720
|
}]
|
|
13709
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: GrowlBrokerService }, { type: ApplicationInfoService }, { type: SdkDictionaryService }, { type: UploadProgressService }]; } });
|
|
13721
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: GrowlBrokerService }, { type: ApplicationInfoService }, { type: SdkDictionaryService }, { type: UploadProgressService }, { type: IamExpiredInterceptorService }]; } });
|
|
13710
13722
|
|
|
13711
13723
|
class FoehnBoMultiUploadComponent extends AbstractFoehnUploaderComponent {
|
|
13712
13724
|
constructor(boMultiUploadService, applicationInfoService, confirmModalService, dictionaryService, growlService, pageUploadLimitService) {
|