@valtimo/document 12.19.0 → 13.0.1-next-minor.81

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 (38) hide show
  1. package/fesm2022/valtimo-document.mjs +134 -103
  2. package/fesm2022/valtimo-document.mjs.map +1 -1
  3. package/lib/models/advanced-document-search-request.d.ts +1 -1
  4. package/lib/models/case-tags.model.d.ts +1 -1
  5. package/lib/models/document.model.d.ts +37 -37
  6. package/lib/models/document.model.d.ts.map +1 -1
  7. package/lib/models/internal-case-status.model.d.ts +1 -1
  8. package/lib/models/process-document-definition-search.model.d.ts.map +1 -1
  9. package/lib/services/case-status.service.d.ts +7 -7
  10. package/lib/services/case-status.service.d.ts.map +1 -1
  11. package/lib/services/document.service.d.ts +25 -23
  12. package/lib/services/document.service.d.ts.map +1 -1
  13. package/lib/services/file-sort.service.d.ts +1 -1
  14. package/lib/services/tags.service.d.ts +7 -7
  15. package/lib/services/tags.service.d.ts.map +1 -1
  16. package/lib/utils/case-tags.utils.d.ts +1 -1
  17. package/lib/utils/internal-case-status.utils.d.ts +1 -1
  18. package/package.json +4 -6
  19. package/esm2022/lib/document.module.mjs +0 -26
  20. package/esm2022/lib/models/advanced-document-search-request.mjs +0 -56
  21. package/esm2022/lib/models/audit.model.mjs +0 -17
  22. package/esm2022/lib/models/case-tags.model.mjs +0 -17
  23. package/esm2022/lib/models/document-search-request.mjs +0 -64
  24. package/esm2022/lib/models/document.model.mjs +0 -53
  25. package/esm2022/lib/models/index.mjs +0 -24
  26. package/esm2022/lib/models/internal-case-status.model.mjs +0 -17
  27. package/esm2022/lib/models/list-sorting.model.mjs +0 -17
  28. package/esm2022/lib/models/process-document-definition-search.model.mjs +0 -2
  29. package/esm2022/lib/services/case-status.service.mjs +0 -54
  30. package/esm2022/lib/services/document.service.mjs +0 -276
  31. package/esm2022/lib/services/file-sort.service.mjs +0 -39
  32. package/esm2022/lib/services/index.mjs +0 -20
  33. package/esm2022/lib/services/tags.service.mjs +0 -54
  34. package/esm2022/lib/utils/case-tags.utils.mjs +0 -32
  35. package/esm2022/lib/utils/index.mjs +0 -18
  36. package/esm2022/lib/utils/internal-case-status.utils.mjs +0 -32
  37. package/esm2022/public_api.mjs +0 -23
  38. package/esm2022/valtimo-document.mjs +0 -5
@@ -2,13 +2,12 @@ import * as i1 from '@angular/common/http';
2
2
  import { HttpParams, HttpHeaders } from '@angular/common/http';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Injectable, NgModule } from '@angular/core';
5
- import * as i2 from '@valtimo/config';
6
- import { BaseApiService, TagColor } from '@valtimo/config';
7
- import { InterceptorSkip } from '@valtimo/security';
5
+ import * as i2 from '@valtimo/shared';
6
+ import { BaseApiService, InterceptorSkip, TagColor } from '@valtimo/shared';
8
7
  import { catchError, of, switchMap } from 'rxjs';
9
8
 
10
9
  /*
11
- * Copyright 2015-2024 Ritense BV, the Netherlands.
10
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
12
11
  *
13
12
  * Licensed under EUPL, Version 1.2 (the "License");
14
13
  * you may not use this file except in compliance with the License.
@@ -60,7 +59,7 @@ class DocumentDefinitionCreateRequest {
60
59
  }
61
60
 
62
61
  /*
63
- * Copyright 2015-2024 Ritense BV, the Netherlands.
62
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
64
63
  *
65
64
  * Licensed under EUPL, Version 1.2 (the "License");
66
65
  * you may not use this file except in compliance with the License.
@@ -76,7 +75,7 @@ class DocumentDefinitionCreateRequest {
76
75
  */
