@valtimo/resource 10.8.0 → 11.0.0
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/esm2022/lib/models/open-zaak.model.mjs +69 -0
- package/{esm2020 → esm2022}/lib/models/upload.model.mjs +1 -1
- package/esm2022/lib/models/uploader.model.mjs +30 -0
- package/{esm2020 → esm2022}/lib/resource.module.mjs +12 -12
- package/esm2022/lib/services/download.service.mjs +89 -0
- package/{esm2020 → esm2022}/lib/services/open-zaak-upload.service.mjs +4 -4
- package/esm2022/lib/services/open-zaak.service.mjs +116 -0
- package/esm2022/lib/services/s3-upload.service.mjs +46 -0
- package/esm2022/lib/services/s3.service.mjs +58 -0
- package/esm2022/lib/services/upload-provider.service.mjs +77 -0
- package/{fesm2020 → fesm2022}/valtimo-resource.mjs +42 -51
- package/fesm2022/valtimo-resource.mjs.map +1 -0
- package/lib/models/open-zaak.model.d.ts +0 -14
- package/lib/models/open-zaak.model.d.ts.map +1 -1
- package/lib/models/upload.model.d.ts +1 -1
- package/lib/models/upload.model.d.ts.map +1 -1
- package/lib/models/uploader.model.d.ts +2 -1
- package/lib/models/uploader.model.d.ts.map +1 -1
- package/lib/services/download.service.d.ts.map +1 -1
- package/lib/services/open-zaak.service.d.ts +1 -4
- package/lib/services/open-zaak.service.d.ts.map +1 -1
- package/lib/services/s3-upload.service.d.ts +1 -1
- package/lib/services/s3-upload.service.d.ts.map +1 -1
- package/lib/services/s3.service.d.ts.map +1 -1
- package/lib/services/upload-provider.service.d.ts +1 -1
- package/lib/services/upload-provider.service.d.ts.map +1 -1
- package/package.json +8 -14
- package/esm2020/lib/models/open-zaak.model.mjs +0 -76
- package/esm2020/lib/models/uploader.model.mjs +0 -26
- package/esm2020/lib/services/download.service.mjs +0 -89
- package/esm2020/lib/services/open-zaak.service.mjs +0 -125
- package/esm2020/lib/services/s3-upload.service.mjs +0 -46
- package/esm2020/lib/services/s3.service.mjs +0 -58
- package/esm2020/lib/services/upload-provider.service.mjs +0 -77
- package/fesm2015/valtimo-resource.mjs +0 -627
- package/fesm2015/valtimo-resource.mjs.map +0 -1
- package/fesm2020/valtimo-resource.mjs.map +0 -1
- /package/{esm2020 → esm2022}/lib/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/valtimo-resource.mjs +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2023 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Injectable } from '@angular/core';
|
|
17
|
+
import { UploadProvider } from '@valtimo/config';
|
|
18
|
+
import { of } from 'rxjs';
|
|
19
|
+
import { OpenZaakUploadService } from './open-zaak-upload.service';
|
|
20
|
+
import { S3UploadService } from './s3-upload.service';
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
import * as i1 from "@valtimo/config";
|
|
23
|
+
import * as i2 from "ngx-logger";
|
|
24
|
+
export class UploadProviderService {
|
|
25
|
+
constructor(configService, injector, logger) {
|
|
26
|
+
this.configService = configService;
|
|
27
|
+
this.injector = injector;
|
|
28
|
+
this.logger = logger;
|
|
29
|
+
let uploadService;
|
|
30
|
+
switch (configService.config.uploadProvider) {
|
|
31
|
+
case UploadProvider.S3:
|
|
32
|
+
uploadService = injector.get(S3UploadService);
|
|
33
|
+
break;
|
|
34
|
+
case UploadProvider.OPEN_ZAAK:
|
|
35
|
+
uploadService = injector.get(OpenZaakUploadService);
|
|
36
|
+
break;
|
|
37
|
+
case UploadProvider.DOCUMENTEN_API:
|
|
38
|
+
uploadService = injector.get(OpenZaakUploadService);
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
this.uploadService = uploadService;
|
|
42
|
+
this.logger.debug('Loading UploadService as', this.uploadService);
|
|
43
|
+
}
|
|
44
|
+
uploadFile(file, documentDefinitionName, documentId) {
|
|
45
|
+
return this.uploadService.uploadFile(file, documentDefinitionName, documentId);
|
|
46
|
+
}
|
|
47
|
+
getResource(resourceId) {
|
|
48
|
+
return this.uploadService.getResource(resourceId);
|
|
49
|
+
}
|
|
50
|
+
checkUploadProcessLink(caseDefinitionKey) {
|
|
51
|
+
if (this.uploadService.checkUploadProcessLink) {
|
|
52
|
+
return this.uploadService.checkUploadProcessLink(caseDefinitionKey);
|
|
53
|
+
}
|
|
54
|
+
return of(false);
|
|
55
|
+
}
|
|
56
|
+
uploadFileWithMetadata(file, documentId, metadata) {
|
|
57
|
+
if (this.uploadService.uploadFileWithMetadata) {
|
|
58
|
+
return this.uploadService.uploadFileWithMetadata(file, documentId, metadata);
|
|
59
|
+
}
|
|
60
|
+
return of(null);
|
|
61
|
+
}
|
|
62
|
+
uploadTempFileWithMetadata(file, metadata) {
|
|
63
|
+
if (this.uploadService.uploadTempFileWithMetadata) {
|
|
64
|
+
return this.uploadService.uploadTempFileWithMetadata(file, metadata);
|
|
65
|
+
}
|
|
66
|
+
return of(null);
|
|
67
|
+
}
|
|
68
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadProviderService, deps: [{ token: i1.ConfigService }, { token: i0.Injector }, { token: i2.NGXLogger }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
69
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadProviderService, providedIn: 'root' }); }
|
|
70
|
+
}
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadProviderService, decorators: [{
|
|
72
|
+
type: Injectable,
|
|
73
|
+
args: [{
|
|
74
|
+
providedIn: 'root',
|
|
75
|
+
}]
|
|
76
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigService }, { type: i0.Injector }, { type: i2.NGXLogger }]; } });
|
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLXByb3ZpZGVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL3Jlc291cmNlL3NyYy9saWIvc2VydmljZXMvdXBsb2FkLXByb3ZpZGVyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxPQUFPLEVBQUMsVUFBVSxFQUFXLE1BQU0sZUFBZSxDQUFDO0FBR25ELE9BQU8sRUFBZ0IsY0FBYyxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDOUQsT0FBTyxFQUFhLEVBQUUsRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUNwQyxPQUFPLEVBQUMscUJBQXFCLEVBQUMsTUFBTSw0QkFBNEIsQ0FBQztBQUNqRSxPQUFPLEVBQUMsZUFBZSxFQUFDLE1BQU0scUJBQXFCLENBQUM7Ozs7QUFLcEQsTUFBTSxPQUFPLHFCQUFxQjtJQUdoQyxZQUNVLGFBQTRCLEVBQzVCLFFBQWtCLEVBQ2xCLE1BQWlCO1FBRmpCLGtCQUFhLEdBQWIsYUFBYSxDQUFlO1FBQzVCLGFBQVEsR0FBUixRQUFRLENBQVU7UUFDbEIsV0FBTSx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W5nLFxuICAgIG1ldGFkYXRhOiB7W2tleTogc3RyaW5nXTogYW55fVxuICApOiBPYnNlcnZhYmxlPHZvaWQ+IHtcbiAgICBpZiAodGhpcy51cGxvYWRTZXJ2aWNlLnVwbG9hZEZpbGVXaXRoTWV0YWRhdGEpIHtcbiAgICAgIHJldHVybiB0aGlzLnVwbG9hZFNlcnZpY2UudXBsb2FkRmlsZVdpdGhNZXRhZGF0YShmaWxlLCBkb2N1bWVudElkLCBtZXRhZGF0YSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG9mKG51bGwpO1xuICB9XG5cbiAgdXBsb2FkVGVtcEZpbGVXaXRoTWV0YWRhdGEoXG4gICAgZmlsZTogRmlsZSxcbiAgICBtZXRhZGF0YToge1trZXk6IHN0cmluZ106IGFueX1cbiAgKTogT2JzZXJ2YWJsZTxEb2N1bWVudGVuQXBpRmlsZVJlZmVyZW5jZT4ge1xuICAgIGlmICh0aGlzLnVwbG9hZFNlcnZpY2UudXBsb2FkVGVtcEZpbGVXaXRoTWV0YWRhdGEpIHtcbiAgICAgIHJldHVybiB0aGlzLnVwbG9hZFNlcnZpY2UudXBsb2FkVGVtcEZpbGVXaXRoTWV0YWRhdGEoZmlsZSwgbWV0YWRhdGEpO1xuICAgIH1cblxuICAgIHJldHVybiBvZihudWxsKTtcbiAgfVxufVxuIl19
|
|
@@ -41,13 +41,17 @@ import * as i2$1 from 'ngx-logger';
|
|
|
41
41
|
* limitations under the License.
|
|
42
42
|
*/
|
|
43
43
|
class S3Resource {
|
|
44
|
-
constructor(file, preSignedUrl) {
|
|
44
|
+
constructor(file, preSignedUrl, documentId) {
|
|
45
45
|
this.id = null;
|
|
46
46
|
this.extension = null;
|
|
47
47
|
this.createdOn = null;
|
|
48
48
|
this.key = decodeURIComponent(preSignedUrl.pathname.substring(1));
|
|
49
49
|
this.name = file.name;
|
|
50
50
|
this.sizeInBytes = file.size;
|
|
51
|
+
if (!documentId) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this.documentId = documentId;
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
57
|
|
|
@@ -119,13 +123,6 @@ var Objecttype;
|
|
|
119
123
|
Objecttype["zakelijk_recht"] = "zakelijk_recht";
|
|
120
124
|
Objecttype["overige"] = "overige";
|
|
121
125
|
})(Objecttype || (Objecttype = {}));
|
|
122
|
-
var Operation;
|
|
123
|
-
(function (Operation) {
|
|
124
|
-
Operation["CREATE_ZAAK"] = "CREATE_ZAAK";
|
|
125
|
-
Operation["SET_RESULTAAT"] = "SET_RESULTAAT";
|
|
126
|
-
Operation["SET_STATUS"] = "SET_STATUS";
|
|
127
|
-
Operation["CREATE_BESLUIT"] = "CREATE_BESLUIT";
|
|
128
|
-
})(Operation || (Operation = {}));
|
|
129
126
|
|
|
130
127
|
/*
|
|
131
128
|
* Copyright 2015-2023 Ritense BV, the Netherlands.
|
|
@@ -207,15 +204,6 @@ class OpenZaakService {
|
|
|
207
204
|
getStatusResults(zaakTypeRequest) {
|
|
208
205
|
return this.http.post(`${this.valtimoApiConfig.endpointUri}v1/openzaak/resultaat`, zaakTypeRequest);
|
|
209
206
|
}
|
|
210
|
-
createServiceTaskHandler(id, request) {
|
|
211
|
-
return this.http.post(`${this.valtimoApiConfig.endpointUri}v1/openzaak/link/${id}/service-handler`, request);
|
|
212
|
-
}
|
|
213
|
-
modifyServiceTaskHandler(id, request) {
|
|
214
|
-
return this.http.put(`${this.valtimoApiConfig.endpointUri}v1/openzaak/link/${id}/service-handler`, request);
|
|
215
|
-
}
|
|
216
|
-
deleteServiceTaskHandler(id, processDefinitionKey, serviceTaskId) {
|
|
217
|
-
return this.http.delete(`${this.valtimoApiConfig.endpointUri}v1/openzaak/link/${id}/service-handler/${processDefinitionKey}/${serviceTaskId}`);
|
|
218
|
-
}
|
|
219
207
|
upload(file, documentDefinitionName) {
|
|
220
208
|
const formData = new FormData();
|
|
221
209
|
formData.append('file', file);
|
|
@@ -254,10 +242,10 @@ class OpenZaakService {
|
|
|
254
242
|
responseType: 'json',
|
|
255
243
|
});
|
|
256
244
|
}
|
|
245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenZaakService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
246
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenZaakService, providedIn: 'root' }); }
|
|
257
247
|
}
|
|
258
|
-
|
|
259
|
-
OpenZaakService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OpenZaakService, providedIn: 'root' });
|
|
260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OpenZaakService, decorators: [{
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenZaakService, decorators: [{
|
|
261
249
|
type: Injectable,
|
|
262
250
|
args: [{
|
|
263
251
|
providedIn: 'root',
|
|
@@ -322,10 +310,10 @@ class OpenZaakUploadService {
|
|
|
322
310
|
},
|
|
323
311
|
};
|
|
324
312
|
}
|
|
313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenZaakUploadService, deps: [{ token: OpenZaakService }, { token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
314
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenZaakUploadService }); }
|
|
325
315
|
}
|
|
326
|
-
|
|
327
|
-
OpenZaakUploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OpenZaakUploadService });
|
|
328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OpenZaakUploadService, decorators: [{
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenZaakUploadService, decorators: [{
|
|
329
317
|
type: Injectable
|
|
330
318
|
}], ctorParameters: function () { return [{ type: OpenZaakService }, { type: i1.HttpClient }, { type: i2.ConfigService }]; } });
|
|
331
319
|
|
|
@@ -372,10 +360,10 @@ class S3Service {
|
|
|
372
360
|
headers,
|
|
373
361
|
});
|
|
374
362
|
}
|
|
363
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: S3Service, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
364
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: S3Service, providedIn: 'root' }); }
|
|
375
365
|
}
|
|
376
|
-
|
|
377
|
-
S3Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: S3Service, providedIn: 'root' });
|
|
378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: S3Service, decorators: [{
|
|
366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: S3Service, decorators: [{
|
|
379
367
|
type: Injectable,
|
|
380
368
|
args: [{
|
|
381
369
|
providedIn: 'root',
|
|
@@ -386,13 +374,13 @@ class S3UploadService {
|
|
|
386
374
|
constructor(s3Service) {
|
|
387
375
|
this.s3Service = s3Service;
|
|
388
376
|
}
|
|
389
|
-
uploadFile(file) {
|
|
377
|
+
uploadFile(file, _, documentId) {
|
|
390
378
|
let resourceUrl;
|
|
391
379
|
const fileName = file.name;
|
|
392
380
|
const splitFileName = fileName.split('.');
|
|
393
381
|
const fileNameWithUUID = `${splitFileName[0]}-${v4()}.${splitFileName[1]}`;
|
|
394
382
|
const renamedFile = new File([file], fileNameWithUUID, { type: file.type });
|
|
395
|
-
return this.s3Service.getPreSignedUrl(renamedFile.name).pipe(map(url => new URL(url)), tap(url => (resourceUrl = url)), switchMap(url => this.s3Service.upload(url, renamedFile)), map(() => new S3Resource(file, resourceUrl)), switchMap(s3Resource => this.s3Service.registerResource(s3Resource)), switchMap(s3Resource => this.s3Service.get(s3Resource.id)), map(result => ({ ...result, originalName: file.name })), map(result => this.getResourceFile(result)));
|
|
383
|
+
return this.s3Service.getPreSignedUrl(renamedFile.name).pipe(map(url => new URL(url)), tap(url => (resourceUrl = url)), switchMap(url => this.s3Service.upload(url, renamedFile)), map(() => new S3Resource(file, resourceUrl, documentId)), switchMap(s3Resource => this.s3Service.registerResource(s3Resource)), switchMap(s3Resource => this.s3Service.get(s3Resource.id)), map(result => ({ ...result, originalName: file.name })), map(result => this.getResourceFile(result)));
|
|
396
384
|
}
|
|
397
385
|
getResource(resourceId) {
|
|
398
386
|
return this.s3Service.get(resourceId);
|
|
@@ -415,10 +403,10 @@ class S3UploadService {
|
|
|
415
403
|
},
|
|
416
404
|
};
|
|
417
405
|
}
|
|
406
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: S3UploadService, deps: [{ token: S3Service }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
407
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: S3UploadService }); }
|
|
418
408
|
}
|
|
419
|
-
|
|
420
|
-
S3UploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: S3UploadService });
|
|
421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: S3UploadService, decorators: [{
|
|
409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: S3UploadService, decorators: [{
|
|
422
410
|
type: Injectable
|
|
423
411
|
}], ctorParameters: function () { return [{ type: S3Service }]; } });
|
|
424
412
|
|
|
@@ -457,8 +445,8 @@ class UploadProviderService {
|
|
|
457
445
|
this.uploadService = uploadService;
|
|
458
446
|
this.logger.debug('Loading UploadService as', this.uploadService);
|
|
459
447
|
}
|
|
460
|
-
uploadFile(file, documentDefinitionName) {
|
|
461
|
-
return this.uploadService.uploadFile(file, documentDefinitionName);
|
|
448
|
+
uploadFile(file, documentDefinitionName, documentId) {
|
|
449
|
+
return this.uploadService.uploadFile(file, documentDefinitionName, documentId);
|
|
462
450
|
}
|
|
463
451
|
getResource(resourceId) {
|
|
464
452
|
return this.uploadService.getResource(resourceId);
|
|
@@ -481,10 +469,10 @@ class UploadProviderService {
|
|
|
481
469
|
}
|
|
482
470
|
return of(null);
|
|
483
471
|
}
|
|
472
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadProviderService, deps: [{ token: i2.ConfigService }, { token: i0.Injector }, { token: i2$1.NGXLogger }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
473
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadProviderService, providedIn: 'root' }); }
|
|
484
474
|
}
|
|
485
|
-
|
|
486
|
-
UploadProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UploadProviderService, providedIn: 'root' });
|
|
487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UploadProviderService, decorators: [{
|
|
475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadProviderService, decorators: [{
|
|
488
476
|
type: Injectable,
|
|
489
477
|
args: [{
|
|
490
478
|
providedIn: 'root',
|
|
@@ -565,10 +553,10 @@ class DownloadService {
|
|
|
565
553
|
return name.toUpperCase().endsWith(suffix.toUpperCase());
|
|
566
554
|
});
|
|
567
555
|
}
|
|
556
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DownloadService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
557
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DownloadService, providedIn: 'root' }); }
|
|
568
558
|
}
|
|
569
|
-
|
|
570
|
-
DownloadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DownloadService, providedIn: 'root' });
|
|
571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DownloadService, decorators: [{
|
|
559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DownloadService, decorators: [{
|
|
572
560
|
type: Injectable,
|
|
573
561
|
args: [{
|
|
574
562
|
providedIn: 'root',
|
|
@@ -591,18 +579,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
591
579
|
* limitations under the License.
|
|
592
580
|
*/
|
|
593
581
|
class ResourceModule {
|
|
582
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResourceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
583
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ResourceModule }); }
|
|
584
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResourceModule, providers: [
|
|
585
|
+
OpenZaakUploadService,
|
|
586
|
+
S3UploadService,
|
|
587
|
+
UploadProviderService,
|
|
588
|
+
OpenZaakService,
|
|
589
|
+
S3Service,
|
|
590
|
+
DownloadService,
|
|
591
|
+
] }); }
|
|
594
592
|
}
|
|
595
|
-
|
|
596
|
-
ResourceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ResourceModule });
|
|
597
|
-
ResourceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResourceModule, providers: [
|
|
598
|
-
OpenZaakUploadService,
|
|
599
|
-
S3UploadService,
|
|
600
|
-
UploadProviderService,
|
|
601
|
-
OpenZaakService,
|
|
602
|
-
S3Service,
|
|
603
|
-
DownloadService,
|
|
604
|
-
] });
|
|
605
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResourceModule, decorators: [{
|
|
593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResourceModule, decorators: [{
|
|
606
594
|
type: NgModule,
|
|
607
595
|
args: [{
|
|
608
596
|
declarations: [],
|
|
@@ -634,10 +622,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
634
622
|
* See the License for the specific language governing permissions and
|
|
635
623
|
* limitations under the License.
|
|
636
624
|
*/
|
|
625
|
+
/*
|
|
626
|
+
* Public API Surface of upload
|
|
627
|
+
*/
|
|
637
628
|
|
|
638
629
|
/**
|
|
639
630
|
* Generated bundle index. Do not edit.
|
|
640
631
|
*/
|
|
641
632
|
|
|
642
|
-
export { Afleidingswijze, Archiefnominatie, DownloadService, Objecttype, OpenZaakConfig, OpenZaakService,
|
|
633
|
+
export { Afleidingswijze, Archiefnominatie, DownloadService, Objecttype, OpenZaakConfig, OpenZaakService, ResourceModule, S3Resource, S3Service, UploadProviderService };
|
|
643
634
|
//# sourceMappingURL=valtimo-resource.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valtimo-resource.mjs","sources":["../../../../projects/valtimo/resource/src/lib/models/upload.model.ts","../../../../projects/valtimo/resource/src/lib/models/uploader.model.ts","../../../../projects/valtimo/resource/src/lib/models/open-zaak.model.ts","../../../../projects/valtimo/resource/src/lib/models/index.ts","../../../../projects/valtimo/resource/src/lib/services/open-zaak.service.ts","../../../../projects/valtimo/resource/src/lib/services/open-zaak-upload.service.ts","../../../../projects/valtimo/resource/src/lib/services/s3.service.ts","../../../../projects/valtimo/resource/src/lib/services/s3-upload.service.ts","../../../../projects/valtimo/resource/src/lib/services/upload-provider.service.ts","../../../../projects/valtimo/resource/src/lib/services/download.service.ts","../../../../projects/valtimo/resource/src/lib/resource.module.ts","../../../../projects/valtimo/resource/src/public-api.ts","../../../../projects/valtimo/resource/src/valtimo-resource.ts"],"sourcesContent":["/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Observable} from 'rxjs';\nimport {ResourceDto} from './uploader.model';\n\ninterface ResourceFile {\n customUpload?: boolean;\n originalName: string;\n size: number;\n storage: string;\n type?: string;\n isLast?: boolean;\n url?: string;\n data: {\n baseUrl?: string;\n bucketName?: string;\n createdOn: string;\n extension?: string;\n form?: string;\n key?: string;\n name: string;\n project?: string;\n resourceId: string;\n sizeInBytes: number;\n };\n}\n\ninterface UploadService {\n uploadFile(\n file: File,\n documentDefinitionName?: string,\n documentId?: string\n ): Observable<ResourceFile>;\n getResource(resourceId: string): Observable<ResourceDto>;\n checkUploadProcessLink?(caseDefinitionKey: string): Observable<boolean>;\n uploadFileWithMetadata?(\n file: File,\n documentId: string,\n metadata: {[key: string]: any}\n ): Observable<void>;\n uploadTempFileWithMetadata?(\n file: File,\n metadata: {[key: string]: any}\n ): Observable<DocumentenApiFileReference>;\n}\n\ninterface DocumentenApiFileReference {\n filename: string;\n sizeInBytes: number;\n id: string;\n}\n\nexport {ResourceFile, UploadService, DocumentenApiFileReference};\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface ResourceDto {\n url: string;\n resource: Resource;\n originalName?: string;\n}\n\nexport interface Resource {\n id?: string;\n key: string;\n name: string;\n sizeInBytes: number;\n extension?: string;\n createdOn?: Date;\n}\n\nexport interface OpenZaakResource {\n resourceId: string;\n informatieObjectUrl: string;\n createdOn: string;\n name: string;\n extension: string;\n sizeInBytes: number;\n}\n\nexport class S3Resource implements Resource {\n id?: string = null;\n key: string;\n name: string;\n sizeInBytes: number;\n extension?: string = null;\n createdOn?: Date = null;\n documentId?: string;\n\n constructor(file: File, preSignedUrl: URL, documentId?: string) {\n this.key = decodeURIComponent(preSignedUrl.pathname.substring(1));\n this.name = file.name;\n this.sizeInBytes = file.size;\n if (!documentId) {\n return;\n }\n this.documentId = documentId;\n }\n}\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class OpenZaakConfig {\n id: string;\n url: string;\n clientId: string;\n secret: string;\n rsin: string;\n}\n\nexport interface ZaakType {\n url: string;\n omschrijving: string;\n omschrijvingGeneriek?: string;\n}\n\nexport interface InformatieObjectType {\n url: string;\n omschrijving: string;\n}\n\nexport interface InformatieObjectTypeLink {\n informatieObjectTypeLinkId: string;\n documentDefinitionName: string;\n zaakType: string;\n informatieObjectType: string;\n}\n\nexport interface ZaakTypeLink {\n id: string;\n documentDefinitionName: string;\n zaakTypeUrl: string;\n zaakInstanceLinks: ZaakInstanceLink[];\n createWithDossier: boolean;\n}\n\nexport interface ZaakTypeRequest {\n zaaktype: string;\n}\n\nexport interface CreateZaakTypeLinkRequest {\n documentDefinitionName: string;\n zaakTypeUrl: string;\n createWithDossier: boolean;\n}\n\nexport interface CreateInformatieObjectTypeLinkRequest {\n documentDefinitionName: string;\n zaakType: string;\n informatieObjectType: string;\n}\n\nexport interface ZaakInstanceLink {\n zaakInstanceUrl: string;\n zaakInstanceId: string;\n documentId: string;\n}\n\nexport interface PreviousSelectedZaak {\n zaakTypeLink: ZaakTypeLink;\n zaakType: ZaakType;\n}\n\nexport interface ZaakOperation {\n type: string;\n label: string;\n}\n\nexport interface ZaakStatusType {\n url?: string;\n omschrijving: string;\n omschrijvingGeneriek?: string;\n statustekst?: string;\n zaakType: string;\n volgnummer: number;\n isEindStatus?: boolean;\n informeren?: boolean;\n}\n\nexport interface ZaakResultType {\n url?: string;\n zaaktype: string;\n omschrijving: string;\n resultaattypeomschrijving: string;\n omschrijvingGeneriek?: string;\n selectielijstklasse: string;\n toelichting?: string;\n archiefnominatie?: Archiefnominatie;\n archiefactietermijn?: string;\n brondatumArchiefprocedure?: BrondatumArchiefprocedure;\n}\n\nexport interface ZaakBesluitType {\n url?: string;\n omschrijving: string;\n}\n\nexport interface BrondatumArchiefprocedure {\n afleidingswijze: Afleidingswijze;\n datumkenmerk?: string;\n einddatumBekend?: boolean;\n objecttype?: Objecttype;\n registratie?: string;\n procestermijn?: string;\n}\n\nexport enum Archiefnominatie {\n blijvend_bewaren = 'blijven_bewaren',\n vernietigen = 'vernietigen',\n}\n\nexport enum Afleidingswijze {\n afgehandeld = 'afgehandeld',\n ander_datumkenmerk = 'ander_datumkenmerk',\n eigenschap = 'eigenschap',\n gerelateerde_zaak = 'gerelateerde_zaak',\n hoofdzaak = 'hoofdzaak',\n ingangsdatum_besluit = 'ingangsdatum_besluit',\n termijn = 'termijn',\n vervaldatum_besluit = 'vervaldatum_besluit',\n zaakobject = 'zaakobject',\n}\n\nexport enum Objecttype {\n adres = 'adres',\n besluit = 'besluit',\n buurt = 'buurt',\n enkelvoudig_document = 'enkelvoudig_document',\n gemeente = 'gemeente',\n gemeentelijke_openbare_ruimte = 'gemeentelijke_openbare_ruimte',\n huishouden = 'huishouden',\n inrichtingselement = 'inrichtingselement',\n kadastrale_onroerende_zaak = 'kadastrale_onroerende_zaak',\n kunstwerkdeel = 'kunstwerkdeel',\n maatschappelijke_activiteit = 'maatschappelijke_activiteit',\n medewerker = 'medewerker',\n natuurlijk_persoon = 'natuurlijk_persoon',\n niet_natuurlijk_persoon = 'niet_natuurlijk_persoon',\n openbare_ruimte = 'openbare_ruimte',\n organisatorische_eenheid = 'organisatorische_eenheid',\n pand = 'pand',\n spoorbaandeel = 'spoorbaandeel',\n status = 'status',\n terreindeel = 'terreindeel',\n terrein_gebouwd_object = 'terrein_gebouwd_object',\n vestiging = 'vestiging',\n waterdeel = 'waterdeel',\n wegdeel = 'wegdeel',\n wijk = 'wijk',\n woonplaats = 'woonplaats',\n woz_deelobject = 'woz_deelobject',\n woz_object = 'woz_object',\n woz_waarde = 'woz_waarde',\n zakelijk_recht = 'zakelijk_recht',\n overige = 'overige',\n}\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './upload.model';\nexport * from './uploader.model';\nexport * from './open-zaak.model';\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {ConfigService} from '@valtimo/config';\nimport {Observable} from 'rxjs';\nimport {\n CreateInformatieObjectTypeLinkRequest,\n CreateZaakTypeLinkRequest,\n DocumentenApiFileReference,\n InformatieObjectType,\n InformatieObjectTypeLink,\n OpenZaakConfig,\n OpenZaakResource,\n ResourceDto,\n ZaakType,\n ZaakTypeLink,\n ZaakTypeRequest,\n} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class OpenZaakService {\n private valtimoApiConfig: any;\n private catalogus: string;\n\n constructor(\n private http: HttpClient,\n private configService: ConfigService\n ) {\n this.valtimoApiConfig = configService.config.valtimoApi;\n this.catalogus = configService.config.openZaak.catalogus;\n }\n\n getOpenZaakConfig(): Observable<OpenZaakConfig> {\n return this.http.get<OpenZaakConfig>(`${this.valtimoApiConfig.endpointUri}v1/openzaak/config`);\n }\n\n getResource(resourceId: string): Observable<ResourceDto> {\n return this.http.get<ResourceDto>(\n `${this.valtimoApiConfig.endpointUri}v1/resource/${resourceId}`\n );\n }\n\n getZaakTypes(): Observable<ZaakType[]> {\n return this.http.get<ZaakType[]>(`${this.valtimoApiConfig.endpointUri}v1/openzaak/zaaktype`);\n }\n\n getBesluittypen(): Observable<any> {\n return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/besluittype`);\n }\n\n getInformatieObjectTypes(): Observable<InformatieObjectType[]> {\n return this.http.get<InformatieObjectType[]>(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/informatie-object-typen/${this.catalogus}`\n );\n }\n\n getZaakTypeLink(id: string): Observable<ZaakTypeLink> {\n return this.http.get<ZaakTypeLink>(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/link/${id}`\n );\n }\n\n getInformatieObjectTypeLink(id: string): Observable<InformatieObjectTypeLink> {\n return this.http.get<InformatieObjectTypeLink>(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/informatie-object-type-link/${id}`\n );\n }\n\n createZaakTypeLink(request: CreateZaakTypeLinkRequest): Observable<any> {\n return this.http.post<any>(`${this.valtimoApiConfig.endpointUri}v1/openzaak/link`, request);\n }\n\n createInformatieObjectTypeLink(request: CreateInformatieObjectTypeLinkRequest): Observable<any> {\n return this.http.post<any>(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/informatie-object-type-link`,\n request\n );\n }\n\n deleteZaakTypeLink(id: string): Observable<any> {\n return this.http.delete<any>(`${this.valtimoApiConfig.endpointUri}v1/openzaak/link/${id}`);\n }\n\n deleteInformatieObjectTypeLink(id: string): Observable<any> {\n return this.http.delete<any>(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/informatie-object-type-link/${id}`\n );\n }\n\n getZaakTypeLinkListByProcess(processDefinitionKey: string): Observable<Array<ZaakTypeLink>> {\n return this.http.get<Array<ZaakTypeLink>>(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/link/process/${processDefinitionKey}`\n );\n }\n\n getStatusTypes(zaakTypeRequest: ZaakTypeRequest): Observable<any> {\n return this.http.post(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/status`,\n zaakTypeRequest\n );\n }\n\n getStatusResults(zaakTypeRequest): Observable<any> {\n return this.http.post(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/resultaat`,\n zaakTypeRequest\n );\n }\n\n upload(file: File, documentDefinitionName: string): Observable<OpenZaakResource> {\n const formData: FormData = new FormData();\n formData.append('file', file);\n formData.append('documentDefinitionName', documentDefinitionName);\n\n return this.http.post<OpenZaakResource>(\n `${this.valtimoApiConfig.endpointUri}v1/resource/upload-open-zaak`,\n formData,\n {\n reportProgress: true,\n responseType: 'json',\n }\n );\n }\n\n uploadWithMetadata(\n file: File,\n documentId: string,\n metadata: {[key: string]: any}\n ): Observable<void> {\n const formData: FormData = new FormData();\n formData.append('file', file);\n formData.append('documentId', documentId);\n\n Object.keys(metadata).forEach(metaDataKey => {\n const metadataValue = metadata[metaDataKey];\n\n if (metadataValue) {\n formData.append(metaDataKey, metadataValue);\n }\n });\n\n return this.http.post<void>(`${this.valtimoApiConfig.endpointUri}v1/resource/temp`, formData, {\n reportProgress: true,\n responseType: 'json',\n });\n }\n\n uploadTempFileWithMetadata(\n file: File,\n metadata: {[key: string]: any}\n ): Observable<DocumentenApiFileReference> {\n const formData: FormData = new FormData();\n formData.append('file', file);\n\n Object.keys(metadata).forEach(metaDataKey => {\n const metadataValue = metadata[metaDataKey];\n\n if (metadataValue) {\n formData.append(metaDataKey, metadataValue);\n }\n });\n\n return this.http.post<DocumentenApiFileReference>(\n `${this.valtimoApiConfig.endpointUri}v1/resource/temp`,\n formData,\n {\n reportProgress: true,\n responseType: 'json',\n }\n );\n }\n}\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {ConfigService} from '@valtimo/config';\nimport {Observable} from 'rxjs';\nimport {\n DocumentenApiFileReference,\n OpenZaakResource,\n ResourceDto,\n ResourceFile,\n UploadService,\n} from '../models';\nimport {OpenZaakService} from './open-zaak.service';\nimport {map} from 'rxjs/operators';\n\n@Injectable()\nexport class OpenZaakUploadService implements UploadService {\n private valtimoApiConfig: any;\n\n constructor(\n private readonly openZaakService: OpenZaakService,\n private http: HttpClient,\n private configService: ConfigService\n ) {\n this.valtimoApiConfig = configService.config.valtimoApi;\n }\n\n uploadFile(file: File, documentDefinitionName: string): Observable<ResourceFile> {\n return this.openZaakService\n .upload(new File([file], file.name, {type: file.type}), documentDefinitionName)\n .pipe(map(result => this.getResourceFile(result)));\n }\n\n uploadFileWithMetadata(\n file: File,\n documentId: string,\n metadata: {[key: string]: any}\n ): Observable<void> {\n return this.openZaakService.uploadWithMetadata(\n new File([file], file.name, {type: file.type}),\n documentId,\n metadata\n );\n }\n\n uploadTempFileWithMetadata(\n file: File,\n metadata: {[key: string]: any}\n ): Observable<DocumentenApiFileReference> {\n return this.openZaakService.uploadTempFileWithMetadata(\n new File([file], file.name, {type: file.type}),\n metadata\n );\n }\n\n getResource(resourceId: string): Observable<ResourceDto> {\n return this.openZaakService.getResource(resourceId);\n }\n\n checkUploadProcessLink(caseDefinitionKey: string): Observable<boolean> {\n return this.http\n .get<{processCaseLinkExists: boolean}>(\n `${this.valtimoApiConfig.endpointUri}v1/uploadprocess/case/${caseDefinitionKey}/check-link`\n )\n .pipe(map(res => res.processCaseLinkExists));\n }\n\n private getResourceFile(result: OpenZaakResource): ResourceFile {\n return {\n customUpload: true,\n originalName: result.name,\n size: result.sizeInBytes,\n url: '/api/resource/' + result.resourceId + '/download',\n storage: 'openZaak',\n type: result.extension,\n data: {\n createdOn: result.createdOn as any as string,\n name: result.name,\n sizeInBytes: result.sizeInBytes,\n resourceId: result.resourceId,\n extension: result.extension,\n },\n };\n }\n}\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {ConfigService} from '@valtimo/config';\nimport {Resource, S3Resource, ResourceDto} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class S3Service {\n private valtimoApiConfig: any;\n\n constructor(\n private http: HttpClient,\n private configService: ConfigService\n ) {\n this.valtimoApiConfig = configService.config.valtimoApi;\n }\n\n public getPreSignedUrl(fileName: string): Observable<string> {\n const headers = new HttpHeaders().set('Content-Type', 'text/plain; charset=utf-8');\n const options = {headers, responseType: 'text' as 'text'};\n return this.http.get(\n `${this.valtimoApiConfig.endpointUri}v1/resource/pre-signed-url/${fileName}`,\n options\n );\n }\n\n public upload(url: URL, file: File): Observable<any> {\n const headers = new HttpHeaders().set('Content-Type', file.type);\n return this.http.put(url.toString(), file, {headers});\n }\n\n public registerResource(s3ResourceDTO: S3Resource): Observable<Resource> {\n return this.http.put<Resource>(\n `${this.valtimoApiConfig.endpointUri}v1/resource`,\n s3ResourceDTO\n );\n }\n\n public get(resourceId: string): Observable<ResourceDto> {\n const headers = new HttpHeaders().set('Content-Type', 'application/json;charset=UTF-8');\n return this.http.get<ResourceDto>(\n `${this.valtimoApiConfig.endpointUri}v1/resource/${resourceId}`,\n {headers}\n );\n }\n\n public delete(resourceId: string): Observable<any> {\n const headers = new HttpHeaders().set('Content-Type', 'application/json;charset=UTF-8');\n return this.http.delete(`${this.valtimoApiConfig.endpointUri}v1/resource/${resourceId}`, {\n headers,\n });\n }\n}\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Observable} from 'rxjs';\nimport {map, switchMap, tap} from 'rxjs/operators';\nimport {ResourceDto, ResourceFile, S3Resource, UploadService} from '../models';\nimport {Injectable} from '@angular/core';\nimport {v4 as uuidv4} from 'uuid';\nimport {S3Service} from './s3.service';\n\n@Injectable()\nexport class S3UploadService implements UploadService {\n constructor(private readonly s3Service: S3Service) {}\n\n uploadFile(file: File, _, documentId?: string): Observable<ResourceFile> {\n let resourceUrl: URL;\n const fileName = file.name;\n const splitFileName = fileName.split('.');\n const fileNameWithUUID = `${splitFileName[0]}-${uuidv4()}.${splitFileName[1]}`;\n const renamedFile = new File([file], fileNameWithUUID, {type: file.type});\n\n return this.s3Service.getPreSignedUrl(renamedFile.name).pipe(\n map(url => new URL(url)),\n tap(url => (resourceUrl = url)),\n switchMap(url => this.s3Service.upload(url, renamedFile)),\n map(() => new S3Resource(file, resourceUrl, documentId)),\n switchMap(s3Resource => this.s3Service.registerResource(s3Resource)),\n switchMap(s3Resource => this.s3Service.get(s3Resource.id)),\n map(result => ({...result, originalName: file.name})),\n map(result => this.getResourceFile(result))\n );\n }\n\n getResource(resourceId: string): Observable<ResourceDto> {\n return this.s3Service.get(resourceId);\n }\n\n private getResourceFile(result: ResourceDto): ResourceFile {\n return {\n customUpload: true,\n originalName: result.originalName,\n url: result.url,\n size: result.resource.sizeInBytes,\n storage: 'url',\n type: result.resource.extension,\n data: {\n key: result.resource.key,\n bucketName: result.resource.name,\n createdOn: result.resource.createdOn as any as string,\n name: result.originalName,\n sizeInBytes: result.resource.sizeInBytes,\n resourceId: result.resource.id.split('ResourceId(id=')[1].slice(0, -1),\n },\n };\n }\n}\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable, Injector} from '@angular/core';\nimport {NGXLogger} from 'ngx-logger';\nimport {DocumentenApiFileReference, ResourceDto, ResourceFile, UploadService} from '../models';\nimport {ConfigService, UploadProvider} from '@valtimo/config';\nimport {Observable, of} from 'rxjs';\nimport {OpenZaakUploadService} from './open-zaak-upload.service';\nimport {S3UploadService} from './s3-upload.service';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class UploadProviderService implements UploadService {\n private readonly uploadService: UploadService;\n\n constructor(\n private configService: ConfigService,\n private injector: Injector,\n private logger: NGXLogger\n ) {\n let uploadService: UploadService;\n\n switch (configService.config.uploadProvider) {\n case UploadProvider.S3:\n uploadService = injector.get<UploadService>(S3UploadService);\n break;\n case UploadProvider.OPEN_ZAAK:\n uploadService = injector.get<UploadService>(OpenZaakUploadService);\n break;\n case UploadProvider.DOCUMENTEN_API:\n uploadService = injector.get<UploadService>(OpenZaakUploadService);\n break;\n }\n\n this.uploadService = uploadService;\n this.logger.debug('Loading UploadService as', this.uploadService);\n }\n\n uploadFile(\n file: File,\n documentDefinitionName?: string,\n documentId?: string\n ): Observable<ResourceFile> {\n return this.uploadService.uploadFile(file, documentDefinitionName, documentId);\n }\n\n getResource(resourceId: string): Observable<ResourceDto> {\n return this.uploadService.getResource(resourceId);\n }\n\n checkUploadProcessLink(caseDefinitionKey: string): Observable<boolean> {\n if (this.uploadService.checkUploadProcessLink) {\n return this.uploadService.checkUploadProcessLink(caseDefinitionKey);\n }\n\n return of(false);\n }\n\n uploadFileWithMetadata(\n file: File,\n documentId: string,\n metadata: {[key: string]: any}\n ): Observable<void> {\n if (this.uploadService.uploadFileWithMetadata) {\n return this.uploadService.uploadFileWithMetadata(file, documentId, metadata);\n }\n\n return of(null);\n }\n\n uploadTempFileWithMetadata(\n file: File,\n metadata: {[key: string]: any}\n ): Observable<DocumentenApiFileReference> {\n if (this.uploadService.uploadTempFileWithMetadata) {\n return this.uploadService.uploadTempFileWithMetadata(file, metadata);\n }\n\n return of(null);\n }\n}\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {ConfigService} from '@valtimo/config';\nimport {HttpClient} from '@angular/common/http';\nimport {Observable, Subject} from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DownloadService {\n constructor(\n private http: HttpClient,\n private configService: ConfigService\n ) {}\n\n downloadFile(url: string, name: string): Observable<null> {\n const finishedSubject$ = new Subject<null>();\n\n if (\n url.startsWith(this.configService.config.valtimoApi.endpointUri) ||\n url.startsWith(window.location.origin) ||\n url.startsWith('/api/')\n ) {\n // if download url is on backend use angular to get the content so access token is used\n this.http.get(url, {responseType: 'blob'}).subscribe(content => {\n const downloadUrl = window.URL.createObjectURL(content);\n if (this.isFileTypeSupportedForNewWindow(name)) {\n this.openBlobInNewTab(downloadUrl, name);\n } else {\n this.openDownloadLink(downloadUrl, name);\n }\n finishedSubject$.next(null);\n });\n } else {\n // download links to external services (like amazon s3) open in a new window\n this.openDownloadLink(url, name);\n finishedSubject$.next(null);\n }\n\n return finishedSubject$;\n }\n\n /**\n * A window.open won't work for blobs because ad blocker extensions will immediately\n * close the tab again. The method used below will prevent this from happening.\n */\n private openBlobInNewTab(url: string, name: string) {\n const newWindow = window.open('/');\n\n // newWindow will be null if the browser blocks the opening of a new tab.\n if (newWindow != null) {\n newWindow.location = url;\n } else {\n // In case the tab is blocked it will just download the file.\n this.openDownloadLink(url, name);\n }\n }\n\n private openDownloadLink(url: string, name: string) {\n const link = document.createElement('a');\n link.href = url;\n link.download = name;\n link.target = '_blank';\n link.click();\n link.remove();\n }\n\n private isFileTypeSupportedForNewWindow(name: string): boolean {\n const supportedFileTypes = this.configService?.config\n ?.supportedDocumentFileTypesToViewInBrowser || ['pdf', 'jpg', 'png', 'svg'];\n\n return supportedFileTypes.some(function (suffix) {\n return name.toUpperCase().endsWith(suffix.toUpperCase());\n });\n }\n}\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {OpenZaakUploadService} from './services/open-zaak-upload.service';\nimport {S3UploadService} from './services/s3-upload.service';\nimport {UploadProviderService} from './services/upload-provider.service';\nimport {OpenZaakService} from './services/open-zaak.service';\nimport {S3Service} from './services/s3.service';\nimport {DownloadService} from './services/download.service';\n\n@NgModule({\n declarations: [],\n imports: [],\n exports: [],\n providers: [\n OpenZaakUploadService,\n S3UploadService,\n UploadProviderService,\n OpenZaakService,\n S3Service,\n DownloadService,\n ],\n})\nexport class ResourceModule {}\n","/*\n * Copyright 2015-2023 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of upload\n */\n\nexport * from './lib/models';\nexport * from './lib/resource.module';\nexport * from './lib/services/open-zaak.service';\nexport * from './lib/services/upload-provider.service';\nexport * from './lib/services/s3.service';\nexport * from './lib/services/download.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.OpenZaakService","i2","i3","uuidv4","i1.S3Service","i1"],"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MA0BU,UAAU,CAAA;AASrB,IAAA,WAAA,CAAY,IAAU,EAAE,YAAiB,EAAE,UAAmB,EAAA;QAR9D,IAAE,CAAA,EAAA,GAAY,IAAI,CAAC;QAInB,IAAS,CAAA,SAAA,GAAY,IAAI,CAAC;QAC1B,IAAS,CAAA,SAAA,GAAU,IAAI,CAAC;AAItB,QAAA,IAAI,CAAC,GAAG,GAAG,kBAAkB,CAAC,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CA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,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;gHAAd,cAAc,EAAA,CAAA,CAAA,EAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,EATd,SAAA,EAAA;YACT,qBAAqB;YACrB,eAAe;YACf,qBAAqB;YACrB,eAAe;YACf,SAAS;YACT,eAAe;AAChB,SAAA,EAAA,CAAA,CAAA,EAAA;;4FAEU,cAAc,EAAA,UAAA,EAAA,CAAA;kBAb1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;wBACT,qBAAqB;wBACrB,eAAe;wBACf,qBAAqB;wBACrB,eAAe;wBACf,SAAS;wBACT,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;ACpCD;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
|
|
@@ -25,7 +25,6 @@ export interface ZaakTypeLink {
|
|
|
25
25
|
documentDefinitionName: string;
|
|
26
26
|
zaakTypeUrl: string;
|
|
27
27
|
zaakInstanceLinks: ZaakInstanceLink[];
|
|
28
|
-
serviceTaskHandlers: ServiceTaskHandlerRequest[];
|
|
29
28
|
createWithDossier: boolean;
|
|
30
29
|
}
|
|
31
30
|
export interface ZaakTypeRequest {
|
|
@@ -46,16 +45,9 @@ export interface ZaakInstanceLink {
|
|
|
46
45
|
zaakInstanceId: string;
|
|
47
46
|
documentId: string;
|
|
48
47
|
}
|
|
49
|
-
export interface ServiceTaskHandlerRequest {
|
|
50
|
-
processDefinitionKey: string;
|
|
51
|
-
serviceTaskId: string;
|
|
52
|
-
operation: Operation;
|
|
53
|
-
parameter: string;
|
|
54
|
-
}
|
|
55
48
|
export interface PreviousSelectedZaak {
|
|
56
49
|
zaakTypeLink: ZaakTypeLink;
|
|
57
50
|
zaakType: ZaakType;
|
|
58
|
-
serviceTaskHandler: ServiceTaskHandlerRequest;
|
|
59
51
|
}
|
|
60
52
|
export interface ZaakOperation {
|
|
61
53
|
type: string;
|
|
@@ -143,10 +135,4 @@ export declare enum Objecttype {
|
|
|
143
135
|
zakelijk_recht = "zakelijk_recht",
|
|
144
136
|
overige = "overige"
|
|
145
137
|
}
|
|
146
|
-
export declare enum Operation {
|
|
147
|
-
CREATE_ZAAK = "CREATE_ZAAK",
|
|
148
|
-
SET_RESULTAAT = "SET_RESULTAAT",
|
|
149
|
-
SET_STATUS = "SET_STATUS",
|
|
150
|
-
CREATE_BESLUIT = "CREATE_BESLUIT"
|
|
151
|
-
}
|
|
152
138
|
//# sourceMappingURL=open-zaak.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-zaak.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/models/open-zaak.model.ts"],"names":[],"mappings":"AAgBA,qBAAa,cAAc;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,0BAA0B,EAAE,MAAM,CAAC;IACnC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,
|
|
1
|
+
{"version":3,"file":"open-zaak.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/models/open-zaak.model.ts"],"names":[],"mappings":"AAgBA,qBAAa,cAAc;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,0BAA0B,EAAE,MAAM,CAAC;IACnC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAi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|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
interface UploadService {
|
|
25
|
-
uploadFile(file: File, documentDefinitionName?: string): Observable<ResourceFile>;
|
|
25
|
+
uploadFile(file: File, documentDefinitionName?: string, documentId?: string): Observable<ResourceFile>;
|
|
26
26
|
getResource(resourceId: string): Observable<ResourceDto>;
|
|
27
27
|
checkUploadProcessLink?(caseDefinitionKey: string): Observable<boolean>;
|
|
28
28
|
uploadFileWithMetadata?(file: File, documentId: string, metadata: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/models/upload.model.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,UAAU,YAAY;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,UAAU,aAAa;IACrB,UAAU,
|
|
1
|
+
{"version":3,"file":"upload.model.d.ts","sourceRoot":"","s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U,CAAC,IAAI,CAAC,CAAC;IACpB,0BAA0B,CAAC,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,0BAA0B,CAAC,CAAC;CAC3C;AAED,UAAU,0BAA0B;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,OAAO,EAAC,YAAY,EAAE,aAAa,EAAE,0BAA0B,EAAC,CAAC"}
|
|
@@ -26,6 +26,7 @@ export declare class S3Resource implements Resource {
|
|
|
26
26
|
sizeInBytes: number;
|
|
27
27
|
extension?: string;
|
|
28
28
|
createdOn?: Date;
|
|
29
|
-
|
|
29
|
+
documentId?: string;
|
|
30
|
+
constructor(file: File, preSignedUrl: URL, documentId?: string);
|
|
30
31
|
}
|
|
31
32
|
//# sourceMappingURL=uploader.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/models/uploader.model.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,UAAW,YAAW,QAAQ;IACzC,EAAE,CAAC,EAAE,MAAM,CAAQ;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAQ;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAQ;
|
|
1
|
+
{"version":3,"file":"uploader.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/models/uploader.model.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,UAAW,YAAW,QAAQ;IACzC,EAAE,CAAC,EAAE,MAAM,CAAQ;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAQ;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAQ;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;gBAER,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,MAAM;CAS/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/download.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAU,MAAM,MAAM,CAAC;;AAEzC,qBAGa,eAAe;
|
|
1
|
+
{"version":3,"file":"download.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/download.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAU,MAAM,MAAM,CAAC;;AAEzC,qBAGa,eAAe;IAExB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,aAAa;gBADb,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,aAAa;IAGtC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC;IA2BzD;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,+BAA+B;yCA1D5B,eAAe;6CAAf,eAAe;CAkE3B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { ConfigService } from '@valtimo/config';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { CreateInformatieObjectTypeLinkRequest, CreateZaakTypeLinkRequest, DocumentenApiFileReference, InformatieObjectType, InformatieObjectTypeLink, OpenZaakConfig, OpenZaakResource, ResourceDto,
|
|
4
|
+
import { CreateInformatieObjectTypeLinkRequest, CreateZaakTypeLinkRequest, DocumentenApiFileReference, InformatieObjectType, InformatieObjectTypeLink, OpenZaakConfig, OpenZaakResource, ResourceDto, ZaakType, ZaakTypeLink, ZaakTypeRequest } from '../models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class OpenZaakService {
|
|
7
7
|
private http;
|
|
@@ -23,9 +23,6 @@ export declare class OpenZaakService {
|
|
|
23
23
|
getZaakTypeLinkListByProcess(processDefinitionKey: string): Observable<Array<ZaakTypeLink>>;
|
|
24
24
|
getStatusTypes(zaakTypeRequest: ZaakTypeRequest): Observable<any>;
|
|
25
25
|
getStatusResults(zaakTypeRequest: any): Observable<any>;
|
|
26
|
-
createServiceTaskHandler(id: string, request: ServiceTaskHandlerRequest): Observable<any>;
|
|
27
|
-
modifyServiceTaskHandler(id: string, request: ServiceTaskHandlerRequest): Observable<any>;
|
|
28
|
-
deleteServiceTaskHandler(id: string, processDefinitionKey: string, serviceTaskId: string): Observable<any>;
|
|
29
26
|
upload(file: File, documentDefinitionName: string): Observable<OpenZaakResource>;
|
|
30
27
|
uploadWithMetadata(file: File, documentId: string, metadata: {
|
|
31
28
|
[key: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-zaak.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/open-zaak.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EACL,qCAAqC,EACrC,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"open-zaak.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/open-zaak.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EACL,qCAAqC,EACrC,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,eAAe,EAChB,MAAM,WAAW,CAAC;;AAEnB,qBAGa,eAAe;IAKxB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,aAAa;IALvB,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,SAAS,CAAS;gBAGhB,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,aAAa;IAMtC,iBAAiB,IAAI,UAAU,CAAC,cAAc,CAAC;IAI/C,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;IAMxD,YAAY,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;IAItC,eAAe,IAAI,UAAU,CAAC,GAAG,CAAC;IAIlC,wBAAwB,IAAI,UAAU,CAAC,oBAAoB,EAAE,CAAC;IAM9D,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC;IAMrD,2BAA2B,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAM7E,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,UAAU,CAAC,GAAG,CAAC;IAIvE,8BAA8B,CAAC,OAAO,EAAE,qCAAqC,GAAG,UAAU,CAAC,GAAG,CAAC;IAO/F,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;IAI/C,8BAA8B,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;IAM3D,4BAA4B,CAAC,oBAAoB,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAM3F,cAAc,CAAC,eAAe,EAAE,eAAe,GAAG,UAAU,CAAC,GAAG,CAAC;IAOjE,gBAAgB,CAAC,eAAe,KAAA,GAAG,UAAU,CAAC,GAAG,CAAC;IAOlD,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAehF,kBAAkB,CAChB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,IAAI,CAAC;IAmBnB,0BAA0B,CACxB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,0BAA0B,CAAC;yCAlI9B,eAAe;6CAAf,eAAe;CAuJ3B"}
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class S3UploadService implements UploadService {
|
|
6
6
|
private readonly s3Service;
|
|
7
7
|
constructor(s3Service: S3Service);
|
|
8
|
-
uploadFile(file: File): Observable<ResourceFile>;
|
|
8
|
+
uploadFile(file: File, _: any, documentId?: string): Observable<ResourceFile>;
|
|
9
9
|
getResource(resourceId: string): Observable<ResourceDto>;
|
|
10
10
|
private getResourceFile;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<S3UploadService, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s3-upload.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/s3-upload.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAC,WAAW,EAAE,YAAY,EAAc,aAAa,EAAC,MAAM,WAAW,CAAC;AAG/E,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;;AAEvC,qBACa,eAAgB,YAAW,aAAa;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEjD,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"s3-upload.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/s3-upload.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAC,WAAW,EAAE,YAAY,EAAc,aAAa,EAAC,MAAM,WAAW,CAAC;AAG/E,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;;AAEvC,qBACa,eAAgB,YAAW,aAAa;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEjD,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,KAAA,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC;IAmBxE,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxD,OAAO,CAAC,eAAe;yCA1BZ,eAAe;6CAAf,eAAe;CA4C3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s3.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/s3.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAc,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAC,MAAM,WAAW,CAAC;;AAE5D,qBAGa,SAAS;
|
|
1
|
+
{"version":3,"file":"s3.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/s3.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAc,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAC,MAAM,WAAW,CAAC;;AAE5D,qBAGa,SAAS;IAIlB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,aAAa;IAJvB,OAAO,CAAC,gBAAgB,CAAM;gBAGpB,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,aAAa;IAK/B,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IASrD,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC;IAK7C,gBAAgB,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC;IAOjE,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;IAQhD,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;yCAvCvC,SAAS;6CAAT,SAAS;CA6CrB"}
|
|
@@ -10,7 +10,7 @@ export declare class UploadProviderService implements UploadService {
|
|
|
10
10
|
private logger;
|
|
11
11
|
private readonly uploadService;
|
|
12
12
|
constructor(configService: ConfigService, injector: Injector, logger: NGXLogger);
|
|
13
|
-
uploadFile(file: File, documentDefinitionName?: string): Observable<ResourceFile>;
|
|
13
|
+
uploadFile(file: File, documentDefinitionName?: string, documentId?: string): Observable<ResourceFile>;
|
|
14
14
|
getResource(resourceId: string): Observable<ResourceDto>;
|
|
15
15
|
checkUploadProcessLink(caseDefinitionKey: string): Observable<boolean>;
|
|
16
16
|
uploadFileWithMetadata(file: File, documentId: string, metadata: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-provider.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/upload-provider.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAa,QAAQ,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,0BAA0B,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AAC/F,OAAO,EAAC,aAAa,EAAiB,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAK,MAAM,MAAM,CAAC;;AAIpC,qBAGa,qBAAsB,YAAW,aAAa;IAIvD,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IALhB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;gBAGpC,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,SAAS;IAoB3B,UAAU,
|
|
1
|
+
{"version":3,"file":"upload-provider.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/upload-provider.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAa,QAAQ,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,0BAA0B,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AAC/F,OAAO,EAAC,aAAa,EAAiB,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAK,MAAM,MAAM,CAAC;;AAIpC,qBAGa,q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