@valtimo/case-migration 13.47.1 → 13.49.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.
@@ -67,6 +67,7 @@ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
+ /** @deprecated 'Case migration (beta)' and its `/api/management/v1/document-definition/migrate(/conflicts)` endpoints are replaced by the migration feature in `@valtimo/case-management`. */
70
71
  class CaseMigrationService {
71
72
  constructor(http, configService) {
72
73
  this.http = http;
@@ -121,6 +122,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
121
122
  */
122
123
  // Spring caps the `size` request param at 2000, so larger pages have to be fetched one by one.
123
124
  const MAX_PAGE_SIZE = 2000;
125
+ /** @deprecated 'Case migration (beta)' is replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */
124
126
  class CaseMigrationComponent {
125
127
  constructor(documentService, caseMigrationService, iconService, globalNotificationService, translateService) {
126
128
  this.documentService = documentService;
@@ -135,6 +137,7 @@ class CaseMigrationComponent {
135
137
  this.patchItems$ = new BehaviorSubject([]);
136
138
  this.errors$ = new BehaviorSubject(null);
137
139
  this.showConfirmationModal$ = new BehaviorSubject(false);
140
+ this.CARBON_THEME = 'g10';
138
141
  this._subscriptions = new Subscription();
139
142
  this.caseDefinitions$ = this.getAllCaseDefinitions().pipe(shareReplay(1));
140
143
  this.sourceCaseDefinitionKeyItems$ = this.caseDefinitions$.pipe(map(caseDefinitions => ({
@@ -166,7 +169,6 @@ class CaseMigrationComponent {
166
169
  source: patchItem.key,
167
170
  target: patchItem.value,
168
171
  }))));
169
- this.CARBON_THEME = 'g10';
170
172
  this.iconService.registerAll([WatsonHealthStackedMove16]);
171
173
  }
172
174
  ngOnInit() {
@@ -311,6 +313,7 @@ const routes = [
311
313
  data: { title: 'Case migration', roles: [ROLE_ADMIN] },
312
314
  },
313
315
  ];
316
+ /** @deprecated 'Case migration (beta)' is replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */
314
317
  class CaseMigrationRoutingModule {
315
318
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CaseMigrationRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
316
319
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: CaseMigrationRoutingModule, imports: [CommonModule, i1$2.RouterModule], exports: [RouterModule] }); }
@@ -339,6 +342,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
339
342
  * See the License for the specific language governing permissions and
340
343
  * limitations under the License.
341
344
  */
345
+ /** @deprecated 'Case migration (beta)' is replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */
342
346
  class CaseMigrationModule {
343
347
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CaseMigrationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
344
348
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: CaseMigrationModule, declarations: [CaseMigrationComponent], imports: [CommonModule,
@@ -1 +1 @@
1
- {"version":3,"file":"valtimo-case-migration.mjs","sources":["../../../../projects/valtimo/case-migration/src/lib/models/case-migration.model.ts","../../../../projects/valtimo/case-migration/src/lib/models/index.ts","../../../../projects/valtimo/case-migration/src/lib/services/case-migration.service.ts","../../../../projects/valtimo/case-migration/src/lib/services/index.ts","../../../../projects/valtimo/case-migration/src/lib/components/case-migration-component/case-migration.component.ts","../../../../projects/valtimo/case-migration/src/lib/components/case-migration-component/case-migration.component.html","../../../../projects/valtimo/case-migration/src/lib/case-migration-routing.module.ts","../../../../projects/valtimo/case-migration/src/lib/case-migration.module.ts","../../../../projects/valtimo/case-migration/src/public-api.ts","../../../../projects/valtimo/case-migration/src/valtimo-case-migration.ts"],"sourcesContent":["/*\n * Copyright 2015-2025 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 {CaseDefinitionId} from '@valtimo/document';\n\ninterface LoadedValue<T> {\n isLoading: boolean;\n value?: T;\n}\n\ninterface DocumentMigrationConflictRequest {\n documentDefinitionNameSource: string;\n caseDefinitionIdSource: CaseDefinitionId;\n documentDefinitionNameTarget: string;\n caseDefinitionIdTarget: CaseDefinitionId;\n patches: DocumentMigrationPatch[];\n}\n\ninterface DocumentMigrationConflictResponse {\n documentDefinitionNameSource: string;\n caseDefinitionIdSource: CaseDefinitionId;\n documentDefinitionNameTarget: string;\n caseDefinitionIdTarget: CaseDefinitionId;\n conflicts: DocumentMigrationPatch[];\n errors: Array<string>;\n documentCount: number;\n}\n\ninterface DocumentMigrationPatch {\n source: string;\n target?: string;\n error?: string;\n}\n\nexport {\n LoadedValue,\n DocumentMigrationConflictRequest,\n DocumentMigrationConflictResponse,\n DocumentMigrationPatch,\n};\n","/*\n * Copyright 2015-2025 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 './case-migration.model';\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {ConfigService} from '@valtimo/shared';\nimport {Observable} from 'rxjs';\nimport {DocumentMigrationConflictRequest, DocumentMigrationConflictResponse} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CaseMigrationService {\n private readonly valtimoEndpointUri!: string;\n\n constructor(\n private http: HttpClient,\n configService: ConfigService\n ) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n public getConflicts(\n request: DocumentMigrationConflictRequest\n ): Observable<DocumentMigrationConflictResponse> {\n return this.http.post<DocumentMigrationConflictResponse>(\n `${this.valtimoEndpointUri}management/v1/document-definition/migration/conflicts`,\n request\n );\n }\n\n public migrate(request: DocumentMigrationConflictRequest): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}management/v1/document-definition/migrate`,\n request\n );\n }\n}\n","/*\n * Copyright 2015-2025 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 './case-migration.service';\n","/*\n * Copyright 2015-2025 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 {Component, OnDestroy, OnInit} from '@angular/core';\nimport {CaseDefinition, DocumentService, Page} from '@valtimo/document';\nimport {MultiInputValues} from '@valtimo/components';\nimport {\n BehaviorSubject,\n combineLatest,\n EMPTY,\n expand,\n map,\n Observable,\n reduce,\n shareReplay,\n startWith,\n Subscription,\n switchMap,\n take,\n} from 'rxjs';\nimport {ListItem} from 'carbon-components-angular/dropdown';\nimport {DocumentMigrationConflictRequest, DocumentMigrationPatch, LoadedValue} from '../../models';\nimport {CaseMigrationService} from '../../services';\nimport {WatsonHealthStackedMove16} from '@carbon/icons';\nimport {IconService} from 'carbon-components-angular';\nimport {GlobalNotificationService} from '@valtimo/shared';\nimport {TranslateService} from '@ngx-translate/core';\nimport {gt, valid} from 'semver';\n\n// Spring caps the `size` request param at 2000, so larger pages have to be fetched one by one.\nconst MAX_PAGE_SIZE = 2000;\n\n@Component({\n standalone: false,\n selector: 'valtimo-case-migration',\n templateUrl: './case-migration.component.html',\n})\nexport class CaseMigrationComponent implements OnInit, OnDestroy {\n public readonly sourceCaseDefinitionKeySelected$ = new BehaviorSubject<string | null>(null);\n public readonly sourceCaseDefinitionVersionTagSelected$ = new BehaviorSubject<string | null>(\n null\n );\n public readonly targetCaseDefinitionKeySelected$ = new BehaviorSubject<string | null>(null);\n public readonly targetCaseDefinitionVersionTagSelected$ = new BehaviorSubject<string | null>(\n null\n );\n public readonly patchItems$ = new BehaviorSubject<MultiInputValues>([]);\n public readonly errors$ = new BehaviorSubject<Array<string> | null>(null);\n public readonly showConfirmationModal$ = new BehaviorSubject<boolean>(false);\n\n private readonly _subscriptions = new Subscription();\n\n constructor(\n private readonly documentService: DocumentService,\n private readonly caseMigrationService: CaseMigrationService,\n private readonly iconService: IconService,\n private readonly globalNotificationService: GlobalNotificationService,\n private readonly translateService: TranslateService\n ) {\n this.iconService.registerAll([WatsonHealthStackedMove16]);\n }\n\n public readonly caseDefinitions$: Observable<Array<CaseDefinition>> =\n this.getAllCaseDefinitions().pipe(shareReplay(1));\n public readonly sourceCaseDefinitionKeyItems$: Observable<LoadedValue<Array<ListItem>>> =\n this.caseDefinitions$.pipe(\n map(caseDefinitions => ({\n value: this.toCaseDefinitionKeyItems(caseDefinitions),\n isLoading: false,\n })),\n startWith({isLoading: true})\n );\n public readonly sourceCaseDefinitionVersionTagItems$: Observable<Array<ListItem>> = combineLatest(\n [this.sourceCaseDefinitionKeySelected$, this.caseDefinitions$]\n ).pipe(\n map(([sourceCaseDefinitionKeySelected, caseDefinitions]) =>\n caseDefinitions.filter(\n caseDefinition => caseDefinition.caseDefinitionKey === sourceCaseDefinitionKeySelected\n )\n ),\n map(caseDefinitions =>\n caseDefinitions.map(caseDefinition => caseDefinition.caseDefinitionVersionTag)\n ),\n map(versions =>\n versions.map(\n version =>\n ({\n caseDefinitionVersionTag: version,\n content: version.toString(),\n selected: false,\n }) as ListItem\n )\n )\n );\n public readonly targetCaseDefinitionKeyItems$: Observable<LoadedValue<Array<ListItem>>> =\n combineLatest([this.caseDefinitions$, this.targetCaseDefinitionKeySelected$]).pipe(\n map(([caseDefinitions, targetCaseDefinitionKeySelected]) => ({\n value: this.toCaseDefinitionKeyItems(caseDefinitions, targetCaseDefinitionKeySelected),\n isLoading: false,\n })),\n startWith({isLoading: true})\n );\n public readonly targetCaseDefinitionVersionTagItems$: Observable<Array<ListItem>> = combineLatest(\n [\n this.targetCaseDefinitionKeySelected$,\n this.targetCaseDefinitionVersionTagSelected$,\n this.caseDefinitions$,\n ]\n ).pipe(\n map(\n ([\n targetCaseDefinitionKeySelected,\n targetCaseDefinitionVersionTagSelected,\n caseDefinitions,\n ]) =>\n caseDefinitions\n .filter(\n caseDefinition => caseDefinition.caseDefinitionKey === targetCaseDefinitionKeySelected\n )\n .map(\n caseDefinition =>\n ({\n caseDefinitionVersionTag: caseDefinition.caseDefinitionVersionTag,\n content: caseDefinition.caseDefinitionVersionTag.toString(),\n selected:\n caseDefinition.caseDefinitionVersionTag ===\n targetCaseDefinitionVersionTagSelected,\n }) as ListItem\n )\n )\n );\n public readonly patches$: Observable<Array<DocumentMigrationPatch>> = this.patchItems$.pipe(\n map(patchItems =>\n patchItems.map(\n patchItem =>\n ({\n source: patchItem.key,\n target: patchItem.value,\n }) as DocumentMigrationPatch\n )\n )\n );\n\n public ngOnInit(): void {\n // The target is prefilled to the latest version, this screen's usual case; only the user knows the source.\n this._subscriptions.add(\n this.sourceCaseDefinitionKeySelected$.subscribe(sourceCaseDefinitionKeySelected =>\n this.targetCaseDefinitionKeySelected$.next(sourceCaseDefinitionKeySelected)\n )\n );\n\n // Keyed off the target so a different target case replaces the tag, which it need not otherwise have.\n this._subscriptions.add(\n combineLatest([this.targetCaseDefinitionKeySelected$, this.caseDefinitions$]).subscribe(\n ([targetCaseDefinitionKeySelected, caseDefinitions]) =>\n this.targetCaseDefinitionVersionTagSelected$.next(\n this.latestVersionTagOf(caseDefinitions, targetCaseDefinitionKeySelected)\n )\n )\n );\n }\n\n public ngOnDestroy(): void {\n this._subscriptions.unsubscribe();\n }\n\n mappingValueChange(patches: MultiInputValues): void {\n this.patchItems$.next(patches);\n }\n\n checkPatches() {\n this.errors$.next(null);\n combineLatest([\n this.sourceCaseDefinitionKeySelected$,\n this.sourceCaseDefinitionVersionTagSelected$,\n this.targetCaseDefinitionKeySelected$,\n this.targetCaseDefinitionVersionTagSelected$,\n this.patches$,\n ])\n .pipe(\n take(1),\n map(\n ([\n caseDefinitionKeySource,\n caseDefinitionVersionTagSource,\n caseDefinitionKeyTarget,\n caseDefinitionVersionTagTarget,\n patches,\n ]) =>\n ({\n documentDefinitionNameSource: caseDefinitionKeySource,\n caseDefinitionIdSource: {\n key: caseDefinitionKeySource,\n versionTag: caseDefinitionVersionTagSource,\n },\n documentDefinitionNameTarget: caseDefinitionKeyTarget,\n caseDefinitionIdTarget: {\n key: caseDefinitionKeyTarget,\n versionTag: caseDefinitionVersionTagTarget,\n },\n patches,\n }) as DocumentMigrationConflictRequest\n ),\n switchMap(request =>\n this.caseMigrationService.getConflicts(request as DocumentMigrationConflictRequest)\n )\n )\n .subscribe(response => {\n this.errors$.next(\n response.errors.concat(\n response.conflicts.filter(c => !!c.error).map(c => c.source + ': ' + c.error)\n )\n );\n });\n }\n\n migrate() {\n this.errors$.next(null);\n combineLatest([\n this.sourceCaseDefinitionKeySelected$,\n this.sourceCaseDefinitionVersionTagSelected$,\n this.targetCaseDefinitionKeySelected$,\n this.targetCaseDefinitionVersionTagSelected$,\n this.patches$,\n ])\n .pipe(\n take(1),\n map(\n ([\n caseDefinitionKeySource,\n caseDefinitionVersionTagSource,\n caseDefinitionKeyTarget,\n caseDefinitionVersionTagTarget,\n patches,\n ]) =>\n ({\n documentDefinitionNameSource: caseDefinitionKeySource,\n caseDefinitionIdSource: {\n key: caseDefinitionKeySource,\n versionTag: caseDefinitionVersionTagSource,\n },\n documentDefinitionNameTarget: caseDefinitionKeyTarget,\n caseDefinitionIdTarget: {\n key: caseDefinitionKeyTarget,\n versionTag: caseDefinitionVersionTagTarget,\n },\n patches,\n }) as DocumentMigrationConflictRequest\n ),\n switchMap(request =>\n this.caseMigrationService.migrate(request as DocumentMigrationConflictRequest)\n )\n )\n .subscribe({\n next: () => {\n this.errors$.next([]);\n this.globalNotificationService.showToast({\n title: this.translateService.instant('caseMigration.noErrors'),\n type: 'success',\n });\n },\n error: error => this.errors$.next([error.message]),\n });\n }\n\n /**\n * Compares tags rather than list position, so the latest version is found regardless of the order\n * the backend returns the versions of a key in.\n */\n private latestVersionTagOf(\n caseDefinitions: Array<CaseDefinition>,\n caseDefinitionKey: string | null\n ): string | null {\n return caseDefinitions\n .filter(caseDefinition => caseDefinition.caseDefinitionKey === caseDefinitionKey)\n .map(caseDefinition => caseDefinition.caseDefinitionVersionTag)\n .reduce((latest: string | null, current: string) => {\n if (latest === null) return current;\n if (!valid(current)) return latest;\n return !valid(latest) || gt(current, latest) ? current : latest;\n }, null);\n }\n\n private getAllCaseDefinitions(): Observable<Array<CaseDefinition>> {\n return this.getCaseDefinitionPage(0).pipe(\n expand(page =>\n page.content.length === 0 || (page.number + 1) * page.size >= page.totalElements\n ? EMPTY\n : this.getCaseDefinitionPage(page.number + 1)\n ),\n reduce(\n (caseDefinitions: Array<CaseDefinition>, page) => [...caseDefinitions, ...page.content],\n []\n )\n );\n }\n\n private getCaseDefinitionPage(page: number): Observable<Page<CaseDefinition>> {\n return this.documentService.getCaseDefinitionsManagement({\n sort: 'id.key,id.versionTag',\n allVersions: true,\n page,\n size: MAX_PAGE_SIZE,\n });\n }\n\n // Ordered on name because that is what the dropdown shows; the fetch itself is ordered on key\n // so that the versions of a case stay grouped and in version order.\n private toCaseDefinitionKeyItems(\n caseDefinitions: Array<CaseDefinition>,\n selectedCaseDefinitionKey: string | null = null\n ): Array<ListItem> {\n return [...new Map(caseDefinitions.map(item => [item.caseDefinitionKey, item])).values()]\n .map(\n caseDefinition =>\n ({\n caseDefinitionKey: caseDefinition.caseDefinitionKey,\n content: caseDefinition.name,\n selected: caseDefinition.caseDefinitionKey === selectedCaseDefinitionKey,\n }) as ListItem\n )\n .sort((left, right) => left.content.localeCompare(right.content));\n }\n\n protected readonly CARBON_THEME = 'g10';\n}\n","<!--\n ~ Copyright 2015-2025 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<ng-container\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n sourceCaseDefinitionKeyItems: sourceCaseDefinitionKeyItems$ | async,\n sourceCaseDefinitionVersionTagItems: sourceCaseDefinitionVersionTagItems$ | async,\n targetCaseDefinitionKeyItems: targetCaseDefinitionKeyItems$ | async,\n targetCaseDefinitionVersionTagItems: targetCaseDefinitionVersionTagItems$ | async,\n sourceCaseDefinitionKeySelected: sourceCaseDefinitionKeySelected$ | async,\n sourceCaseDefinitionVersionTagSelected: sourceCaseDefinitionVersionTagSelected$ | async,\n targetCaseDefinitionKeySelected: targetCaseDefinitionKeySelected$ | async,\n targetCaseDefinitionVersionTagSelected: targetCaseDefinitionVersionTagSelected$ | async,\n patchItems: patchItems$ | async,\n errors: errors$ | async,\n showConfirmationModal: showConfirmationModal$,\n } as obs\"\n>\n <ng-container>\n <div class=\"pb-2\">\n <cds-notification\n [notificationObj]=\"{\n type: 'warning',\n title: 'caseMigration.warningBeta' | translate,\n showClose: false,\n }\"\n >\n </cds-notification>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.caseDefinition' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceCaseDefinitionKey' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.sourceCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.sourceCaseDefinitionKeyItems.isLoading\"\n (selected)=\"sourceCaseDefinitionKeySelected$.next($event.item.caseDefinitionKey)\"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceCaseDefinitionKeyItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceCaseDefinitionVersionTag' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"\n sourceCaseDefinitionVersionTagSelected$.next($event.item.caseDefinitionVersionTag)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceCaseDefinitionVersionTagItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetCaseDefinitionKey' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"targetCaseDefinitionKeySelected$.next($event.item.caseDefinitionKey)\"\n >\n <cds-dropdown-list\n [items]=\"obs.targetCaseDefinitionKeyItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetCaseDefinitionVersionTag' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"\n targetCaseDefinitionVersionTagSelected$.next($event.item.caseDefinitionVersionTag)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.targetCaseDefinitionVersionTagItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2 pb-2\">\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.patches' | translate }}</h2>\n </div>\n </div>\n <valtimo-carbon-multi-input\n type=\"keyValue\"\n (valueChange)=\"mappingValueChange($event)\"\n [title]=\"' '\"\n [tooltip]=\"'caseMigration.patchTooltip' | translate\"\n [defaultValues]=\"[]\"\n [keyColumnTitle]=\"'caseMigration.patchSource' | translate\"\n [valueColumnTitle]=\"'caseMigration.patchTarget' | translate\"\n [fullWidth]=\"true\"\n ></valtimo-carbon-multi-input>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2\">\n <div *ngIf=\"obs.errors?.length === 0\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n {{ 'caseMigration.noErrors' | translate }}\n </div>\n </div>\n <div *ngIf=\"obs.errors?.length >= 1\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.errors' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"pb-2\" *ngFor=\"let error of obs.errors\">\n <cds-notification\n [notificationObj]=\"{\n type: 'error',\n title: error,\n showClose: false,\n }\"\n >\n </cds-notification>\n </div>\n </div>\n </ng-container>\n\n <ng-container>\n <button\n class=\"mt-2 mb-2 mr-2\"\n cdsButton=\"secondary\"\n size=\"md\"\n (click)=\"checkPatches()\"\n [disabled]=\"\n !obs.sourceCaseDefinitionKeySelected ||\n !obs.sourceCaseDefinitionVersionTagSelected ||\n !obs.targetCaseDefinitionKeySelected ||\n !obs.targetCaseDefinitionVersionTagSelected\n \"\n >\n {{ 'caseMigration.checkPatches' | translate }}\n </button>\n <button\n class=\"mt-2 mb-2 ml-2\"\n cdsButton=\"primary\"\n size=\"md\"\n (click)=\"showConfirmationModal$.next(true)\"\n [disabled]=\"\n !obs.sourceCaseDefinitionKeySelected ||\n !obs.sourceCaseDefinitionVersionTagSelected ||\n !obs.targetCaseDefinitionKeySelected ||\n !obs.targetCaseDefinitionVersionTagSelected\n \"\n >\n {{ 'caseMigration.migrate' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"watsonHealthStackedMove\" size=\"16\"></svg>\n </button>\n </ng-container>\n\n <valtimo-confirmation-modal\n [showModalSubject$]=\"obs.showConfirmationModal\"\n (confirmEvent)=\"migrate()\"\n (cancelEvent)=\"showConfirmationModal$.next(false)\"\n cancelButtonType=\"ghost\"\n confirmButtonTextTranslationKey=\"caseMigration.modalTitle\"\n titleTranslationKey=\"caseMigration.modalTitle\"\n contentTranslationKey=\"caseMigration.modalContent\"\n ></valtimo-confirmation-modal>\n</ng-container>\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {ROLE_ADMIN} from '@valtimo/shared';\nimport {CaseMigrationComponent} from './components/case-migration-component/case-migration.component';\n\nconst routes: Routes = [\n {\n path: 'case-migration',\n component: CaseMigrationComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Case migration', roles: [ROLE_ADMIN]},\n },\n];\n\n@NgModule({\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class CaseMigrationRoutingModule {}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CaseMigrationRoutingModule} from './case-migration-routing.module';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n CarbonMultiInputModule,\n ConfirmationModalModule,\n RenderInPageHeaderDirective,\n TooltipIconModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {CaseMigrationComponent} from './components/case-migration-component/case-migration.component';\nimport {\n ButtonModule,\n DropdownModule,\n IconModule,\n InputModule,\n NotificationModule,\n} from 'carbon-components-angular';\n\n@NgModule({\n declarations: [CaseMigrationComponent],\n imports: [\n CommonModule,\n CaseMigrationRoutingModule,\n ReactiveFormsModule,\n WidgetModule,\n FormsModule,\n TranslateModule,\n DropdownModule,\n RenderInPageHeaderDirective,\n InputModule,\n TooltipIconModule,\n ButtonModule,\n IconModule,\n CarbonMultiInputModule,\n ConfirmationModalModule,\n NotificationModule,\n ],\n})\nexport class CaseMigrationModule {}\n","/*\n * Copyright 2015-2025 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 case-migration\n */\n\nexport * from './lib/models';\nexport * from './lib/services';\nexport * from './lib/case-migration.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2.CaseMigrationService","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MAWU,oBAAoB,CAAA;IAG/B,WAAA,CACU,IAAgB,EACxB,a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A,EAAA,CAnBf,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAEnC,YAAY;YACZ,0BAA0B;YAC1B,mBAAmB;YACnB,YAAY;YACZ,WAAW;YACX,eAAe;YACf,cAAc;YACd,2BAA2B;YAC3B,WAAW;YACX,iBAAiB;YACjB,YAAY;YACZ,UAAU;YACV,sBAAsB;YACtB,uBAAuB;YACvB,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAGT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAjB5B,YAAY;YACZ,0BAA0B;YAC1B,mBAAmB;YACnB,YAAY;YACZ,WAAW;YACX,eAAe;YACf,cAAc;YAEd,WAAW;YACX,iBAAiB;YACjB,YAAY;YACZ,UAAU;YACV,sBAAsB;YACtB,uBAAuB;YACvB,kBAAkB,CAAA,EAAA,CAAA,CAAA;;4FAGT,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBApB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,0BAA0B;wBAC1B,mBAAmB;wBACnB,YAAY;wBACZ,WAAW;wBACX,eAAe;wBACf,cAAc;wBACd,2BAA2B;wBAC3B,WAAW;wBACX,iBAAiB;wBACjB,YAAY;wBACZ,UAAU;wBACV,sBAAsB;wBACtB,uBAAuB;wBACvB,kBAAkB;AACnB,qBAAA;AACF,iBAAA;;;ACxDD;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
1
+ {"version":3,"file":"valtimo-case-migration.mjs","sources":["../../../../projects/valtimo/case-migration/src/lib/models/case-migration.model.ts","../../../../projects/valtimo/case-migration/src/lib/models/index.ts","../../../../projects/valtimo/case-migration/src/lib/services/case-migration.service.ts","../../../../projects/valtimo/case-migration/src/lib/services/index.ts","../../../../projects/valtimo/case-migration/src/lib/components/case-migration-component/case-migration.component.ts","../../../../projects/valtimo/case-migration/src/lib/components/case-migration-component/case-migration.component.html","../../../../projects/valtimo/case-migration/src/lib/case-migration-routing.module.ts","../../../../projects/valtimo/case-migration/src/lib/case-migration.module.ts","../../../../projects/valtimo/case-migration/src/public-api.ts","../../../../projects/valtimo/case-migration/src/valtimo-case-migration.ts"],"sourcesContent":["/*\n * Copyright 2015-2025 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 {CaseDefinitionId} from '@valtimo/document';\n\n/** @deprecated Part of 'Case migration (beta)', replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */\ninterface LoadedValue<T> {\n isLoading: boolean;\n value?: T;\n}\n\n/** @deprecated Part of 'Case migration (beta)', replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */\ninterface DocumentMigrationConflictRequest {\n documentDefinitionNameSource: string;\n caseDefinitionIdSource: CaseDefinitionId;\n documentDefinitionNameTarget: string;\n caseDefinitionIdTarget: CaseDefinitionId;\n patches: DocumentMigrationPatch[];\n}\n\n/** @deprecated Part of 'Case migration (beta)', replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */\ninterface DocumentMigrationConflictResponse {\n documentDefinitionNameSource: string;\n caseDefinitionIdSource: CaseDefinitionId;\n documentDefinitionNameTarget: string;\n caseDefinitionIdTarget: CaseDefinitionId;\n conflicts: DocumentMigrationPatch[];\n errors: Array<string>;\n documentCount: number;\n}\n\n/** @deprecated Part of 'Case migration (beta)', replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */\ninterface DocumentMigrationPatch {\n source: string;\n target?: string;\n error?: string;\n}\n\nexport {\n LoadedValue,\n DocumentMigrationConflictRequest,\n DocumentMigrationConflictResponse,\n DocumentMigrationPatch,\n};\n","/*\n * Copyright 2015-2025 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 './case-migration.model';\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {ConfigService} from '@valtimo/shared';\nimport {Observable} from 'rxjs';\nimport {DocumentMigrationConflictRequest, DocumentMigrationConflictResponse} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\n/** @deprecated 'Case migration (beta)' and its `/api/management/v1/document-definition/migrate(/conflicts)` endpoints are replaced by the migration feature in `@valtimo/case-management`. */\nexport class CaseMigrationService {\n private readonly valtimoEndpointUri!: string;\n\n constructor(\n private http: HttpClient,\n configService: ConfigService\n ) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n public getConflicts(\n request: DocumentMigrationConflictRequest\n ): Observable<DocumentMigrationConflictResponse> {\n return this.http.post<DocumentMigrationConflictResponse>(\n `${this.valtimoEndpointUri}management/v1/document-definition/migration/conflicts`,\n request\n );\n }\n\n public migrate(request: DocumentMigrationConflictRequest): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}management/v1/document-definition/migrate`,\n request\n );\n }\n}\n","/*\n * Copyright 2015-2025 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 './case-migration.service';\n","/*\n * Copyright 2015-2025 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 {Component, OnDestroy, OnInit} from '@angular/core';\nimport {CaseDefinition, DocumentService, Page} from '@valtimo/document';\nimport {MultiInputValues} from '@valtimo/components';\nimport {\n BehaviorSubject,\n combineLatest,\n EMPTY,\n expand,\n map,\n Observable,\n reduce,\n shareReplay,\n startWith,\n Subscription,\n switchMap,\n take,\n} from 'rxjs';\nimport {ListItem} from 'carbon-components-angular/dropdown';\nimport {DocumentMigrationConflictRequest, DocumentMigrationPatch, LoadedValue} from '../../models';\nimport {CaseMigrationService} from '../../services';\nimport {WatsonHealthStackedMove16} from '@carbon/icons';\nimport {IconService} from 'carbon-components-angular';\nimport {GlobalNotificationService} from '@valtimo/shared';\nimport {TranslateService} from '@ngx-translate/core';\nimport {gt, valid} from 'semver';\n\n// Spring caps the `size` request param at 2000, so larger pages have to be fetched one by one.\nconst MAX_PAGE_SIZE = 2000;\n\n@Component({\n standalone: false,\n selector: 'valtimo-case-migration',\n templateUrl: './case-migration.component.html',\n})\n/** @deprecated 'Case migration (beta)' is replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */\nexport class CaseMigrationComponent implements OnInit, OnDestroy {\n public readonly sourceCaseDefinitionKeySelected$ = new BehaviorSubject<string | null>(null);\n public readonly sourceCaseDefinitionVersionTagSelected$ = new BehaviorSubject<string | null>(\n null\n );\n public readonly targetCaseDefinitionKeySelected$ = new BehaviorSubject<string | null>(null);\n public readonly targetCaseDefinitionVersionTagSelected$ = new BehaviorSubject<string | null>(\n null\n );\n public readonly patchItems$ = new BehaviorSubject<MultiInputValues>([]);\n public readonly errors$ = new BehaviorSubject<Array<string> | null>(null);\n public readonly showConfirmationModal$ = new BehaviorSubject<boolean>(false);\n\n protected readonly CARBON_THEME = 'g10';\n\n private readonly _subscriptions = new Subscription();\n\n constructor(\n private readonly documentService: DocumentService,\n private readonly caseMigrationService: CaseMigrationService,\n private readonly iconService: IconService,\n private readonly globalNotificationService: GlobalNotificationService,\n private readonly translateService: TranslateService\n ) {\n this.iconService.registerAll([WatsonHealthStackedMove16]);\n }\n\n public readonly caseDefinitions$: Observable<Array<CaseDefinition>> =\n this.getAllCaseDefinitions().pipe(shareReplay(1));\n public readonly sourceCaseDefinitionKeyItems$: Observable<LoadedValue<Array<ListItem>>> =\n this.caseDefinitions$.pipe(\n map(caseDefinitions => ({\n value: this.toCaseDefinitionKeyItems(caseDefinitions),\n isLoading: false,\n })),\n startWith({isLoading: true})\n );\n public readonly sourceCaseDefinitionVersionTagItems$: Observable<Array<ListItem>> = combineLatest(\n [this.sourceCaseDefinitionKeySelected$, this.caseDefinitions$]\n ).pipe(\n map(([sourceCaseDefinitionKeySelected, caseDefinitions]) =>\n caseDefinitions.filter(\n caseDefinition => caseDefinition.caseDefinitionKey === sourceCaseDefinitionKeySelected\n )\n ),\n map(caseDefinitions =>\n caseDefinitions.map(caseDefinition => caseDefinition.caseDefinitionVersionTag)\n ),\n map(versions =>\n versions.map(\n version =>\n ({\n caseDefinitionVersionTag: version,\n content: version.toString(),\n selected: false,\n }) as ListItem\n )\n )\n );\n public readonly targetCaseDefinitionKeyItems$: Observable<LoadedValue<Array<ListItem>>> =\n combineLatest([this.caseDefinitions$, this.targetCaseDefinitionKeySelected$]).pipe(\n map(([caseDefinitions, targetCaseDefinitionKeySelected]) => ({\n value: this.toCaseDefinitionKeyItems(caseDefinitions, targetCaseDefinitionKeySelected),\n isLoading: false,\n })),\n startWith({isLoading: true})\n );\n public readonly targetCaseDefinitionVersionTagItems$: Observable<Array<ListItem>> = combineLatest(\n [\n this.targetCaseDefinitionKeySelected$,\n this.targetCaseDefinitionVersionTagSelected$,\n this.caseDefinitions$,\n ]\n ).pipe(\n map(\n ([\n targetCaseDefinitionKeySelected,\n targetCaseDefinitionVersionTagSelected,\n caseDefinitions,\n ]) =>\n caseDefinitions\n .filter(\n caseDefinition => caseDefinition.caseDefinitionKey === targetCaseDefinitionKeySelected\n )\n .map(\n caseDefinition =>\n ({\n caseDefinitionVersionTag: caseDefinition.caseDefinitionVersionTag,\n content: caseDefinition.caseDefinitionVersionTag.toString(),\n selected:\n caseDefinition.caseDefinitionVersionTag ===\n targetCaseDefinitionVersionTagSelected,\n }) as ListItem\n )\n )\n );\n public readonly patches$: Observable<Array<DocumentMigrationPatch>> = this.patchItems$.pipe(\n map(patchItems =>\n patchItems.map(\n patchItem =>\n ({\n source: patchItem.key,\n target: patchItem.value,\n }) as DocumentMigrationPatch\n )\n )\n );\n\n public ngOnInit(): void {\n // The target is prefilled to the latest version, this screen's usual case; only the user knows the source.\n this._subscriptions.add(\n this.sourceCaseDefinitionKeySelected$.subscribe(sourceCaseDefinitionKeySelected =>\n this.targetCaseDefinitionKeySelected$.next(sourceCaseDefinitionKeySelected)\n )\n );\n\n // Keyed off the target so a different target case replaces the tag, which it need not otherwise have.\n this._subscriptions.add(\n combineLatest([this.targetCaseDefinitionKeySelected$, this.caseDefinitions$]).subscribe(\n ([targetCaseDefinitionKeySelected, caseDefinitions]) =>\n this.targetCaseDefinitionVersionTagSelected$.next(\n this.latestVersionTagOf(caseDefinitions, targetCaseDefinitionKeySelected)\n )\n )\n );\n }\n\n public ngOnDestroy(): void {\n this._subscriptions.unsubscribe();\n }\n\n public mappingValueChange(patches: MultiInputValues): void {\n this.patchItems$.next(patches);\n }\n\n public checkPatches(): void {\n this.errors$.next(null);\n combineLatest([\n this.sourceCaseDefinitionKeySelected$,\n this.sourceCaseDefinitionVersionTagSelected$,\n this.targetCaseDefinitionKeySelected$,\n this.targetCaseDefinitionVersionTagSelected$,\n this.patches$,\n ])\n .pipe(\n take(1),\n map(\n ([\n caseDefinitionKeySource,\n caseDefinitionVersionTagSource,\n caseDefinitionKeyTarget,\n caseDefinitionVersionTagTarget,\n patches,\n ]) =>\n ({\n documentDefinitionNameSource: caseDefinitionKeySource,\n caseDefinitionIdSource: {\n key: caseDefinitionKeySource,\n versionTag: caseDefinitionVersionTagSource,\n },\n documentDefinitionNameTarget: caseDefinitionKeyTarget,\n caseDefinitionIdTarget: {\n key: caseDefinitionKeyTarget,\n versionTag: caseDefinitionVersionTagTarget,\n },\n patches,\n }) as DocumentMigrationConflictRequest\n ),\n switchMap(request =>\n this.caseMigrationService.getConflicts(request as DocumentMigrationConflictRequest)\n )\n )\n .subscribe(response => {\n this.errors$.next(\n response.errors.concat(\n response.conflicts.filter(c => !!c.error).map(c => c.source + ': ' + c.error)\n )\n );\n });\n }\n\n public migrate(): void {\n this.errors$.next(null);\n combineLatest([\n this.sourceCaseDefinitionKeySelected$,\n this.sourceCaseDefinitionVersionTagSelected$,\n this.targetCaseDefinitionKeySelected$,\n this.targetCaseDefinitionVersionTagSelected$,\n this.patches$,\n ])\n .pipe(\n take(1),\n map(\n ([\n caseDefinitionKeySource,\n caseDefinitionVersionTagSource,\n caseDefinitionKeyTarget,\n caseDefinitionVersionTagTarget,\n patches,\n ]) =>\n ({\n documentDefinitionNameSource: caseDefinitionKeySource,\n caseDefinitionIdSource: {\n key: caseDefinitionKeySource,\n versionTag: caseDefinitionVersionTagSource,\n },\n documentDefinitionNameTarget: caseDefinitionKeyTarget,\n caseDefinitionIdTarget: {\n key: caseDefinitionKeyTarget,\n versionTag: caseDefinitionVersionTagTarget,\n },\n patches,\n }) as DocumentMigrationConflictRequest\n ),\n switchMap(request =>\n this.caseMigrationService.migrate(request as DocumentMigrationConflictRequest)\n )\n )\n .subscribe({\n next: () => {\n this.errors$.next([]);\n this.globalNotificationService.showToast({\n title: this.translateService.instant('caseMigration.noErrors'),\n type: 'success',\n });\n },\n error: error => this.errors$.next([error.message]),\n });\n }\n\n /**\n * Compares tags rather than list position, so the latest version is found regardless of the order\n * the backend returns the versions of a key in.\n */\n private latestVersionTagOf(\n caseDefinitions: Array<CaseDefinition>,\n caseDefinitionKey: string | null\n ): string | null {\n return caseDefinitions\n .filter(caseDefinition => caseDefinition.caseDefinitionKey === caseDefinitionKey)\n .map(caseDefinition => caseDefinition.caseDefinitionVersionTag)\n .reduce((latest: string | null, current: string) => {\n if (latest === null) return current;\n if (!valid(current)) return latest;\n return !valid(latest) || gt(current, latest) ? current : latest;\n }, null);\n }\n\n private getAllCaseDefinitions(): Observable<Array<CaseDefinition>> {\n return this.getCaseDefinitionPage(0).pipe(\n expand(page =>\n page.content.length === 0 || (page.number + 1) * page.size >= page.totalElements\n ? EMPTY\n : this.getCaseDefinitionPage(page.number + 1)\n ),\n reduce(\n (caseDefinitions: Array<CaseDefinition>, page) => [...caseDefinitions, ...page.content],\n []\n )\n );\n }\n\n private getCaseDefinitionPage(page: number): Observable<Page<CaseDefinition>> {\n return this.documentService.getCaseDefinitionsManagement({\n sort: 'id.key,id.versionTag',\n allVersions: true,\n page,\n size: MAX_PAGE_SIZE,\n });\n }\n\n // Ordered on name because that is what the dropdown shows; the fetch itself is ordered on key\n // so that the versions of a case stay grouped and in version order.\n private toCaseDefinitionKeyItems(\n caseDefinitions: Array<CaseDefinition>,\n selectedCaseDefinitionKey: string | null = null\n ): Array<ListItem> {\n return [...new Map(caseDefinitions.map(item => [item.caseDefinitionKey, item])).values()]\n .map(\n caseDefinition =>\n ({\n caseDefinitionKey: caseDefinition.caseDefinitionKey,\n content: caseDefinition.name,\n selected: caseDefinition.caseDefinitionKey === selectedCaseDefinitionKey,\n }) as ListItem\n )\n .sort((left, right) => left.content.localeCompare(right.content));\n }\n}\n","<!--\n ~ Copyright 2015-2025 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<ng-container\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n sourceCaseDefinitionKeyItems: sourceCaseDefinitionKeyItems$ | async,\n sourceCaseDefinitionVersionTagItems: sourceCaseDefinitionVersionTagItems$ | async,\n targetCaseDefinitionKeyItems: targetCaseDefinitionKeyItems$ | async,\n targetCaseDefinitionVersionTagItems: targetCaseDefinitionVersionTagItems$ | async,\n sourceCaseDefinitionKeySelected: sourceCaseDefinitionKeySelected$ | async,\n sourceCaseDefinitionVersionTagSelected: sourceCaseDefinitionVersionTagSelected$ | async,\n targetCaseDefinitionKeySelected: targetCaseDefinitionKeySelected$ | async,\n targetCaseDefinitionVersionTagSelected: targetCaseDefinitionVersionTagSelected$ | async,\n patchItems: patchItems$ | async,\n errors: errors$ | async,\n showConfirmationModal: showConfirmationModal$,\n } as obs\"\n>\n <ng-container>\n <div class=\"pb-2\">\n <cds-notification\n [notificationObj]=\"{\n type: 'warning',\n title: 'caseMigration.warningBeta' | translate,\n showClose: false,\n }\"\n >\n </cds-notification>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.caseDefinition' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceCaseDefinitionKey' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.sourceCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.sourceCaseDefinitionKeyItems.isLoading\"\n (selected)=\"sourceCaseDefinitionKeySelected$.next($event.item.caseDefinitionKey)\"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceCaseDefinitionKeyItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceCaseDefinitionVersionTag' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"\n sourceCaseDefinitionVersionTagSelected$.next($event.item.caseDefinitionVersionTag)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceCaseDefinitionVersionTagItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetCaseDefinitionKey' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"targetCaseDefinitionKeySelected$.next($event.item.caseDefinitionKey)\"\n >\n <cds-dropdown-list\n [items]=\"obs.targetCaseDefinitionKeyItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetCaseDefinitionVersionTag' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"\n targetCaseDefinitionVersionTagSelected$.next($event.item.caseDefinitionVersionTag)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.targetCaseDefinitionVersionTagItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2 pb-2\">\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.patches' | translate }}</h2>\n </div>\n </div>\n <valtimo-carbon-multi-input\n type=\"keyValue\"\n (valueChange)=\"mappingValueChange($event)\"\n [title]=\"' '\"\n [tooltip]=\"'caseMigration.patchTooltip' | translate\"\n [defaultValues]=\"[]\"\n [keyColumnTitle]=\"'caseMigration.patchSource' | translate\"\n [valueColumnTitle]=\"'caseMigration.patchTarget' | translate\"\n [fullWidth]=\"true\"\n ></valtimo-carbon-multi-input>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2\">\n <div *ngIf=\"obs.errors?.length === 0\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n {{ 'caseMigration.noErrors' | translate }}\n </div>\n </div>\n <div *ngIf=\"obs.errors?.length >= 1\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.errors' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"pb-2\" *ngFor=\"let error of obs.errors\">\n <cds-notification\n [notificationObj]=\"{\n type: 'error',\n title: error,\n showClose: false,\n }\"\n >\n </cds-notification>\n </div>\n </div>\n </ng-container>\n\n <ng-container>\n <button\n class=\"mt-2 mb-2 mr-2\"\n cdsButton=\"secondary\"\n size=\"md\"\n (click)=\"checkPatches()\"\n [disabled]=\"\n !obs.sourceCaseDefinitionKeySelected ||\n !obs.sourceCaseDefinitionVersionTagSelected ||\n !obs.targetCaseDefinitionKeySelected ||\n !obs.targetCaseDefinitionVersionTagSelected\n \"\n >\n {{ 'caseMigration.checkPatches' | translate }}\n </button>\n <button\n class=\"mt-2 mb-2 ml-2\"\n cdsButton=\"primary\"\n size=\"md\"\n (click)=\"showConfirmationModal$.next(true)\"\n [disabled]=\"\n !obs.sourceCaseDefinitionKeySelected ||\n !obs.sourceCaseDefinitionVersionTagSelected ||\n !obs.targetCaseDefinitionKeySelected ||\n !obs.targetCaseDefinitionVersionTagSelected\n \"\n >\n {{ 'caseMigration.migrate' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"watsonHealthStackedMove\" size=\"16\"></svg>\n </button>\n </ng-container>\n\n <valtimo-confirmation-modal\n [showModalSubject$]=\"obs.showConfirmationModal\"\n (confirmEvent)=\"migrate()\"\n (cancelEvent)=\"showConfirmationModal$.next(false)\"\n cancelButtonType=\"ghost\"\n confirmButtonTextTranslationKey=\"caseMigration.modalTitle\"\n titleTranslationKey=\"caseMigration.modalTitle\"\n contentTranslationKey=\"caseMigration.modalContent\"\n ></valtimo-confirmation-modal>\n</ng-container>\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {ROLE_ADMIN} from '@valtimo/shared';\nimport {CaseMigrationComponent} from './components/case-migration-component/case-migration.component';\n\nconst routes: Routes = [\n {\n path: 'case-migration',\n component: CaseMigrationComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Case migration', roles: [ROLE_ADMIN]},\n },\n];\n\n@NgModule({\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\n/** @deprecated 'Case migration (beta)' is replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */\nexport class CaseMigrationRoutingModule {}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CaseMigrationRoutingModule} from './case-migration-routing.module';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n CarbonMultiInputModule,\n ConfirmationModalModule,\n RenderInPageHeaderDirective,\n TooltipIconModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {CaseMigrationComponent} from './components/case-migration-component/case-migration.component';\nimport {\n ButtonModule,\n DropdownModule,\n IconModule,\n InputModule,\n NotificationModule,\n} from 'carbon-components-angular';\n\n@NgModule({\n declarations: [CaseMigrationComponent],\n imports: [\n CommonModule,\n CaseMigrationRoutingModule,\n ReactiveFormsModule,\n WidgetModule,\n FormsModule,\n TranslateModule,\n DropdownModule,\n RenderInPageHeaderDirective,\n InputModule,\n TooltipIconModule,\n ButtonModule,\n IconModule,\n CarbonMultiInputModule,\n ConfirmationModalModule,\n NotificationModule,\n ],\n})\n/** @deprecated 'Case migration (beta)' is replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */\nexport class CaseMigrationModule {}\n","/*\n * Copyright 2015-2025 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 case-migration\n */\n\nexport * from './lib/models';\nexport * from './lib/services';\nexport * from './lib/case-migration.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2.CaseMigrationService","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;AAWH;MACa,oBAAoB,CAAA;IAG/B,WAAA,CACU,IAAgB,EACxB,aAA4B,EAAA;QADpB,IAAA,CAAA,IAAI,GAAJ,IAAI;QAGZ,IAAI,CAAC,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;IACvE;AAEO,IAAA,YAAY,CACjB,OAAyC,EAAA;AAEzC,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CACnB,CAAA,EAAG,IAAI,CAAC,kBAAkB,CAAA,qDAAA,CAAuD,EACjF,OAAO,CACR;IACH;AAEO,IAAA,OAAO,CAAC,OAAyC,EAAA;AACtD,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CACnB,CAAA,EAAG,IAAI,CAAC,kBAAkB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A,EAAA,IAAA,EAAA,mBAAmB,YAlB5B,YAAY;YACZ,0BAA0B;YAC1B,mBAAmB;YACnB,YAAY;YACZ,WAAW;YACX,eAAe;YACf,cAAc;YAEd,WAAW;YACX,iBAAiB;YACjB,YAAY;YACZ,UAAU;YACV,sBAAsB;YACtB,uBAAuB;YACvB,kBAAkB,CAAA,EAAA,CAAA,CAAA;;4FAIT,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBArB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,0BAA0B;wBAC1B,mBAAmB;wBACnB,YAAY;wBACZ,WAAW;wBACX,eAAe;wBACf,cAAc;wBACd,2BAA2B;wBAC3B,WAAW;wBACX,iBAAiB;wBACjB,YAAY;wBACZ,UAAU;wBACV,sBAAsB;wBACtB,uBAAuB;wBACvB,kBAAkB;AACnB,qBAAA;AACF,iBAAA;;;ACxDD;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
@@ -22,6 +22,7 @@ export declare class CaseMigrationComponent implements OnInit, OnDestroy {
22
22
  readonly patchItems$: BehaviorSubject<MultiInputValues>;
23
23
  readonly errors$: BehaviorSubject<string[]>;
24
24
  readonly showConfirmationModal$: BehaviorSubject<boolean>;
25
+ protected readonly CARBON_THEME = "g10";
25
26
  private readonly _subscriptions;
26
27
  constructor(documentService: DocumentService, caseMigrationService: CaseMigrationService, iconService: IconService, globalNotificationService: GlobalNotificationService, translateService: TranslateService);
27
28
  readonly caseDefinitions$: Observable<Array<CaseDefinition>>;
@@ -43,7 +44,6 @@ export declare class CaseMigrationComponent implements OnInit, OnDestroy {
43
44
  private getAllCaseDefinitions;
44
45
  private getCaseDefinitionPage;
45
46
  private toCaseDefinitionKeyItems;
46
- protected readonly CARBON_THEME = "g10";
47
47
  static ɵfac: i0.ɵɵFactoryDeclaration<CaseMigrationComponent, never>;
48
48
  static ɵcmp: i0.ɵɵComponentDeclaration<CaseMigrationComponent, "valtimo-case-migration", never, {}, {}, never, never, false, never>;
49
49
  }
@@ -1,8 +1,10 @@
1
1
  import { CaseDefinitionId } from '@valtimo/document';
2
+ /** @deprecated Part of 'Case migration (beta)', replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */
2
3
  interface LoadedValue<T> {
3
4
  isLoading: boolean;
4
5
  value?: T;
5
6
  }
7
+ /** @deprecated Part of 'Case migration (beta)', replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */
6
8
  interface DocumentMigrationConflictRequest {
7
9
  documentDefinitionNameSource: string;
8
10
  caseDefinitionIdSource: CaseDefinitionId;
@@ -10,6 +12,7 @@ interface DocumentMigrationConflictRequest {
10
12
  caseDefinitionIdTarget: CaseDefinitionId;
11
13
  patches: DocumentMigrationPatch[];
12
14
  }
15
+ /** @deprecated Part of 'Case migration (beta)', replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */
13
16
  interface DocumentMigrationConflictResponse {
14
17
  documentDefinitionNameSource: string;
15
18
  caseDefinitionIdSource: CaseDefinitionId;
@@ -19,6 +22,7 @@ interface DocumentMigrationConflictResponse {
19
22
  errors: Array<string>;
20
23
  documentCount: number;
21
24
  }
25
+ /** @deprecated Part of 'Case migration (beta)', replaced by the migration feature in `@valtimo/case-management`. Will be removed in a future release. */
22
26
  interface DocumentMigrationPatch {
23
27
  source: string;
24
28
  target?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/case-migration",
3
3
  "license": "EUPL-1.2",
4
- "version": "13.47.1",
4
+ "version": "13.49.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "19.2.25",
7
7
  "@angular/core": "19.2.25"