77
76
 
78
77
  /*
79
- * Copyright 2015-2024 Ritense BV, the Netherlands.
78
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
80
79
  *
81
80
  * Licensed under EUPL, Version 1.2 (the "License");
82
81
  * you may not use this file except in compliance with the License.
@@ -92,7 +91,7 @@ class DocumentDefinitionCreateRequest {
92
91
  */
93
92
 
94
93
  /*
95
- * Copyright 2015-2024 Ritense BV, the Netherlands.
94
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
96
95
  *
97
96
  * Licensed under EUPL, Version 1.2 (the "License");
98
97
  * you may not use this file except in compliance with the License.
@@ -147,7 +146,7 @@ class AdvancedDocumentSearchRequestImpl {
147
146
  }
148
147
 
149
148
  /*
150
- * Copyright 2015-2024 Ritense BV, the Netherlands.
149
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
151
150
  *
152
151
  * Licensed under EUPL, Version 1.2 (the "License");
153
152
  * you may not use this file except in compliance with the License.
@@ -210,7 +209,7 @@ class DocumentSearchRequestImpl {
210
209
  }
211
210
 
212
211
  /*
213
- * Copyright 2015-2024 Ritense BV, the Netherlands.
212
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
214
213
  *
215
214
  * Licensed under EUPL, Version 1.2 (the "License");
216
215
  * you may not use this file except in compliance with the License.
@@ -226,7 +225,7 @@ class DocumentSearchRequestImpl {
226
225
  */
227
226
 
228
227
  /*
229
- * Copyright 2015-2024 Ritense BV, the Netherlands.
228
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
230
229
  *
231
230
  * Licensed under EUPL, Version 1.2 (the "License");
232
231
  * you may not use this file except in compliance with the License.
@@ -242,7 +241,7 @@ class DocumentSearchRequestImpl {
242
241
  */
243
242
 
244
243
  /*
245
- * Copyright 2015-2024 Ritense BV, the Netherlands.
244
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
246
245
  *
247
246
  * Licensed under EUPL, Version 1.2 (the "License");
248
247
  * you may not use this file except in compliance with the License.
@@ -258,7 +257,23 @@ class DocumentSearchRequestImpl {
258
257
  */
259
258
 
