@valtimo/document 10.8.0 → 11.1.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.
@@ -1,485 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, NgModule } from '@angular/core';
3
- import * as i1 from '@angular/common/http';
4
- import { HttpHeaders, HttpParams } from '@angular/common/http';
5
- import { catchError, of } from 'rxjs';
6
- import * as i2 from '@valtimo/config';
7
-
8
- /*
9
- * Copyright 2015-2023 Ritense BV, the Netherlands.
10
- *
11
- * Licensed under EUPL, Version 1.2 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" basis,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
- class ModifyDocumentRequestImpl {
24
- constructor(documentId, content, versionBasedOn) {
25
- this.documentId = documentId;
26
- this.content = content;
27
- this.versionBasedOn = versionBasedOn;
28
- }
29
- }
30
- class ModifyDocumentAndCompleteTaskRequestImpl {
31
- constructor(taskId, request) {
32
- this.taskId = taskId;
33
- this.request = request;
34
- }
35
- }
36
- class NewDocumentRequestImpl {
37
- constructor(definition, content) {
38
- this.definition = definition;
39
- this.content = content;
40
- }
41
- }
42
- class NewDocumentAndStartProcessRequestImpl {
43
- constructor(processDefinitionKey, request) {
44
- this.processDefinitionKey = processDefinitionKey;
45
- this.request = request;
46
- }
47
- }
48
- class ModifyDocumentAndStartProcessRequestImpl {
49
- constructor(processDefinitionKey, request) {
50
- this.processDefinitionKey = processDefinitionKey;
51
- this.request = request;
52
- }
53
- }
54
- class DocumentDefinitionCreateRequest {
55
- constructor(definition) {
56
- this.definition = definition;
57
- }
58
- }
59
-
60
- /*
61
- * Copyright 2015-2023 Ritense BV, the Netherlands.
62
- *
63
- * Licensed under EUPL, Version 1.2 (the "License");
64
- * you may not use this file except in compliance with the License.
65
- * You may obtain a copy of the License at
66
- *
67
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
68
- *
69
- * Unless required by applicable law or agreed to in writing, software
70
- * distributed under the License is distributed on an "AS IS" basis,
71
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
- * See the License for the specific language governing permissions and
73
- * limitations under the License.
74
- */
75
-
76
- /*
77
- * Copyright 2015-2023 Ritense BV, the Netherlands.
78
- *
79
- * Licensed under EUPL, Version 1.2 (the "License");
80
- * you may not use this file except in compliance with the License.
81
- * You may obtain a copy of the License at
82
- *
83
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
84
- *
85
- * Unless required by applicable law or agreed to in writing, software
86
- * distributed under the License is distributed on an "AS IS" basis,
87
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
88
- * See the License for the specific language governing permissions and
89
- * limitations under the License.
90
- */
91
- class DocumentService {
92
- constructor(http, configService) {
93
- this.http = http;
94
- this.EMPTY_DOCUMENTS_RESPONSE = {
95
- content: [],
96
- empty: true,
97
- first: false,
98
- last: false,
99
- number: 0,
100
- numberOfElements: 0,
101
- size: 0,
102
- sort: false,
103
- totalElements: 0,
104
- totalPages: 0,
105
- };
106
- this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
107
- }
108
- // Document-calls
109
- getAllDefinitions() {
110
- return this.http.get(`${this.valtimoEndpointUri}v1/document-definition`);
111
- }
112
- queryDefinitions(params) {
113
- return this.http.get(`${this.valtimoEndpointUri}v1/document-definition`, { params });
114
- }
115
- getDocumentDefinition(documentDefinitionName) {
116
- return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}`);
117
- }
118
- getDocuments(documentSearchRequest) {
119
- return this.http.post(`${this.valtimoEndpointUri}v1/document-search`, documentSearchRequest.asHttpBody(), {
120
- params: documentSearchRequest.asHttpParams(),
121
- });
122
- }
123
- getDocumentsSearch(documentSearchRequest, searchOperator, assigneeFilter, otherFilters) {
124
- const body = documentSearchRequest.asHttpBody();
125
- if (searchOperator) {
126
- body.searchOperator = searchOperator;
127
- }
128
- if (assigneeFilter) {
129
- body.assigneeFilter = assigneeFilter;
130
- }
131
- if (otherFilters) {
132
- body.otherFilters = otherFilters;
133
- }
134
- return this.http
135
- .post(`${this.valtimoEndpointUri}v1/document-definition/${documentSearchRequest.definitionName}/search`, body, { params: documentSearchRequest.asHttpParams() })
136
- .pipe(catchError(() => of(this.EMPTY_DOCUMENTS_RESPONSE)));
137
- }
138
- getSpecifiedDocumentsSearch(documentSearchRequest, searchOperator, assigneeFilter, otherFilters) {
139
- const body = documentSearchRequest.asHttpBody();
140
- if (searchOperator) {
141
- body.searchOperator = searchOperator;
142
- }
143
- if (assigneeFilter) {
144
- body.assigneeFilter = assigneeFilter;
145
- }
146
- if (otherFilters) {
147
- body.otherFilters = otherFilters;
148
- }
149
- return this.http
150
- .post(`${this.valtimoEndpointUri}v1/case/${documentSearchRequest.definitionName}/search`, body, { params: documentSearchRequest.asHttpParams() })
151
- .pipe(catchError(() => of(this.EMPTY_DOCUMENTS_RESPONSE)));
152
- }
153
- getDocumentSearchFields(documentDefinitionName) {
154
- return this.http.get(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`);
155
- }
156
- putDocumentSearch(documentDefinitionName, request) {
157
- return this.http.put(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`, [...request]);
158
- }
159
- postDocumentSearch(documentDefinitionName, request) {
160
- return this.http.post(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`, Object.assign({}, request));
161
- }
162
- deleteDocumentSearch(documentDefinitionName, key) {
163
- const options = {
164
- headers: new HttpHeaders({
165
- 'Content-Type': 'application/json',
166
- }),
167
- };
168
- return this.http.delete(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`, options);
169
- }
170
- getDropdownDataProviders() {
171
- return this.http.get(`${this.valtimoEndpointUri}v1/data/dropdown-list/provider`);
172
- }
173
- getDropdownData(provider, documentDefinitionName, fieldKey) {
174
- const dropdownListKey = encodeURI(documentDefinitionName + '_' + fieldKey);
175
- return this.http.get(`${this.valtimoEndpointUri}v1/data/dropdown-list?provider=${provider}&key=${dropdownListKey}`);
176
- }
177
- postDropdownData(provider, documentDefinitionName, fieldKey, dropdownData) {
178
- const dropdownListKey = encodeURI(documentDefinitionName + '_' + fieldKey);
179
- return this.http.post(`${this.valtimoEndpointUri}v1/data/dropdown-list?provider=${provider}&key=${dropdownListKey}`, dropdownData);
180
- }
181
- deleteDropdownData(provider, documentDefinitionName, fieldKey) {
182
- const dropdownListKey = encodeURI(documentDefinitionName + '_' + fieldKey);
183
- return this.http.delete(`${this.valtimoEndpointUri}v1/data/dropdown-list?provider=${provider}&key=${dropdownListKey}`);
184
- }
185
- getDocumentRoles(documentDefinitionName) {
186
- return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`);
187
- }
188
- modifyDocumentRoles(documentDefinitionName, roles) {
189
- return this.http.put(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`, roles);
190
- }
191
- getDocument(documentId) {
192
- return this.http.get(`${this.valtimoEndpointUri}v1/document/${documentId}`);
193
- }
194
- modifyDocument(document) {
195
- return this.http.put(`${this.valtimoEndpointUri}v1/document`, document);
196
- }
197
- // ProcessDocument-calls
198
- getProcessDocumentDefinitions() {
199
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition`);
200
- }
201
- findProcessDocumentDefinitions(documentDefinitionName) {
202
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}`);
203
- }
204
- findProcessDocumentDefinitionsByProcessDefinitionKey(processDefinitionKey) {
205
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/process/${processDefinitionKey}`);
206
- }
207
- findProcessDocumentInstances(documentId) {
208
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}`);
209
- }
210
- newDocumentAndStartProcess(request) {
211
- return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/new-document-and-start-process`, request);
212
- }
213
- modifyDocumentAndCompleteTask(request) {
214
- return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-complete-task`, request);
215
- }
216
- modifyDocumentAndStartProcess(request) {
217
- return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-start-process`, request);
218
- }
219
- createProcessDocumentDefinition(request) {
220
- return this.http.post(`${this.valtimoEndpointUri}v1/process-document/definition`, request);
221
- }
222
- createDocumentDefinition(documentDefinitionCreateRequest) {
223
- const options = {
224
- headers: new HttpHeaders({
225
- 'Content-Type': 'application/json',
226
- }),
227
- };
228
- return this.http.post(`${this.valtimoEndpointUri}v1/document-definition`, documentDefinitionCreateRequest, options);
229
- }
230
- deleteProcessDocumentDefinition(request) {
231
- const options = {
232
- headers: new HttpHeaders({
233
- 'Content-Type': 'application/json',
234
- }),
235
- body: request,
236
- };
237
- return this.http.delete(`${this.valtimoEndpointUri}v1/process-document/definition`, options);
238
- }
239
- getAuditLog(documentId, page = 0) {
240
- let params = new HttpParams();
241
- params = params.set('page', page.toString());
242
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}/audit`, { params });
243
- }
244
- assignResource(documentId, resourceId) {
245
- return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`, {});
246
- }
247
- removeResource(documentId, resourceId) {
248
- const options = {
249
- headers: new HttpHeaders({
250
- 'Content-Type': 'application/json',
251
- }),
252
- };
253
- return this.http.delete(`${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`, options);
254
- }
255
- removeDocumentDefinition(name) {
256
- return this.http.delete(`${this.valtimoEndpointUri}v1/document-definition/${name}`);
257
- }
258
- sendMessage(documentId, request) {
259
- return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/message`, request);
260
- }
261
- getDocumentTypes(documentDefinitionName) {
262
- return this.http.get(`${this.valtimoEndpointUri}v1/documentdefinition/${documentDefinitionName}/zaaktype/documenttype`);
263
- }
264
- getLinkedUploadProcess(documentDefinitionName) {
265
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`);
266
- }
267
- updateLinkedUploadProcess(documentDefinitionName, processDefinitionKey) {
268
- return this.http.put(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`, {
269
- processDefinitionKey,
270
- linkType: 'DOCUMENT_UPLOAD',
271
- });
272
- }
273
- deleteLinkedUploadProcess(documentDefinitionName) {
274
- return this.http.delete(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`);
275
- }
276
- getProcessDocumentDefinitionFromProcessInstanceId(processInstanceId) {
277
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/processinstance/${processInstanceId}`);
278
- }
279
- assignHandlerToDocument(documentId, assigneeId) {
280
- return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/assign`, { assigneeId });
281
- }
282
- unassignHandlerFromDocument(documentId) {
283
- return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/unassign`, {});
284
- }
285
- getCandidateUsers(documentId) {
286
- return this.http.get(`${this.valtimoEndpointUri}v1/document/${documentId}/candidate-user`);
287
- }
288
- getOpenDocumentCount() {
289
- return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/open/count`);
290
- }
291
- patchCaseSettings(documentDefinitionName, request) {
292
- return this.http.patch(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`, Object.assign({}, request));
293
- }
294
- getCaseSettings(documentDefinitionName) {
295
- return this.http.get(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`);
296
- }
297
- getCaseList(documentDefinitionName) {
298
- return this.http.get(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/list-column`);
299
- }
300
- postCaseList(documentDefinitionName, request) {
301
- return this.http.post(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/list-column`, Object.assign({}, request));
302
- }
303
- putCaseList(documentDefinitionName, request) {
304
- return this.http.put(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/list-column`, [...request]);
305
- }
306
- deleteCaseList(documentDefinitionName, columnKey) {
307
- return this.http.delete(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/list-column/${columnKey}`);
308
- }
309
- getZakenApiDocuments(documentId) {
310
- return this.http.get(`${this.valtimoEndpointUri}v1/zaken-api/document/${documentId}/files`);
311
- }
312
- }
313
- DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
314
- DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DocumentService, providedIn: 'root' });
315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DocumentService, decorators: [{
316
- type: Injectable,
317
- args: [{
318
- providedIn: 'root',
319
- }]
320
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i2.ConfigService }]; } });
321
-
322
- /*
323
- * Copyright 2015-2023 Ritense BV, the Netherlands.
324
- *
325
- * Licensed under EUPL, Version 1.2 (the "License");
326
- * you may not use this file except in compliance with the License.
327
- * You may obtain a copy of the License at
328
- *
329
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
330
- *
331
- * Unless required by applicable law or agreed to in writing, software
332
- * distributed under the License is distributed on an "AS IS" basis,
333
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
334
- * See the License for the specific language governing permissions and
335
- * limitations under the License.
336
- */
337
- class DocumentModule {
338
- }
339
- DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
340
- DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DocumentModule });
341
- DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DocumentModule });
342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DocumentModule, decorators: [{
343
- type: NgModule
344
- }] });
345
-
346
- /*
347
- * Copyright 2015-2023 Ritense BV, the Netherlands.
348
- *
349
- * Licensed under EUPL, Version 1.2 (the "License");
350
- * you may not use this file except in compliance with the License.
351
- * You may obtain a copy of the License at
352
- *
353
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
354
- *
355
- * Unless required by applicable law or agreed to in writing, software
356
- * distributed under the License is distributed on an "AS IS" basis,
357
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
358
- * See the License for the specific language governing permissions and
359
- * limitations under the License.
360
- */
361
- class DocumentSearchRequestHttpBody {
362
- }
363
- class DocumentSearchRequestImpl {
364
- constructor(definitionName, page, size, sequence, createdBy, globalSearchFilter, sort, otherFilters) {
365
- this.definitionName = definitionName;
366
- this.page = page;
367
- this.size = size;
368
- this.sequence = sequence;
369
- this.createdBy = createdBy;
370
- this.globalSearchFilter = globalSearchFilter;
371
- this.sort = sort;
372
- this.otherFilters = otherFilters;
373
- }
374
- asHttpBody() {
375
- const httpBody = new DocumentSearchRequestHttpBody();
376
- httpBody.documentDefinitionName = this.definitionName;
377
- if (this.sequence) {
378
- httpBody.sequence = this.sequence;
379
- }
380
- if (this.createdBy) {
381
- httpBody.createdBy = this.createdBy;
382
- }
383
- if (this.globalSearchFilter) {
384
- httpBody.globalSearchFilter = this.globalSearchFilter;
385
- }
386
- if (this.otherFilters) {
387
- httpBody.otherFilters = this.otherFilters;
388
- }
389
- return httpBody;
390
- }
391
- asHttpParams() {
392
- let params = new HttpParams()
393
- .set('definitionName', this.definitionName)
394
- .set('page', this.page.toString())
395
- .set('size', this.size.toString());
396
- if (this.sort) {
397
- params = params.set('sort', this.getSortString(this.sort));
398
- }
399
- return params;
400
- }
401
- setPage(page) {
402
- this.page = page;
403
- }
404
- getSortString(sort) {
405
- return `${sort.state.name},${sort.state.direction}`;
406
- }
407
- }
408
-
409
- /*
410
- * Copyright 2015-2023 Ritense BV, the Netherlands.
411
- *
412
- * Licensed under EUPL, Version 1.2 (the "License");
413
- * you may not use this file except in compliance with the License.
414
- * You may obtain a copy of the License at
415
- *
416
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
417
- *
418
- * Unless required by applicable law or agreed to in writing, software
419
- * distributed under the License is distributed on an "AS IS" basis,
420
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
421
- * See the License for the specific language governing permissions and
422
- * limitations under the License.
423
- */
424
- class AdvancedDocumentSearchRequestHttpBody {
425
- }
426
- class AdvancedDocumentSearchRequestImpl {
427
- constructor(definitionName, page, size, sort, searchOperator, otherFilters) {
428
- this.definitionName = definitionName;
429
- this.page = page;
430
- this.size = size;
431
- this.sort = sort;
432
- this.otherFilters = otherFilters;
433
- this.searchOperator = searchOperator;
434
- }
435
- asHttpBody() {
436
- const httpBody = new AdvancedDocumentSearchRequestHttpBody();
437
- httpBody.documentDefinitionName = this.definitionName;
438
- if (this.otherFilters) {
439
- httpBody.otherFilters = this.otherFilters;
440
- }
441
- if (this.searchOperator) {
442
- httpBody.searchOperator = this.searchOperator;
443
- }
444
- return httpBody;
445
- }
446
- asHttpParams() {
447
- let params = new HttpParams()
448
- .set('definitionName', this.definitionName)
449
- .set('page', this.page.toString())
450
- .set('size', this.size.toString());
451
- if (this.sort) {
452
- params = params.set('sort', this.getSortString(this.sort));
453
- }
454
- return params;
455
- }
456
- setPage(page) {
457
- this.page = page;
458
- }
459
- getSortString(sort) {
460
- return `${sort.state.name},${sort.state.direction}`;
461
- }
462
- }
463
-
464
- /*
465
- * Copyright 2015-2023 Ritense BV, the Netherlands.
466
- *
467
- * Licensed under EUPL, Version 1.2 (the "License");
468
- * you may not use this file except in compliance with the License.
469
- * You may obtain a copy of the License at
470
- *
471
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
472
- *
473
- * Unless required by applicable law or agreed to in writing, software
474
- * distributed under the License is distributed on an "AS IS" basis,
475
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
476
- * See the License for the specific language governing permissions and
477
- * limitations under the License.
478
- */
479
-
480
- /**
481
- * Generated bundle index. Do not edit.
482
- */
483
-
484
- export { AdvancedDocumentSearchRequestHttpBody, AdvancedDocumentSearchRequestImpl, DocumentDefinitionCreateRequest, DocumentModule, DocumentSearchRequestHttpBody, DocumentSearchRequestImpl, DocumentService, ModifyDocumentAndCompleteTaskRequestImpl, ModifyDocumentAndStartProcessRequestImpl, ModifyDocumentRequestImpl, NewDocumentAndStartProcessRequestImpl, NewDocumentRequestImpl };
485
- //# sourceMappingURL=valtimo-document.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/lib/advanced-document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.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\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport type SpecifiedDocuments = Omit<Documents, 'content'> & {\n content: Array<{id: string; items: Array<{key: string; value: string}>}>;\n};\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n pluginConfigurationId?: string;\n}\n\nexport type RelatedFileListItem = Omit<RelatedFile, 'createdOn'> & {createdOn: string};\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n definitionId: DocumentDefinitionId | null;\n relations: string[];\n relatedFiles: RelatedFile[];\n assigneeFullName: string;\n assigneeId: string;\n}\n\nexport interface DocumentDefinitionId {\n name: string;\n version: number;\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n latestVersionId: string;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n isActive: boolean;\n}\n\nexport interface AssignHandlerToDocumentResult {\n assigneeId: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n\nexport interface DocumentType {\n url: string;\n name: string;\n}\n\nexport interface UploadProcessLink {\n processDefinitionKey: string;\n processName: string;\n}\n\nexport interface UpdateUploadProcessLinkRequest {\n processDefinitionKey: string;\n}\n\nexport interface CaseSettings {\n name?: string;\n canHaveAssignee: boolean;\n autoAssignTasks: boolean;\n}\n\nexport interface OpenDocumentCount {\n documentDefinitionName: string;\n openDocumentCount: number;\n}\n\nexport interface CaseListColumn {\n title: string;\n key: string;\n path: string;\n displayType: DisplayType;\n sortable: boolean;\n defaultSort: string;\n}\n\nexport interface CaseListColumnView {\n title: string;\n key: string;\n path: string;\n displayType: string;\n displayTypeParameters: string;\n sortable: boolean;\n defaultSort: string;\n}\n\nexport interface DisplayType {\n type: string;\n displayTypeParameters: DisplayTypeParameters;\n}\n\nexport interface DisplayTypeParameters {\n enum?: {\n [key: string]: string;\n };\n dateFormat?: string;\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 './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.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, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {catchError, Observable, of} from 'rxjs';\nimport {\n AssignHandlerToDocumentResult,\n AuditRecord,\n CaseListColumn,\n CaseSettings,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n DocumentType,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n OpenDocumentCount,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n RelatedFile,\n SpecifiedDocuments,\n UndeployDocumentDefinitionResult,\n UploadProcessLink,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {\n AssigneeFilter,\n ConfigService,\n NamedUser,\n SearchField,\n SearchFilter,\n SearchFilterRange,\n SearchOperator,\n} from '@valtimo/config';\nimport {AdvancedDocumentSearchRequest} from './advanced-document-search-request';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n private readonly EMPTY_DOCUMENTS_RESPONSE: Documents | SpecifiedDocuments = {\n content: [],\n empty: true,\n first: false,\n last: false,\n number: 0,\n numberOfElements: 0,\n size: 0,\n sort: false,\n totalElements: 0,\n totalPages: 0,\n };\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}v1/document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}v1/document-definition`,\n {params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}v1/document-search`,\n documentSearchRequest.asHttpBody(),\n {\n params: documentSearchRequest.asHttpParams(),\n }\n );\n }\n\n getDocumentsSearch(\n documentSearchRequest: AdvancedDocumentSearchRequest,\n searchOperator?: SearchOperator,\n assigneeFilter?: AssigneeFilter,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ): Observable<Documents> {\n const body = documentSearchRequest.asHttpBody();\n\n if (searchOperator) {\n body.searchOperator = searchOperator;\n }\n\n if (assigneeFilter) {\n body.assigneeFilter = assigneeFilter;\n }\n\n if (otherFilters) {\n body.otherFilters = otherFilters;\n }\n\n return this.http\n .post<Documents>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentSearchRequest.definitionName}/search`,\n body,\n {params: documentSearchRequest.asHttpParams()}\n )\n .pipe(catchError(() => of(this.EMPTY_DOCUMENTS_RESPONSE as Documents)));\n }\n\n getSpecifiedDocumentsSearch(\n documentSearchRequest: AdvancedDocumentSearchRequest,\n searchOperator?: SearchOperator,\n assigneeFilter?: AssigneeFilter,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ): Observable<SpecifiedDocuments> {\n const body = documentSearchRequest.asHttpBody();\n\n if (searchOperator) {\n body.searchOperator = searchOperator;\n }\n\n if (assigneeFilter) {\n body.assigneeFilter = assigneeFilter;\n }\n\n if (otherFilters) {\n body.otherFilters = otherFilters;\n }\n\n return this.http\n .post<SpecifiedDocuments>(\n `${this.valtimoEndpointUri}v1/case/${documentSearchRequest.definitionName}/search`,\n body,\n {params: documentSearchRequest.asHttpParams()}\n )\n .pipe(catchError(() => of(this.EMPTY_DOCUMENTS_RESPONSE as SpecifiedDocuments)));\n }\n\n getDocumentSearchFields(documentDefinitionName: string): Observable<Array<SearchField>> {\n return this.http.get<Array<SearchField>>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`\n );\n }\n\n putDocumentSearch(documentDefinitionName: string, request: Array<SearchField>): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n [...request]\n );\n }\n\n postDocumentSearch(documentDefinitionName: string, request: SearchField): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n {...request}\n );\n }\n\n deleteDocumentSearch(documentDefinitionName: string, key: string): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`,\n options\n );\n }\n\n getDropdownDataProviders(): Observable<Array<string>> {\n return this.http.get<Array<string>>(`${this.valtimoEndpointUri}v1/data/dropdown-list/provider`);\n }\n\n getDropdownData(\n provider: string,\n documentDefinitionName: string,\n fieldKey: string\n ): Observable<object> {\n const dropdownListKey = encodeURI(documentDefinitionName + '_' + fieldKey);\n return this.http.get<object>(\n `${this.valtimoEndpointUri}v1/data/dropdown-list?provider=${provider}&key=${dropdownListKey}`\n );\n }\n\n postDropdownData(\n provider: string,\n documentDefinitionName: string,\n fieldKey: string,\n dropdownData: object\n ): Observable<object> {\n const dropdownListKey = encodeURI(documentDefinitionName + '_' + fieldKey);\n return this.http.post<object>(\n `${this.valtimoEndpointUri}v1/data/dropdown-list?provider=${provider}&key=${dropdownListKey}`,\n dropdownData\n );\n }\n\n deleteDropdownData(\n provider: string,\n documentDefinitionName: string,\n fieldKey: string\n ): Observable<object> {\n const dropdownListKey = encodeURI(documentDefinitionName + '_' + fieldKey);\n return this.http.delete<object>(\n `${this.valtimoEndpointUri}v1/data/dropdown-list?provider=${provider}&key=${dropdownListKey}`\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}v1/document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}v1/document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}v1/process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentDefinitionsByProcessDefinitionKey(\n processDefinitionKey: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}v1/process-document/definition/process/${processDefinitionKey}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}v1/process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}v1/process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}v1/document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}v1/process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}v1/document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/message`, request);\n }\n\n getDocumentTypes(documentDefinitionName: string): Observable<Array<DocumentType>> {\n return this.http.get<Array<DocumentType>>(\n `${this.valtimoEndpointUri}v1/documentdefinition/${documentDefinitionName}/zaaktype/documenttype`\n );\n }\n\n getLinkedUploadProcess(documentDefinitionName: string): Observable<UploadProcessLink> {\n return this.http.get<UploadProcessLink>(\n `${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n updateLinkedUploadProcess(\n documentDefinitionName: string,\n processDefinitionKey: string\n ): Observable<UploadProcessLink> {\n return this.http.put<UploadProcessLink>(\n `${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`,\n {\n processDefinitionKey,\n linkType: 'DOCUMENT_UPLOAD',\n }\n );\n }\n\n deleteLinkedUploadProcess(documentDefinitionName: string): Observable<void> {\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n getProcessDocumentDefinitionFromProcessInstanceId(\n processInstanceId: string\n ): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}v1/process-document/definition/processinstance/${processInstanceId}`\n );\n }\n\n assignHandlerToDocument(\n documentId: string,\n assigneeId: string\n ): Observable<AssignHandlerToDocumentResult> {\n return this.http.post<AssignHandlerToDocumentResult>(\n `${this.valtimoEndpointUri}v1/document/${documentId}/assign`,\n {assigneeId}\n );\n }\n\n unassignHandlerFromDocument(documentId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}v1/document/${documentId}/unassign`, {});\n }\n\n getCandidateUsers(documentId: string): Observable<Array<NamedUser>> {\n return this.http.get<Array<NamedUser>>(\n `${this.valtimoEndpointUri}v1/document/${documentId}/candidate-user`\n );\n }\n\n getOpenDocumentCount(): Observable<Array<OpenDocumentCount>> {\n return this.http.get<Array<OpenDocumentCount>>(\n `${this.valtimoEndpointUri}v1/document-definition/open/count`\n );\n }\n\n patchCaseSettings(\n documentDefinitionName: string,\n request: CaseSettings\n ): Observable<CaseSettings> {\n return this.http.patch<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`,\n {...request}\n );\n }\n\n getCaseSettings(documentDefinitionName: string): Observable<CaseSettings> {\n return this.http.get<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`\n );\n }\n\n getCaseList(documentDefinitionName: string): Observable<Array<CaseListColumn>> {\n return this.http.get<Array<CaseListColumn>>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/list-column`\n );\n }\n\n postCaseList(\n documentDefinitionName: string,\n request: CaseListColumn\n ): Observable<CaseListColumn> {\n return this.http.post<CaseListColumn>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/list-column`,\n {...request}\n );\n }\n\n putCaseList(\n documentDefinitionName: string,\n request: Array<CaseListColumn>\n ): Observable<Array<CaseListColumn>> {\n return this.http.put<Array<CaseListColumn>>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/list-column`,\n [...request]\n );\n }\n\n deleteCaseList(documentDefinitionName: string, columnKey: string): Observable<CaseListColumn> {\n return this.http.delete<CaseListColumn>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/list-column/${columnKey}`\n );\n }\n\n getZakenApiDocuments(documentId: string): Observable<Array<RelatedFile>> {\n return this.http.get<Array<RelatedFile>>(\n `${this.valtimoEndpointUri}v1/zaken-api/document/${documentId}/files`\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';\n\n@NgModule()\nexport class DocumentModule {}\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 {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\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 {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\nimport {AssigneeFilter, SearchFilter, SearchFilterRange, SearchOperator} from '@valtimo/config';\n\nexport interface AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class AdvancedDocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n assigneeFilter?: AssigneeFilter;\n}\n\nexport class AdvancedDocumentSearchRequestImpl implements AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sort?: SortState,\n searchOperator?: SearchOperator,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sort = sort;\n this.otherFilters = otherFilters;\n this.searchOperator = searchOperator;\n }\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody {\n const httpBody = new AdvancedDocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n if (this.searchOperator) {\n httpBody.searchOperator = this.searchOperator;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\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\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\nexport * from './lib/advanced-document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAcG;MA+JU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CA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