@valtimo/resource 4.15.3-next-main.16 → 4.17.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.
Files changed (34) hide show
  1. package/bundles/valtimo-resource.umd.js +534 -397
  2. package/bundles/valtimo-resource.umd.js.map +1 -1
  3. package/bundles/valtimo-resource.umd.min.js +1 -1
  4. package/bundles/valtimo-resource.umd.min.js.map +1 -1
  5. package/esm2015/lib/models/index.js +21 -0
  6. package/esm2015/lib/models/open-zaak.model.js +75 -0
  7. package/esm2015/lib/models/upload.model.js +16 -0
  8. package/esm2015/lib/models/uploader.model.js +26 -0
  9. package/esm2015/lib/resource.module.js +40 -40
  10. package/esm2015/lib/services/download.service.js +60 -60
  11. package/esm2015/lib/services/open-zaak-upload.service.js +62 -62
  12. package/esm2015/lib/services/open-zaak.service.js +97 -97
  13. package/esm2015/lib/services/s3-upload.service.js +61 -61
  14. package/esm2015/lib/services/s3.service.js +61 -61
  15. package/esm2015/lib/services/upload-provider.service.js +53 -54
  16. package/esm2015/public-api.js +10 -9
  17. package/esm2015/valtimo-resource.js +7 -7
  18. package/fesm2015/valtimo-resource.js +518 -384
  19. package/fesm2015/valtimo-resource.js.map +1 -1
  20. package/lib/models/index.d.ts +3 -0
  21. package/lib/models/open-zaak.model.d.ts +146 -0
  22. package/lib/models/upload.model.d.ts +27 -0
  23. package/lib/models/uploader.model.d.ts +30 -0
  24. package/lib/resource.module.d.ts +2 -2
  25. package/lib/services/download.service.d.ts +9 -9
  26. package/lib/services/open-zaak-upload.service.d.ts +15 -15
  27. package/lib/services/open-zaak.service.d.ts +28 -28
  28. package/lib/services/s3-upload.service.d.ts +10 -10
  29. package/lib/services/s3.service.d.ts +15 -15
  30. package/lib/services/upload-provider.service.d.ts +14 -14
  31. package/package.json +1 -1
  32. package/public-api.d.ts +6 -5
  33. package/valtimo-resource.d.ts +6 -6
  34. package/valtimo-resource.metadata.json +1 -1