260
259
  /*
261
- * Copyright 2015-2024 Ritense BV, the Netherlands.
260
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
261
+ *
262
+ * Licensed under EUPL, Version 1.2 (the "License");
263
+ * you may not use this file except in compliance with the License.
264
+ * You may obtain a copy of the License at
265
+ *
266
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
267
+ *
268
+ * Unless required by applicable law or agreed to in writing, software
269
+ * distributed under the License is distributed on an "AS IS" basis,
270
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
271
+ * See the License for the specific language governing permissions and
272
+ * limitations under the License.
273
+ */
274
+
275
+ /*
276
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
262
277
  *
263
278
  * Licensed under EUPL, Version 1.2 (the "License");
264
279
  * you may not use this file except in compliance with the License.
@@ -278,28 +293,28 @@ class CaseStatusService extends BaseApiService {
278
293
  this.httpClient = httpClient;
279
294
  this.configService = configService;
280
295
  }
281
- getInternalCaseStatusesManagement(caseDefinitionName) {
282
- return this.httpClient.get(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/internal-status`));
296
+ getInternalCaseStatuses(caseDefinitionKey) {
297
+ return this.httpClient.get(this.getApiUrl(`/v1/case-definition/${caseDefinitionKey}/internal-status`));
283
298
  }
284
- getInternalCaseStatuses(caseDefinitionName) {
285
- return this.httpClient.get(this.getApiUrl(`/v1/case-definition/${caseDefinitionName}/internal-status`));
299
+ getInternalCaseStatusesManagement(caseDefinitionKey) {
300
+ return this.httpClient.get(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/internal-status`));
286
301
  }
287
- saveInternalCaseStatus(caseDefinitionName, status) {
288
- return this.httpClient.post(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/internal-status`), status);
302
+ createInternalCaseStatus(caseDefinitionKey, internalCaseStatus) {
303
+ return this.httpClient.post(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/internal-status`), internalCaseStatus);
289
304
  }
290
- deleteInternalCaseStatus(caseDefinitionName, statusKey) {
291
- return this.httpClient.delete(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/internal-status/${statusKey}`));
305
+ updateInternalCaseStatuses(caseDefinitionKey, internalCaseStatuses) {
306
+ return this.httpClient.put(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/internal-status`), internalCaseStatuses);
292
307
  }
293
- updateInternalCaseStatus(caseDefinitionName, currentStatusKey, updatedStatus) {
294
- return this.httpClient.put(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/internal-status/${currentStatusKey}`), updatedStatus);
308
+ updateInternalCaseStatus(caseDefinitionKey, internalStatusKey, internalCaseStatus) {
309
+ return this.httpClient.put(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/internal-status/${internalStatusKey}`), internalCaseStatus);
295
310
  }
296
- updateInternalCaseStatuses(caseDefinitionName, reorderedStatus) {
297
- return this.httpClient.put(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/internal-status`), reorderedStatus);
311
+ deleteInternalCaseStatus(caseDefinitionKey, internalStatusKey) {
312
+ return this.httpClient.delete(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/internal-status/${internalStatusKey}`));
298
313
  }
299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseStatusService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
300
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseStatusService, providedIn: 'root' }); }
314
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CaseStatusService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
315
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CaseStatusService, providedIn: 'root' }); }
301
316
  }
302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseStatusService, decorators: [{
317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CaseStatusService, decorators: [{
303
318
  type: Injectable,
304
319
  args: [{
305
320
  providedIn: 'root',
@@ -307,7 +322,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
307
322
  }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ConfigService }] });
308
323
 
309
324
  /*
310
- * Copyright 2015-2024 Ritense BV, the Netherlands.
325
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
311
326
  *
312
327
  * Licensed under EUPL, Version 1.2 (the "License");
313
328
  * you may not use this file except in compliance with the License.
@@ -388,36 +403,36 @@ class DocumentService {
388
403
  .post(`${this.valtimoEndpointUri}v1/case/${documentSearchRequest.definitionName}/search`, body, { params: documentSearchRequest.asHttpParams() })
389
404
  .pipe(catchError(() => of(this.EMPTY_DOCUMENTS_RESPONSE)));
390
405
  }
391
- getDocumentSearchFields(documentDefinitionName) {
392
- return this.http.get(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`);
406
+ getDocumentSearchFields(caseDefinitionKey) {
407
+ return this.http.get(`${this.valtimoEndpointUri}v1/document-search/${caseDefinitionKey}/fields`);
393
408
  }
394
- putDocumentSearch(documentDefinitionName, request) {
395
- return this.http.put(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`, [...request]);
409
+ putDocumentSearch(caseDefinitionKey, request) {
410
+ return this.http.put(`${this.valtimoEndpointUri}v1/document-search/${caseDefinitionKey}/fields`, request);
396
411
  }
397
- postDocumentSearch(documentDefinitionName, request) {
398
- return this.http.post(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`, { ...request });
412
+ postDocumentSearch(caseDefinitionKey, request) {
413
+ return this.http.post(`${this.valtimoEndpointUri}v1/document-search/${caseDefinitionKey}/fields`, { ...request });
399
414
  }
400
- deleteDocumentSearch(documentDefinitionName, key) {
415
+ deleteDocumentSearch(caseDefinitionKey, key) {
401
416
  const options = {
402
417
  headers: new HttpHeaders({
403
418
  'Content-Type': 'application/json',
404
419
  }),
405
420
  };
406
- return this.http.delete(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`, options);
421
+ return this.http.delete(`${this.valtimoEndpointUri}v1/document-search/${caseDefinitionKey}/fields?key=${key}`, options);
407
422
  }
408
423
  getDropdownDataProviders() {
409
424
  return this.http.get(`${this.valtimoEndpointUri}v1/data/dropdown-list/provider`);
410
425
  }
411
- getDropdownData(provider, documentDefinitionName, fieldKey) {
412
- const dropdownListKey = encodeURI(documentDefinitionName + '_' + fieldKey);
426
+ getDropdownData(provider, caseDefinitionKey, fieldKey) {
427
+ const dropdownListKey = encodeURI(caseDefinitionKey + '_' + fieldKey);
413
428
  return this.http.get(`${this.valtimoEndpointUri}v1/data/dropdown-list?provider=${provider}&key=${dropdownListKey}`);
414
429
  }
415
- postDropdownData(provider, documentDefinitionName, fieldKey, dropdownData) {
416
- const dropdownListKey = encodeURI(documentDefinitionName + '_' + fieldKey);
430
+ postDropdownData(provider, caseDefinitionKey, fieldKey, dropdownData) {
431
+ const dropdownListKey = encodeURI(caseDefinitionKey + '_' + fieldKey);
417
432
  return this.http.post(`${this.valtimoEndpointUri}v1/data/dropdown-list?provider=${provider}&key=${dropdownListKey}`, dropdownData);
418
433
  }
419
- deleteDropdownData(provider, documentDefinitionName, fieldKey) {
420
- const dropdownListKey = encodeURI(documentDefinitionName + '_' + fieldKey);
434
+ deleteDropdownData(provider, caseDefinitionKey, fieldKey) {
435
+ const dropdownListKey = encodeURI(caseDefinitionKey + '_' + fieldKey);
421
436
  return this.http.delete(`${this.valtimoEndpointUri}v1/data/dropdown-list?provider=${provider}&key=${dropdownListKey}`);
422
437
  }
423
438
  getDocument(documentId) {
@@ -429,31 +444,36 @@ class DocumentService {
429
444
  deleteDocument(documentId) {
430
445
  return this.http.delete(`${this.valtimoEndpointUri}v1/document/${documentId}`);
431
446
  }
432
- // ProcessDocument-calls
433
- getProcessDocumentDefinitions() {
434
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition`);
435
- }
436
- findProcessDocumentDefinitions(documentDefinitionName) {
437
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}`);
447
+ // ProcessDefinitionCaseDefinition-calls
448
+ findProcessDefinitionCaseDefinitions(caseDefinitionKey) {
449
+ return this.http.get(`${this.valtimoEndpointUri}v1/case-definition/${caseDefinitionKey}/case-process-link`);
438
450
  }
439
- findProcessDocumentDefinitionsByStartableByUser(documentDefinitionName, startableByUser) {
440
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}?startableByUser=${startableByUser}`);
451
+ findProcessDefinitionCaseDefinitionsByStartableByUser(caseDefinitionKey, startableByUser) {
452
+ return this.http.get(`${this.valtimoEndpointUri}v1/case-definition/${caseDefinitionKey}/case-process-link?startableByUser=${startableByUser}`);
441
453
  }
442
- findProcessDocumentDefinitionsByCanInitializeDocument(documentDefinitionName, canInitializeDocument) {
443
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}?canInitializeDocument=${canInitializeDocument}`);
454
+ findProcessDefinitionCaseDefinitionsByCanInitializeDocument(caseDefinitionKey, canInitializeDocument) {
455
+ return this.http.get(`${this.valtimoEndpointUri}v1/case-definition/${caseDefinitionKey}/case-process-link?canInitializeDocument=${canInitializeDocument}`);
444
456
  }
445
- findProcessDocumentDefinitionsForDocument(documentId, searchRequest) {
457
+ findProcessDefinitionCaseDefinitionsForDocument(documentId, searchRequest) {
446
458
  const params = new HttpParams({
447
459
  fromObject: searchRequest,
448
460
  });
449
- return this.http.get(`${this.valtimoEndpointUri}v2/process-document/definition/document/${documentId}`, { params });
461
+ return this.http.get(`${this.valtimoEndpointUri}v1/document-instance/${documentId}/case-process-link`, { params });
462
+ }
463
+ // Case definition calls
464
+ getCaseDefinitions(params) {
465
+ return this.http.get(`${this.valtimoEndpointUri}v1/case-definition`, {
466
+ params,
467
+ });
468
+ }
469
+ getCaseDefinitionsManagement(params) {
470
+ return this.http.get(`${this.valtimoEndpointUri}management/v1/case-definition`, {
471
+ params,
472
+ });
450
473
  }
451
474
  findProcessDocumentDefinitionsByVersion(documentDefinitionName, version) {
452
475
  return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}/version/${version}`);
453
476
  }
454
- findProcessDocumentDefinitionsByProcessDefinitionKey(processDefinitionKey) {
455
- return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/process/${processDefinitionKey}`);
456
- }
457
477
  findProcessDocumentInstances(documentId) {
458
478
  return this.http.get(`${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}`);
459
479
  }
@@ -482,6 +502,14 @@ class DocumentService {
482
502
  };
483
503
  return this.http.post(`${this.valtimoEndpointUri}management/v1/document-definition`, documentDefinitionCreateRequest, options);
484
504
  }
505
+ updateDocumentDefinitionForManagement(caseDefinitionKey, caseDefinitionVersionTag, request) {
506
+ const options = {
507
+ headers: new HttpHeaders({
508
+ 'Content-Type': 'application/json',
509
+ }),
510
+ };
511
+ return this.http.put(`${this.valtimoEndpointUri}management/v1/case-definition/${caseDefinitionKey}/version/${caseDefinitionVersionTag}/document-definition`, request, options);
512
+ }
485
513
  deleteProcessDocumentDefinition(request) {
486
514
  const options = {
487
515
  headers: new HttpHeaders({
@@ -513,15 +541,18 @@ class DocumentService {
513
541
  sendMessage(documentId, request) {
514
542
  return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/message`, request);
515
543
  }
516
- getDocumentTypes(documentDefinitionName) {
517
- return this.http.get(`${this.valtimoEndpointUri}v1/documentdefinition/${documentDefinitionName}/zaaktype/documenttype`);
544
+ getDocumentTypesForCase(caseDefinitionKey, versionTag) {
545
+ return this.http.get(`${this.valtimoEndpointUri}v1/case-definition/${caseDefinitionKey}/version/${versionTag}/zaaktype/documenttype`);
546
+ }
547
+ getDocumentTypesForDocument(documentId) {
548
+ return this.http.get(`${this.valtimoEndpointUri}v1/document/${documentId}/zaaktype/documenttype`);
518
549
  }
519
- getProcessDocumentDefinitionFromProcessInstanceId(processInstanceId) {
550
+ getProcessDefinitionCaseDefinitionFromProcessInstanceId(processInstanceId) {
520
551
  return this.configService.getFeatureToggle('enableSuppressDocumentError')
521
- ? this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/processinstance/${processInstanceId}`, {
552
+ ? this.http.get(`${this.valtimoEndpointUri}v1/process-instance/${processInstanceId}/case-process-link`, {
522
553
  headers: new HttpHeaders().set(InterceptorSkip, '400'),
523
554
  })
524
- : this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/processinstance/${processInstanceId}`);
555
+ : this.http.get(`${this.valtimoEndpointUri}v1/process-instance/${processInstanceId}/case-process-link`);
525
556
  }
526
557
  assignHandlerToDocument(documentId, assigneeId) {
527
558
  return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/assign`, { assigneeId });
@@ -535,14 +566,14 @@ class DocumentService {
535
566
  getOpenDocumentCount() {
536
567
  return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/open/count`);
537
568
  }
538
- patchCaseSettingsForManagement(documentDefinitionName, request) {
539
- return this.http.patch(`${this.valtimoEndpointUri}management/v1/case/${documentDefinitionName}/settings`, { ...request });
569
+ patchCaseSettingsForManagement(caseDefinitionKey, caseDefinitionVersionTag, request) {
570
+ return this.http.patch(`${this.valtimoEndpointUri}management/v1/case-definition/${caseDefinitionKey}/version/${caseDefinitionVersionTag}/settings`, { ...request });
540
571
  }
541
- getCaseSettings(documentDefinitionName) {
542
- return this.http.get(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`);
572
+ getCaseSettings(caseDefinitionKey) {
573
+ return this.http.get(`${this.valtimoEndpointUri}v1/case-definition/${caseDefinitionKey}/settings`);
543
574
  }
544
- getCaseSettingsForManagement(documentDefinitionName) {
545
- return this.http.get(`${this.valtimoEndpointUri}management/v1/case/${documentDefinitionName}/settings`);
575
+ getCaseSettingsForManagement(caseDefinitionKey, caseDefinitionVersionTag) {
576
+ return this.http.get(`${this.valtimoEndpointUri}management/v1/case-definition/${caseDefinitionKey}/version/${caseDefinitionVersionTag}/settings`);
546
577
  }
547
578
  getCaseList(documentDefinitionName) {
548
579
  return this.http.get(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/list-column`);
@@ -562,13 +593,13 @@ class DocumentService {
562
593
  getDocumentDefinitionVersions(documentDefinitionName) {
563
594
  return this.http.get(`${this.valtimoEndpointUri}management/v1/document-definition/${documentDefinitionName}/version`);
564
595
  }
565
- getDocumentDefinitionByVersion(documentDefinitionName, version) {
566
- return this.http.get(`${this.valtimoEndpointUri}management/v1/document-definition/${documentDefinitionName}/version/${version}`);
596
+ getDocumentDefinitionByVersion(caseDefinitionKey, caseDefinitionVersionTag) {
597
+ return this.http.get(`${this.valtimoEndpointUri}management/v1/case-definition/${caseDefinitionKey}/version/${caseDefinitionVersionTag}/document-definition`);
567
598
  }
568
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
569
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DocumentService, providedIn: 'root' }); }
599
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
600
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DocumentService, providedIn: 'root' }); }
570
601
  }
571
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DocumentService, decorators: [{
602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DocumentService, decorators: [{
572
603
  type: Injectable,
573
604
  args: [{
574
605
  providedIn: 'root',
@@ -576,7 +607,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
576
607
  }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ConfigService }] });
577
608
 
578
609
  /*
579
- * Copyright 2015-2024 Ritense BV, the Netherlands.
610
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
580
611
  *
581
612
  * Licensed under EUPL, Version 1.2 (the "License");
582
613
  * you may not use this file except in compliance with the License.
@@ -601,10 +632,10 @@ class FileSortService {
601
632
  }
602
633
  return relatedFiles;
603
634
  }
604
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileSortService, deps: [{ token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
605
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileSortService, providedIn: 'root' }); }
635
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FileSortService, deps: [{ token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
636
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FileSortService, providedIn: 'root' }); }
606
637
  }
607
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileSortService, decorators: [{
638
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FileSortService, decorators: [{
608
639
  type: Injectable,
609
640
  args: [{
610
641
  providedIn: 'root',
@@ -612,7 +643,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
612
643
  }], ctorParameters: () => [{ type: i2.ConfigService }] });
613
644
 
614
645
  /*
615
- * Copyright 2015-2024 Ritense BV, the Netherlands.
646
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
616
647
  *
617
648
  * Licensed under EUPL, Version 1.2 (the "License");
618
649
  * you may not use this file except in compliance with the License.
@@ -632,28 +663,28 @@ class CaseTagService extends BaseApiService {
632
663
  this.httpClient = httpClient;
633
664
  this.configService = configService;
634
665
  }
635
- getCaseTagsManagement(caseDefinitionName) {
636
- return this.httpClient.get(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/case-tag`));
666
+ getCaseTagsManagement(caseDefinitionKey, caseDefinitionVersionTag) {
667
+ return this.httpClient.get(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/version/${caseDefinitionVersionTag}/case-tag`));
637
668
  }
638
- getCaseTags(caseDefinitionName) {
639
- return this.httpClient.get(this.getApiUrl(`/v1/case-definition/${caseDefinitionName}/case-tag`));
669
+ getCaseTags(caseDefinitionKey) {
670
+ return this.httpClient.get(this.getApiUrl(`/v1/case-definition/${caseDefinitionKey}/case-tag`));
640
671
  }
641
- saveCaseTag(caseDefinitionName, tag) {
642
- return this.httpClient.post(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/case-tag`), tag);
672
+ saveCaseTag(caseDefinitionKey, caseDefinitionVersionTag, tag) {
673
+ return this.httpClient.post(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/version/${caseDefinitionVersionTag}/case-tag`), tag);
643
674
  }
644
- updateCaseTag(caseDefinitionName, currentTag, updatedTag) {
645
- return this.httpClient.put(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/case-tag/${currentTag}`), updatedTag);
675
+ updateCaseTag(caseDefinitionKey, caseDefinitionVersionTag, currentTag, updatedTag) {
676
+ return this.httpClient.put(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/version/${caseDefinitionVersionTag}/case-tag/${currentTag}`), updatedTag);
646
677
  }
647
- deleteCaseTag(caseDefinitionName, tag) {
648
- return this.httpClient.delete(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/case-tag/${tag}`));
678
+ deleteCaseTag(caseDefinitionKey, caseDefinitionVersionTag, tag) {
679
+ return this.httpClient.delete(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/version/${caseDefinitionVersionTag}/case-tag/${tag}`));
649
680
  }
650
- updateCaseTags(caseDefinitionName, reorderedStatus) {
651
- return this.httpClient.put(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionName}/case-tag`), reorderedStatus);
681
+ updateCaseTags(caseDefinitionKey, caseDefinitionVersionTag, reorderedTags) {
682
+ return this.httpClient.put(this.getApiUrl(`/management/v1/case-definition/${caseDefinitionKey}/version/${caseDefinitionVersionTag}/case-tag`), reorderedTags);
652
683
  }
653
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseTagService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
654
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseTagService, providedIn: 'root' }); }
684
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CaseTagService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
685
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CaseTagService, providedIn: 'root' }); }
655
686
  }
656
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseTagService, decorators: [{
687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CaseTagService, decorators: [{
657
688
  type: Injectable,
658
689
  args: [{
659
690
  providedIn: 'root',
@@ -661,7 +692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
661
692
  }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ConfigService }] });
662
693
 
663
694
  /*
664
- * Copyright 2015-2024 Ritense BV, the Netherlands.
695
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
665
696
  *
666
697
  * Licensed under EUPL, Version 1.2 (the "License");
667
698
  * you may not use this file except in compliance with the License.
@@ -677,7 +708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
677
708
  */
678
709
 
679
710
  /*
680
- * Copyright 2015-2024 Ritense BV, the Netherlands.
711
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
681
712
  *
682
713
  * Licensed under EUPL, Version 1.2 (the "License");
683
714
  * you may not use this file except in compliance with the License.
@@ -692,16 +723,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
692
723
  * limitations under the License.
693
724
  */
694
725
  class DocumentModule {
695
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
696
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: DocumentModule }); }
697
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DocumentModule }); }
726
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
727
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DocumentModule }); }
728
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DocumentModule }); }
698
729
  }
699
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DocumentModule, decorators: [{
730
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DocumentModule, decorators: [{
700
731
  type: NgModule
701
732
  }] });
702
733
 
703
734
  /*
704
- * Copyright 2015-2024 Ritense BV, the Netherlands.
735
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
705
736
  *
706
737
  * Licensed under EUPL, Version 1.2 (the "License");
707
738
  * you may not use this file except in compliance with the License.
@@ -731,7 +762,7 @@ class InternalCaseStatusUtils {
731
762
  }
732
763
 
733
764
  /*
734
- * Copyright 2015-2024 Ritense BV, the Netherlands.
765
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
735
766
  *
736
767
  * Licensed under EUPL, Version 1.2 (the "License");
737
768
  * you may not use this file except in compliance with the License.
@@ -761,7 +792,7 @@ class CaseTagsUtils {
761
792
  }
762
793
 
763
794
  /*
764
- * Copyright 2015-2024 Ritense BV, the Netherlands.
795
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
765
796
  *
766
797
  * Licensed under EUPL, Version 1.2 (the "License");
767
798
  * you may not use this file except in compliance with the License.
@@ -777,7 +808,7 @@ class CaseTagsUtils {
777
808
  */
778
809
 
779
810
  /*
780
- * Copyright 2015-2024 Ritense BV, the Netherlands.
811
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
781
812
  *
782
813
  * Licensed under EUPL, Version 1.2 (the "License");
783
814
  * you may not use this file except in compliance with the License.