@@ -1,423 +1,560 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@valtimo/config'), require('rxjs/operators'), require('@valtimo/contract'), require('uuid'), require('ngx-logger')) :
3
- typeof define === 'function' && define.amd ? define('@valtimo/resource', ['exports', '@angular/core', '@angular/common/http', '@valtimo/config', 'rxjs/operators', '@valtimo/contract', 'uuid', 'ngx-logger'], factory) :
4
- (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.resource = {}), global.ng.core, global.ng.common.http, global.i2, global.rxjs.operators, global.contract, global.uuid, global.i2$1));
5
- }(this, (function (exports, i0, i1, i2, operators, contract, uuid, i2$1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@valtimo/config'), require('rxjs/operators'), require('uuid'), require('ngx-logger')) :
3
+ typeof define === 'function' && define.amd ? define('@valtimo/resource', ['exports', '@angular/core', '@angular/common/http', '@valtimo/config', 'rxjs/operators', 'uuid', 'ngx-logger'], factory) :
4
+ (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.resource = {}), global.ng.core, global.ng.common.http, global.i2, global.rxjs.operators, global.uuid, global.i2$1));
5
+ }(this, (function (exports, i0, i1, i2, operators, uuid, i2$1) { 'use strict';
6
6
 
7
- /*
8
- * Copyright 2020 Dimpact.
9
- *
10
- * Licensed under EUPL, Version 1.2 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" basis,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
- var OpenZaakService = /** @class */ (function () {
23
- function OpenZaakService(http, configService) {
24
- this.http = http;
25
- this.configService = configService;
26
- this.valtimoApiConfig = configService.config.valtimoApi;
27
- this.catalogus = configService.config.openZaak.catalogus;
28
- }
29
- OpenZaakService.prototype.getOpenZaakConfig = function () {
30
- return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/config");
31
- };
32
- OpenZaakService.prototype.getResource = function (resourceId) {
33
- return this.http.get(this.valtimoApiConfig.endpointUri + "resource/" + resourceId);
34
- };
35
- OpenZaakService.prototype.getZaakTypes = function () {
36
- return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/zaaktype");
37
- };
38
- OpenZaakService.prototype.getInformatieObjectTypes = function () {
39
- return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/informatie-object-typen/" + this.catalogus);
40
- };
41
- OpenZaakService.prototype.getZaakTypeLink = function (id) {
42
- return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id);
43
- };
44
- OpenZaakService.prototype.getInformatieObjectTypeLink = function (id) {
45
- return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/informatie-object-type-link/" + id);
46
- };
47
- OpenZaakService.prototype.createZaakTypeLink = function (request) {
48
- return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/link", request);
49
- };
50
- OpenZaakService.prototype.createInformatieObjectTypeLink = function (request) {
51
- return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/informatie-object-type-link", request);
52
- };
53
- OpenZaakService.prototype.deleteZaakTypeLink = function (id) {
54
- return this.http.delete(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id);
55
- };
56
- OpenZaakService.prototype.deleteInformatieObjectTypeLink = function (id) {
57
- return this.http.delete(this.valtimoApiConfig.endpointUri + "openzaak/informatie-object-type-link/" + id);
58
- };
59
- OpenZaakService.prototype.getZaakTypeLinkListByProcess = function (processDefinitionKey) {
60
- return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/link/process/" + processDefinitionKey);
61
- };
62
- OpenZaakService.prototype.getStatusTypes = function (zaakTypeRequest) {
63
- return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/status", zaakTypeRequest);
64
- };
65
- OpenZaakService.prototype.getStatusResults = function (zaakTypeRequest) {
66
- return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/resultaat", zaakTypeRequest);
67
- };
68
- OpenZaakService.prototype.createServiceTaskHandler = function (id, request) {
69
- return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id + "/service-handler", request);
70
- };
71
- OpenZaakService.prototype.modifyServiceTaskHandler = function (id, request) {
72
- return this.http.put(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id + "/service-handler", request);
73
- };
74
- OpenZaakService.prototype.deleteServiceTaskHandler = function (id, processDefinitionKey, serviceTaskId) {
75
- return this.http.delete(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id + "/service-handler/" + processDefinitionKey + "/" + serviceTaskId);
76
- };
77
- OpenZaakService.prototype.upload = function (file, documentDefinitionName) {
78
- var formData = new FormData();
79
- formData.append('file', file);
80
- formData.append('documentDefinitionName', documentDefinitionName);
81
- return this.http.post(this.valtimoApiConfig.endpointUri + "resource/upload-open-zaak", formData, {
82
- reportProgress: true,
83
- responseType: 'json',
84
- });
85
- };
86
- return OpenZaakService;
87
- }());
88
- OpenZaakService.ɵprov = i0.ɵɵdefineInjectable({ factory: function OpenZaakService_Factory() { return new OpenZaakService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: OpenZaakService, providedIn: "root" });
89
- OpenZaakService.decorators = [
90
- { type: i0.Injectable, args: [{
91
- providedIn: 'root',
92
- },] }
93
- ];
94
- OpenZaakService.ctorParameters = function () { return [
95
- { type: i1.HttpClient },
96
- { type: i2.ConfigService }
7
+ /*
8
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
9
+ *
10
+ * Licensed under EUPL, Version 1.2 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" basis,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
22
+
23
+ /*
24
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
25
+ *
26
+ * Licensed under EUPL, Version 1.2 (the "License");
27
+ * you may not use this file except in compliance with the License.
28
+ * You may obtain a copy of the License at
29
+ *
30
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
31
+ *
32
+ * Unless required by applicable law or agreed to in writing, software
33
+ * distributed under the License is distributed on an "AS IS" basis,
34
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35
+ * See the License for the specific language governing permissions and
36
+ * limitations under the License.
37
+ */
38
+ var S3Resource = /** @class */ (function () {
39
+ function S3Resource(file, preSignedUrl) {
40
+ this.id = null;
41
+ this.extension = null;
42
+ this.createdOn = null;
43
+ this.key = decodeURIComponent(preSignedUrl.pathname.substring(1));
44
+ this.name = file.name;
45
+ this.sizeInBytes = file.size;
46
+ }
47
+ return S3Resource;
48
+ }());
49
+
50
+ /*
51
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
52
+ *
53
+ * Licensed under EUPL, Version 1.2 (the "License");
54
+ * you may not use this file except in compliance with the License.
55
+ * You may obtain a copy of the License at
56
+ *
57
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
58
+ *
59
+ * Unless required by applicable law or agreed to in writing, software
60
+ * distributed under the License is distributed on an "AS IS" basis,
61
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
62
+ * See the License for the specific language governing permissions and
63
+ * limitations under the License.
64
+ */
65
+ var OpenZaakConfig = /** @class */ (function () {
66
+ function OpenZaakConfig() {
67
+ }
68
+ return OpenZaakConfig;
69
+ }());
70
+ (function (Archiefnominatie) {
71
+ Archiefnominatie["blijvend_bewaren"] = "blijven_bewaren";
72
+ Archiefnominatie["vernietigen"] = "vernietigen";
73
+ })(exports.Archiefnominatie || (exports.Archiefnominatie = {}));
74
+ (function (Afleidingswijze) {
75
+ Afleidingswijze["afgehandeld"] = "afgehandeld";
76
+ Afleidingswijze["ander_datumkenmerk"] = "ander_datumkenmerk";
77
+ Afleidingswijze["eigenschap"] = "eigenschap";
78
+ Afleidingswijze["gerelateerde_zaak"] = "gerelateerde_zaak";
79
+ Afleidingswijze["hoofdzaak"] = "hoofdzaak";
80
+ Afleidingswijze["ingangsdatum_besluit"] = "ingangsdatum_besluit";
81
+ Afleidingswijze["termijn"] = "termijn";
82
+ Afleidingswijze["vervaldatum_besluit"] = "vervaldatum_besluit";
83
+ Afleidingswijze["zaakobject"] = "zaakobject";
84
+ })(exports.Afleidingswijze || (exports.Afleidingswijze = {}));
85
+ (function (Objecttype) {
86
+ Objecttype["adres"] = "adres";
87
+ Objecttype["besluit"] = "besluit";
88
+ Objecttype["buurt"] = "buurt";
89
+ Objecttype["enkelvoudig_document"] = "enkelvoudig_document";
90
+ Objecttype["gemeente"] = "gemeente";
91
+ Objecttype["gemeentelijke_openbare_ruimte"] = "gemeentelijke_openbare_ruimte";
92
+ Objecttype["huishouden"] = "huishouden";
93
+ Objecttype["inrichtingselement"] = "inrichtingselement";
94
+ Objecttype["kadastrale_onroerende_zaak"] = "kadastrale_onroerende_zaak";
95
+ Objecttype["kunstwerkdeel"] = "kunstwerkdeel";
96
+ Objecttype["maatschappelijke_activiteit"] = "maatschappelijke_activiteit";
97
+ Objecttype["medewerker"] = "medewerker";
98
+ Objecttype["natuurlijk_persoon"] = "natuurlijk_persoon";
99
+ Objecttype["niet_natuurlijk_persoon"] = "niet_natuurlijk_persoon";
100
+ Objecttype["openbare_ruimte"] = "openbare_ruimte";
101
+ Objecttype["organisatorische_eenheid"] = "organisatorische_eenheid";
102
+ Objecttype["pand"] = "pand";
103
+ Objecttype["spoorbaandeel"] = "spoorbaandeel";
104
+ Objecttype["status"] = "status";
105
+ Objecttype["terreindeel"] = "terreindeel";
106
+ Objecttype["terrein_gebouwd_object"] = "terrein_gebouwd_object";
107
+ Objecttype["vestiging"] = "vestiging";
108
+ Objecttype["waterdeel"] = "waterdeel";
109
+ Objecttype["wegdeel"] = "wegdeel";
110
+ Objecttype["wijk"] = "wijk";
111
+ Objecttype["woonplaats"] = "woonplaats";
112
+ Objecttype["woz_deelobject"] = "woz_deelobject";
113
+ Objecttype["woz_object"] = "woz_object";
114
+ Objecttype["woz_waarde"] = "woz_waarde";
115
+ Objecttype["zakelijk_recht"] = "zakelijk_recht";
116
+ Objecttype["overige"] = "overige";
117
+ })(exports.Objecttype || (exports.Objecttype = {}));
118
+ (function (Operation) {
119
+ Operation["CREATE_ZAAK"] = "CREATE_ZAAK";
120
+ Operation["SET_RESULTAAT"] = "SET_RESULTAAT";
121
+ Operation["SET_STATUS"] = "SET_STATUS";
122
+ })(exports.Operation || (exports.Operation = {}));
123
+
124
+ /*
125
+ *
126
+ * * Copyright 2015-2020 Ritense BV, the Netherlands.
127
+ * *
128
+ * * Licensed under EUPL, Version 1.2 (the "License");
129
+ * * you may not use this file except in compliance with the License.
130
+ * * You may obtain a copy of the License at
131
+ * *
132
+ * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
133
+ * *
134
+ * * Unless required by applicable law or agreed to in writing, software
135
+ * * distributed under the License is distributed on an "AS IS" basis,
136
+ * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137
+ * * See the License for the specific language governing permissions and
138
+ * * limitations under the License.
139
+ *
140
+ */
141
+
142
+ /*
143
+ * Copyright 2020 Dimpact.
144
+ *
145
+ * Licensed under EUPL, Version 1.2 (the "License");
146
+ * you may not use this file except in compliance with the License.
147
+ * You may obtain a copy of the License at
148
+ *
149
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
150
+ *
151
+ * Unless required by applicable law or agreed to in writing, software
152
+ * distributed under the License is distributed on an "AS IS" basis,
153
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
154
+ * See the License for the specific language governing permissions and
155
+ * limitations under the License.
156
+ */
157
+ var OpenZaakService = /** @class */ (function () {
158
+ function OpenZaakService(http, configService) {
159
+ this.http = http;
160
+ this.configService = configService;
161
+ this.valtimoApiConfig = configService.config.valtimoApi;
162
+ this.catalogus = configService.config.openZaak.catalogus;
163
+ }
164
+ OpenZaakService.prototype.getOpenZaakConfig = function () {
165
+ return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/config");
166
+ };
167
+ OpenZaakService.prototype.getResource = function (resourceId) {
168
+ return this.http.get(this.valtimoApiConfig.endpointUri + "resource/" + resourceId);
169
+ };
170
+ OpenZaakService.prototype.getZaakTypes = function () {
171
+ return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/zaaktype");
172
+ };
173
+ OpenZaakService.prototype.getInformatieObjectTypes = function () {
174
+ return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/informatie-object-typen/" + this.catalogus);
175
+ };
176
+ OpenZaakService.prototype.getZaakTypeLink = function (id) {
177
+ return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id);
178
+ };
179
+ OpenZaakService.prototype.getInformatieObjectTypeLink = function (id) {
180
+ return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/informatie-object-type-link/" + id);
181
+ };
182
+ OpenZaakService.prototype.createZaakTypeLink = function (request) {
183
+ return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/link", request);
184
+ };
185
+ OpenZaakService.prototype.createInformatieObjectTypeLink = function (request) {
186
+ return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/informatie-object-type-link", request);
187
+ };
188
+ OpenZaakService.prototype.deleteZaakTypeLink = function (id) {
189
+ return this.http.delete(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id);
190
+ };
191
+ OpenZaakService.prototype.deleteInformatieObjectTypeLink = function (id) {
192
+ return this.http.delete(this.valtimoApiConfig.endpointUri + "openzaak/informatie-object-type-link/" + id);
193
+ };
194
+ OpenZaakService.prototype.getZaakTypeLinkListByProcess = function (processDefinitionKey) {
195
+ return this.http.get(this.valtimoApiConfig.endpointUri + "openzaak/link/process/" + processDefinitionKey);
196
+ };
197
+ OpenZaakService.prototype.getStatusTypes = function (zaakTypeRequest) {
198
+ return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/status", zaakTypeRequest);
199
+ };
200
+ OpenZaakService.prototype.getStatusResults = function (zaakTypeRequest) {
201
+ return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/resultaat", zaakTypeRequest);
202
+ };
203
+ OpenZaakService.prototype.createServiceTaskHandler = function (id, request) {
204
+ return this.http.post(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id + "/service-handler", request);
205
+ };
206
+ OpenZaakService.prototype.modifyServiceTaskHandler = function (id, request) {
207
+ return this.http.put(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id + "/service-handler", request);
208
+ };
209
+ OpenZaakService.prototype.deleteServiceTaskHandler = function (id, processDefinitionKey, serviceTaskId) {
210
+ return this.http.delete(this.valtimoApiConfig.endpointUri + "openzaak/link/" + id + "/service-handler/" + processDefinitionKey + "/" + serviceTaskId);
211
+ };
212
+ OpenZaakService.prototype.upload = function (file, documentDefinitionName) {
213
+ var formData = new FormData();
214
+ formData.append('file', file);
215
+ formData.append('documentDefinitionName', documentDefinitionName);
216
+ return this.http.post(this.valtimoApiConfig.endpointUri + "resource/upload-open-zaak", formData, {
217
+ reportProgress: true,
218
+ responseType: 'json',
219
+ });
220
+ };
221
+ return OpenZaakService;
222
+ }());
223
+ OpenZaakService.ɵprov = i0.ɵɵdefineInjectable({ factory: function OpenZaakService_Factory() { return new OpenZaakService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: OpenZaakService, providedIn: "root" });
224
+ OpenZaakService.decorators = [
225
+ { type: i0.Injectable, args: [{
226
+ providedIn: 'root',
227
+ },] }
228
+ ];
229
+ OpenZaakService.ctorParameters = function () { return [
230
+ { type: i1.HttpClient },
231
+ { type: i2.ConfigService }
97
232
  ]; };
98
233
 
99
- /*
100
- * Copyright 2015-2020 Ritense BV, the Netherlands.
101
- *
102
- * Licensed under EUPL, Version 1.2 (the "License");
103
- * you may not use this file except in compliance with the License.
104
- * You may obtain a copy of the License at
105
- *
106
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
107
- *
108
- * Unless required by applicable law or agreed to in writing, software
109
- * distributed under the License is distributed on an "AS IS" basis,
110
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111
- * See the License for the specific language governing permissions and
112
- * limitations under the License.
113
- */
114
- var OpenZaakUploadService = /** @class */ (function () {
115
- function OpenZaakUploadService(openZaakService, http, configService) {
116
- this.openZaakService = openZaakService;
117
- this.http = http;
118
- this.configService = configService;
119
- this.valtimoApiConfig = configService.config.valtimoApi;
120
- }
121
- OpenZaakUploadService.prototype.uploadFile = function (file, documentDefinitionName) {
122
- var _this = this;
123
- return this.openZaakService
124
- .upload(new File([file], file.name, { type: file.type }), documentDefinitionName)
125
- .pipe(operators.map(function (result) { return _this.getResourceFile(result); }));
126
- };
127
- OpenZaakUploadService.prototype.getResource = function (resourceId) {
128
- return this.openZaakService.getResource(resourceId);
129
- };
130
- OpenZaakUploadService.prototype.getResourceFile = function (result) {
131
- return {
132
- customUpload: true,
133
- originalName: result.name,
134
- size: result.sizeInBytes,
135
- url: '/api/resource/' + result.resourceId + '/download',
136
- storage: 'openZaak',
137
- type: result.extension,
138
- data: {
139
- createdOn: result.createdOn,
140
- name: result.name,
141
- sizeInBytes: result.sizeInBytes,
142
- resourceId: result.resourceId,
143
- extension: result.extension,
144
- },
145
- };
146
- };
147
- return OpenZaakUploadService;
148
- }());
149
- OpenZaakUploadService.decorators = [
150
- { type: i0.Injectable }
151
- ];
152
- OpenZaakUploadService.ctorParameters = function () { return [
153
- { type: OpenZaakService },
154
- { type: i1.HttpClient },
155
- { type: i2.ConfigService }
234
+ /*
235
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
236
+ *
237
+ * Licensed under EUPL, Version 1.2 (the "License");
238
+ * you may not use this file except in compliance with the License.
239
+ * You may obtain a copy of the License at
240
+ *
241
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
242
+ *
243
+ * Unless required by applicable law or agreed to in writing, software
244
+ * distributed under the License is distributed on an "AS IS" basis,
245
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
246
+ * See the License for the specific language governing permissions and
247
+ * limitations under the License.
248
+ */
249
+ var OpenZaakUploadService = /** @class */ (function () {
250
+ function OpenZaakUploadService(openZaakService, http, configService) {
251
+ this.openZaakService = openZaakService;
252
+ this.http = http;
253
+ this.configService = configService;
254
+ this.valtimoApiConfig = configService.config.valtimoApi;
255
+ }
256
+ OpenZaakUploadService.prototype.uploadFile = function (file, documentDefinitionName) {
257
+ var _this = this;
258
+ return this.openZaakService
259
+ .upload(new File([file], file.name, { type: file.type }), documentDefinitionName)
260
+ .pipe(operators.map(function (result) { return _this.getResourceFile(result); }));
261
+ };
262
+ OpenZaakUploadService.prototype.getResource = function (resourceId) {
263
+ return this.openZaakService.getResource(resourceId);
264
+ };
265
+ OpenZaakUploadService.prototype.getResourceFile = function (result) {
266
+ return {
267
+ customUpload: true,
268
+ originalName: result.name,
269
+ size: result.sizeInBytes,
270
+ url: '/api/resource/' + result.resourceId + '/download',
271
+ storage: 'openZaak',
272
+ type: result.extension,
273
+ data: {
274
+ createdOn: result.createdOn,
275
+ name: result.name,
276
+ sizeInBytes: result.sizeInBytes,
277
+ resourceId: result.resourceId,
278
+ extension: result.extension,
279
+ },
280
+ };
281
+ };
282
+ return OpenZaakUploadService;
283
+ }());
284
+ OpenZaakUploadService.decorators = [
285
+ { type: i0.Injectable }
286
+ ];
287
+ OpenZaakUploadService.ctorParameters = function () { return [
288
+ { type: OpenZaakService },
289
+ { type: i1.HttpClient },
290
+ { type: i2.ConfigService }
156
291
  ]; };
157
292
 
158
- /*
159
- * Copyright 2015-2020 Ritense BV, the Netherlands.
160
- *
161
- * Licensed under EUPL, Version 1.2 (the "License");
162
- * you may not use this file except in compliance with the License.
163
- * You may obtain a copy of the License at
164
- *
165
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
166
- *
167
- * Unless required by applicable law or agreed to in writing, software
168
- * distributed under the License is distributed on an "AS IS" basis,
169
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
170
- * See the License for the specific language governing permissions and
171
- * limitations under the License.
172
- */
173
- var S3Service = /** @class */ (function () {
174
- function S3Service(http, configService) {
175
- this.http = http;
176
- this.configService = configService;
177
- this.valtimoApiConfig = configService.config.valtimoApi;
178
- }
179
- S3Service.prototype.getPreSignedUrl = function (fileName) {
180
- var headers = new i1.HttpHeaders().set('Content-Type', 'text/plain; charset=utf-8');
181
- var options = { headers: headers, responseType: 'text' };
182
- return this.http.get(this.valtimoApiConfig.endpointUri + "resource/pre-signed-url/" + fileName, options);
183
- };
184
- S3Service.prototype.upload = function (url, file) {
185
- var headers = new i1.HttpHeaders().set('Content-Type', file.type);
186
- return this.http.put(url.toString(), file, { headers: headers });
187
- };
188
- S3Service.prototype.registerResource = function (s3ResourceDTO) {
189
- return this.http.put(this.valtimoApiConfig.endpointUri + "resource", s3ResourceDTO);
190
- };
191
- S3Service.prototype.get = function (resourceId) {
192
- var headers = new i1.HttpHeaders().set('Content-Type', 'application/json;charset=UTF-8');
193
- return this.http.get(this.valtimoApiConfig.endpointUri + "resource/" + resourceId, { headers: headers });
194
- };
195
- S3Service.prototype.delete = function (resourceId) {
196
- var headers = new i1.HttpHeaders().set('Content-Type', 'application/json;charset=UTF-8');
197
- return this.http.delete(this.valtimoApiConfig.endpointUri + "resource/" + resourceId, {
198
- headers: headers,
199
- });
200
- };
201
- return S3Service;
202
- }());
203
- S3Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function S3Service_Factory() { return new S3Service(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: S3Service, providedIn: "root" });
204
- S3Service.decorators = [
205
- { type: i0.Injectable, args: [{
206
- providedIn: 'root',
207
- },] }
208
- ];
209
- S3Service.ctorParameters = function () { return [
210
- { type: i1.HttpClient },
211
- { type: i2.ConfigService }
293
+ /*
294
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
295
+ *
296
+ * Licensed under EUPL, Version 1.2 (the "License");
297
+ * you may not use this file except in compliance with the License.
298
+ * You may obtain a copy of the License at
299
+ *
300
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
301
+ *
302
+ * Unless required by applicable law or agreed to in writing, software
303
+ * distributed under the License is distributed on an "AS IS" basis,
304
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
305
+ * See the License for the specific language governing permissions and
306
+ * limitations under the License.
307
+ */
308
+ var S3Service = /** @class */ (function () {
309
+ function S3Service(http, configService) {
310
+ this.http = http;
311
+ this.configService = configService;
312
+ this.valtimoApiConfig = configService.config.valtimoApi;
313
+ }
314
+ S3Service.prototype.getPreSignedUrl = function (fileName) {
315
+ var headers = new i1.HttpHeaders().set('Content-Type', 'text/plain; charset=utf-8');
316
+ var options = { headers: headers, responseType: 'text' };
317
+ return this.http.get(this.valtimoApiConfig.endpointUri + "resource/pre-signed-url/" + fileName, options);
318
+ };
319
+ S3Service.prototype.upload = function (url, file) {
320
+ var headers = new i1.HttpHeaders().set('Content-Type', file.type);
321
+ return this.http.put(url.toString(), file, { headers: headers });
322
+ };
323
+ S3Service.prototype.registerResource = function (s3ResourceDTO) {
324
+ return this.http.put(this.valtimoApiConfig.endpointUri + "resource", s3ResourceDTO);
325
+ };
326
+ S3Service.prototype.get = function (resourceId) {
327
+ var headers = new i1.HttpHeaders().set('Content-Type', 'application/json;charset=UTF-8');
328
+ return this.http.get(this.valtimoApiConfig.endpointUri + "resource/" + resourceId, { headers: headers });
329
+ };
330
+ S3Service.prototype.delete = function (resourceId) {
331
+ var headers = new i1.HttpHeaders().set('Content-Type', 'application/json;charset=UTF-8');
332
+ return this.http.delete(this.valtimoApiConfig.endpointUri + "resource/" + resourceId, {
333
+ headers: headers,
334
+ });
335
+ };
336
+ return S3Service;
337
+ }());
338
+ S3Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function S3Service_Factory() { return new S3Service(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: S3Service, providedIn: "root" });
339
+ S3Service.decorators = [
340
+ { type: i0.Injectable, args: [{
341
+ providedIn: 'root',
342
+ },] }
343
+ ];
344
+ S3Service.ctorParameters = function () { return [
345
+ { type: i1.HttpClient },
346
+ { type: i2.ConfigService }
212
347
  ]; };
213
348
 
214
- /*
215
- * Copyright 2015-2020 Ritense BV, the Netherlands.
216
- *
217
- * Licensed under EUPL, Version 1.2 (the "License");
218
- * you may not use this file except in compliance with the License.
219
- * You may obtain a copy of the License at
220
- *
221
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
222
- *
223
- * Unless required by applicable law or agreed to in writing, software
224
- * distributed under the License is distributed on an "AS IS" basis,
225
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
226
- * See the License for the specific language governing permissions and
227
- * limitations under the License.
228
- */
229
- var S3UploadService = /** @class */ (function () {
230
- function S3UploadService(s3Service) {
231
- this.s3Service = s3Service;
232
- }
233
- S3UploadService.prototype.uploadFile = function (file) {
234
- var _this = this;
235
- var resourceUrl;
236
- var fileName = file.name;
237
- var splitFileName = fileName.split('.');
238
- var fileNameWithUUID = splitFileName[0] + "-" + uuid.v4() + "." + splitFileName[1];
239
- var renamedFile = new File([file], fileNameWithUUID, { type: file.type });
240
- return this.s3Service.getPreSignedUrl(renamedFile.name).pipe(operators.map(function (url) { return new URL(url); }), operators.tap(function (url) { return (resourceUrl = url); }), operators.switchMap(function (url) { return _this.s3Service.upload(url, renamedFile); }), operators.map(function () { return new contract.S3Resource(file, resourceUrl); }), operators.switchMap(function (s3Resource) { return _this.s3Service.registerResource(s3Resource); }), operators.switchMap(function (s3Resource) { return _this.s3Service.get(s3Resource.id); }), operators.map(function (result) { return (Object.assign(Object.assign({}, result), { originalName: file.name })); }), operators.map(function (result) { return _this.getResourceFile(result); }));
241
- };
242
- S3UploadService.prototype.getResource = function (resourceId) {
243
- return this.s3Service.get(resourceId);
244
- };
245
- S3UploadService.prototype.getResourceFile = function (result) {
246
- return {
247
- customUpload: true,
248
- originalName: result.originalName,
249
- url: result.url,
250
- size: result.resource.sizeInBytes,
251
- storage: 'url',
252
- type: result.resource.extension,
253
- data: {
254
- key: result.resource.key,
255
- bucketName: result.resource.name,
256
- createdOn: result.resource.createdOn,
257
- name: result.originalName,
258
- sizeInBytes: result.resource.sizeInBytes,
259
- resourceId: result.resource.id.split('ResourceId(id=')[1].slice(0, -1),
260
- },
261
- };
262
- };
263
- return S3UploadService;
264
- }());
265
- S3UploadService.decorators = [
266
- { type: i0.Injectable }
267
- ];
268
- S3UploadService.ctorParameters = function () { return [
269
- { type: S3Service }
349
+ /*
350
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
351
+ *
352
+ * Licensed under EUPL, Version 1.2 (the "License");
353
+ * you may not use this file except in compliance with the License.
354
+ * You may obtain a copy of the License at
355
+ *
356
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
357
+ *
358
+ * Unless required by applicable law or agreed to in writing, software
359
+ * distributed under the License is distributed on an "AS IS" basis,
360
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
361
+ * See the License for the specific language governing permissions and
362
+ * limitations under the License.
363
+ */
364
+ var S3UploadService = /** @class */ (function () {
365
+ function S3UploadService(s3Service) {
366
+ this.s3Service = s3Service;
367
+ }
368
+ S3UploadService.prototype.uploadFile = function (file) {
369
+ var _this = this;
370
+ var resourceUrl;
371
+ var fileName = file.name;
372
+ var splitFileName = fileName.split('.');
373
+ var fileNameWithUUID = splitFileName[0] + "-" + uuid.v4() + "." + splitFileName[1];
374
+ var renamedFile = new File([file], fileNameWithUUID, { type: file.type });
375
+ return this.s3Service.getPreSignedUrl(renamedFile.name).pipe(operators.map(function (url) { return new URL(url); }), operators.tap(function (url) { return (resourceUrl = url); }), operators.switchMap(function (url) { return _this.s3Service.upload(url, renamedFile); }), operators.map(function () { return new S3Resource(file, resourceUrl); }), operators.switchMap(function (s3Resource) { return _this.s3Service.registerResource(s3Resource); }), operators.switchMap(function (s3Resource) { return _this.s3Service.get(s3Resource.id); }), operators.map(function (result) { return (Object.assign(Object.assign({}, result), { originalName: file.name })); }), operators.map(function (result) { return _this.getResourceFile(result); }));
376
+ };
377
+ S3UploadService.prototype.getResource = function (resourceId) {
378
+ return this.s3Service.get(resourceId);
379
+ };
380
+ S3UploadService.prototype.getResourceFile = function (result) {
381
+ return {
382
+ customUpload: true,
383
+ originalName: result.originalName,
384
+ url: result.url,
385
+ size: result.resource.sizeInBytes,
386
+ storage: 'url',
387
+ type: result.resource.extension,
388
+ data: {
389
+ key: result.resource.key,
390
+ bucketName: result.resource.name,
391
+ createdOn: result.resource.createdOn,
392
+ name: result.originalName,
393
+ sizeInBytes: result.resource.sizeInBytes,
394
+ resourceId: result.resource.id.split('ResourceId(id=')[1].slice(0, -1),
395
+ },
396
+ };
397
+ };
398
+ return S3UploadService;
399
+ }());
400
+ S3UploadService.decorators = [
401
+ { type: i0.Injectable }
402
+ ];
403
+ S3UploadService.ctorParameters = function () { return [
404
+ { type: S3Service }
270
405
  ]; };
271
406
 
272
- /*
273
- * Copyright 2015-2020 Ritense BV, the Netherlands.
274
- *
275
- * Licensed under EUPL, Version 1.2 (the "License");
276
- * you may not use this file except in compliance with the License.
277
- * You may obtain a copy of the License at
278
- *
279
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
280
- *
281
- * Unless required by applicable law or agreed to in writing, software
282
- * distributed under the License is distributed on an "AS IS" basis,
283
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
284
- * See the License for the specific language governing permissions and
285
- * limitations under the License.
286
- */
287
- var UploadProviderService = /** @class */ (function () {
288
- function UploadProviderService(configService, injector, logger) {
289
- this.configService = configService;
290
- this.injector = injector;
291
- this.logger = logger;
292
- this.uploadService =
293
- configService.config.uploadProvider === contract.UploadProvider.S3
294
- ? injector.get(S3UploadService)
295
- : injector.get(OpenZaakUploadService);
296
- this.logger.debug('Loading UploadService as', this.uploadService);
297
- }
298
- UploadProviderService.prototype.uploadFile = function (file, documentDefinitionName) {
299
- return this.uploadService.uploadFile(file, documentDefinitionName);
300
- };
301
- UploadProviderService.prototype.getResource = function (resourceId) {
302
- return this.uploadService.getResource(resourceId);
303
- };
304
- return UploadProviderService;
305
- }());
306
- UploadProviderService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UploadProviderService_Factory() { return new UploadProviderService(i0.ɵɵinject(i2.ConfigService), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i2$1.NGXLogger)); }, token: UploadProviderService, providedIn: "root" });
307
- UploadProviderService.decorators = [
308
- { type: i0.Injectable, args: [{
309
- providedIn: 'root',
310
- },] }
311
- ];
312
- UploadProviderService.ctorParameters = function () { return [
313
- { type: i2.ConfigService },
314
- { type: i0.Injector },
315
- { type: i2$1.NGXLogger }
407
+ /*
408
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
409
+ *
410
+ * Licensed under EUPL, Version 1.2 (the "License");
411
+ * you may not use this file except in compliance with the License.
412
+ * You may obtain a copy of the License at
413
+ *
414
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
415
+ *
416
+ * Unless required by applicable law or agreed to in writing, software
417
+ * distributed under the License is distributed on an "AS IS" basis,
418
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
419
+ * See the License for the specific language governing permissions and
420
+ * limitations under the License.
421
+ */
422
+ var UploadProviderService = /** @class */ (function () {
423
+ function UploadProviderService(configService, injector, logger) {
424
+ this.configService = configService;
425
+ this.injector = injector;
426
+ this.logger = logger;
427
+ this.uploadService =
428
+ configService.config.uploadProvider === i2.UploadProvider.S3
429
+ ? injector.get(S3UploadService)
430
+ : injector.get(OpenZaakUploadService);
431
+ this.logger.debug('Loading UploadService as', this.uploadService);
432
+ }
433
+ UploadProviderService.prototype.uploadFile = function (file, documentDefinitionName) {
434
+ return this.uploadService.uploadFile(file, documentDefinitionName);
435
+ };
436
+ UploadProviderService.prototype.getResource = function (resourceId) {
437
+ return this.uploadService.getResource(resourceId);
438
+ };
439
+ return UploadProviderService;
440
+ }());
441
+ UploadProviderService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UploadProviderService_Factory() { return new UploadProviderService(i0.ɵɵinject(i2.ConfigService), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i2$1.NGXLogger)); }, token: UploadProviderService, providedIn: "root" });
442
+ UploadProviderService.decorators = [
443
+ { type: i0.Injectable, args: [{
444
+ providedIn: 'root',
445
+ },] }
446
+ ];
447
+ UploadProviderService.ctorParameters = function () { return [
448
+ { type: i2.ConfigService },
449
+ { type: i0.Injector },
450
+ { type: i2$1.NGXLogger }
316
451
  ]; };
317
452
 
318
- /*
319
- * Copyright 2015-2020 Ritense BV, the Netherlands.
320
- *
321
- * Licensed under EUPL, Version 1.2 (the "License");
322
- * you may not use this file except in compliance with the License.
323
- * You may obtain a copy of the License at
324
- *
325
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
326
- *
327
- * Unless required by applicable law or agreed to in writing, software
328
- * distributed under the License is distributed on an "AS IS" basis,
329
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
330
- * See the License for the specific language governing permissions and
331
- * limitations under the License.
332
- */
333
- var DownloadService = /** @class */ (function () {
334
- function DownloadService(http, configService) {
335
- this.http = http;
336
- this.configService = configService;
337
- }
338
- DownloadService.prototype.downloadFile = function (url, name) {
339
- var _this = this;
340
- if (url.startsWith(this.configService.config.valtimoApi.endpointUri) ||
341
- url.startsWith(window.location.origin)) {
342
- // if download url is on backend use angular to get the content so access token is used
343
- this.http.get(url, { responseType: 'blob' }).subscribe(function (content) {
344
- var downloadUrl = window.URL.createObjectURL(content);
345
- _this.openDownloadLink(downloadUrl, name);
346
- });
347
- }
348
- else {
349
- // download links to external services (like amazon s3) open in a new window
350
- this.openDownloadLink(url, name);
351
- }
352
- };
353
- DownloadService.prototype.openDownloadLink = function (url, name) {
354
- var link = document.createElement('a');
355
- link.href = url;
356
- link.download = name;
357
- link.target = '_blank';
358
- link.click();
359
- link.remove();
360
- };
361
- return DownloadService;
362
- }());
363
- DownloadService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DownloadService_Factory() { return new DownloadService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: DownloadService, providedIn: "root" });
364
- DownloadService.decorators = [
365
- { type: i0.Injectable, args: [{
366
- providedIn: 'root',
367
- },] }
368
- ];
369
- DownloadService.ctorParameters = function () { return [
370
- { type: i1.HttpClient },
371
- { type: i2.ConfigService }
453
+ /*
454
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
455
+ *
456
+ * Licensed under EUPL, Version 1.2 (the "License");
457
+ * you may not use this file except in compliance with the License.
458
+ * You may obtain a copy of the License at
459
+ *
460
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
461
+ *
462
+ * Unless required by applicable law or agreed to in writing, software
463
+ * distributed under the License is distributed on an "AS IS" basis,
464
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
465
+ * See the License for the specific language governing permissions and
466
+ * limitations under the License.
467
+ */
468
+ var DownloadService = /** @class */ (function () {
469
+ function DownloadService(http, configService) {
470
+ this.http = http;
471
+ this.configService = configService;
472
+ }
473
+ DownloadService.prototype.downloadFile = function (url, name) {
474
+ var _this = this;
475
+ if (url.startsWith(this.configService.config.valtimoApi.endpointUri) ||
476
+ url.startsWith(window.location.origin)) {
477
+ // if download url is on backend use angular to get the content so access token is used
478
+ this.http.get(url, { responseType: 'blob' }).subscribe(function (content) {
479
+ var downloadUrl = window.URL.createObjectURL(content);
480
+ _this.openDownloadLink(downloadUrl, name);
481
+ });
482
+ }
483
+ else {
484
+ // download links to external services (like amazon s3) open in a new window
485
+ this.openDownloadLink(url, name);
486
+ }
487
+ };
488
+ DownloadService.prototype.openDownloadLink = function (url, name) {
489
+ var link = document.createElement('a');
490
+ link.href = url;
491
+ link.download = name;
492
+ link.target = '_blank';
493
+ link.click();
494
+ link.remove();
495
+ };
496
+ return DownloadService;
497
+ }());
498
+ DownloadService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DownloadService_Factory() { return new DownloadService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: DownloadService, providedIn: "root" });
499
+ DownloadService.decorators = [
500
+ { type: i0.Injectable, args: [{
501
+ providedIn: 'root',
502
+ },] }
503
+ ];
504
+ DownloadService.ctorParameters = function () { return [
505
+ { type: i1.HttpClient },
506
+ { type: i2.ConfigService }
372
507
  ]; };
373
508
 
374
- /*
375
- * Copyright 2015-2020 Ritense BV, the Netherlands.
376
- *
377
- * Licensed under EUPL, Version 1.2 (the "License");
378
- * you may not use this file except in compliance with the License.
379
- * You may obtain a copy of the License at
380
- *
381
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
382
- *
383
- * Unless required by applicable law or agreed to in writing, software
384
- * distributed under the License is distributed on an "AS IS" basis,
385
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
386
- * See the License for the specific language governing permissions and
387
- * limitations under the License.
388
- */
389
- var ResourceModule = /** @class */ (function () {
390
- function ResourceModule() {
391
- }
392
- return ResourceModule;
393
- }());
394
- ResourceModule.decorators = [
395
- { type: i0.NgModule, args: [{
396
- declarations: [],
397
- imports: [],
398
- exports: [],
399
- providers: [
400
- OpenZaakUploadService,
401
- S3UploadService,
402
- UploadProviderService,
403
- OpenZaakService,
404
- S3Service,
405
- DownloadService,
406
- ],
407
- },] }
509
+ /*
510
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
511
+ *
512
+ * Licensed under EUPL, Version 1.2 (the "License");
513
+ * you may not use this file except in compliance with the License.
514
+ * You may obtain a copy of the License at
515
+ *
516
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
517
+ *
518
+ * Unless required by applicable law or agreed to in writing, software
519
+ * distributed under the License is distributed on an "AS IS" basis,
520
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
521
+ * See the License for the specific language governing permissions and
522
+ * limitations under the License.
523
+ */
524
+ var ResourceModule = /** @class */ (function () {
525
+ function ResourceModule() {
526
+ }
527
+ return ResourceModule;
528
+ }());
529
+ ResourceModule.decorators = [
530
+ { type: i0.NgModule, args: [{
531
+ declarations: [],
532
+ imports: [],
533
+ exports: [],
534
+ providers: [
535
+ OpenZaakUploadService,
536
+ S3UploadService,
537
+ UploadProviderService,
538
+ OpenZaakService,
539
+ S3Service,
540
+ DownloadService,
541
+ ],
542
+ },] }
408
543
  ];
409
544
 
410
- /*
411
- * Public API Surface of upload
545
+ /*
546
+ * Public API Surface of upload
412
547
  */
413
548
 
414
- /**
415
- * Generated bundle index. Do not edit.
549
+ /**
550
+ * Generated bundle index. Do not edit.
416
551
  */
417
552
 
418
553
  exports.DownloadService = DownloadService;
554
+ exports.OpenZaakConfig = OpenZaakConfig;
419
555
  exports.OpenZaakService = OpenZaakService;
420
556
  exports.ResourceModule = ResourceModule;
557
+ exports.S3Resource = S3Resource;
421
558
  exports.S3Service = S3Service;
422
559
  exports.UploadProviderService = UploadProviderService;
423
560
  exports.ɵa = OpenZaakUploadService;