diff --git a/e2e/playwright/search/src/tests/search-filters-tags.e2e.ts b/e2e/playwright/search/src/tests/search-filters-tags.e2e.ts index 34eee9dd2..ec572358d 100644 --- a/e2e/playwright/search/src/tests/search-filters-tags.e2e.ts +++ b/e2e/playwright/search/src/tests/search-filters-tags.e2e.ts @@ -24,7 +24,7 @@ import { expect } from '@playwright/test'; import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, TagsApi, FileActionsApi } from '@alfresco/aca-playwright-shared'; -import { TagEntry, TagPaging } from '@alfresco/js-api'; +import { TagPaging } from '@alfresco/js-api'; test.describe('Search - Filters - Tags', () => { let nodesApi: NodesApi; @@ -33,7 +33,7 @@ test.describe('Search - Filters - Tags', () => { let fileActionsApi: FileActionsApi; let file1Id: string; let file2Id: string; - let tagEntries: TagEntry[]; + let tagPaging: TagPaging; const random = Utils.random(); const username = `user1-${random}`; @@ -60,7 +60,7 @@ test.describe('Search - Filters - Tags', () => { file2Id = node2.entry.id; await fileActionsApi.waitForNodes(file1, { expect: 1 }); await fileActionsApi.waitForNodes(file2, { expect: 1 }); - tagEntries = await tagsApiAdmin.createTags(tags); + tagPaging = (await tagsApiAdmin.createTags(tags)) as TagPaging; await tagsApiAdmin.assignTagToNode(file1Id, tags[0]); await tagsApiAdmin.assignTagToNode(file2Id, tags[1]); } catch (error) { @@ -70,18 +70,18 @@ test.describe('Search - Filters - Tags', () => { test.afterAll(async () => { await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed'); - await tagsApiAdmin.deleteTags([`${(tagEntries as TagPaging).list.entries[0].entry.id}`]); - await tagsApiAdmin.deleteTags([`${(tagEntries as TagPaging).list.entries[1].entry.id}`]); + await tagsApiAdmin.deleteTags([`${tagPaging.list.entries[0].entry.id}`]); + await tagsApiAdmin.deleteTags([`${tagPaging.list.entries[1].entry.id}`]); }); test('[XAT-5581] user able to search with tags facet', async ({ searchPage }) => { await searchPage.searchWithin(random, 'files'); - await searchPage.searchFiltersTags.filterByTag(searchPage, `${(tagEntries as TagPaging).list.entries[0].entry.tag}`); + await searchPage.searchFiltersTags.filterByTag(searchPage, `${tagPaging.list.entries[0].entry.tag}`); await expect(searchPage.dataTable.getRowByName(file1)).toBeVisible(); await expect(searchPage.dataTable.getRowByName(file2)).toBeHidden(); - await searchPage.searchFiltersTags.filterByTag(searchPage, `${(tagEntries as TagPaging).list.entries[1].entry.tag}`); + await searchPage.searchFiltersTags.filterByTag(searchPage, `${tagPaging.list.entries[1].entry.tag}`); await expect(searchPage.dataTable.getRowByName(file1)).toBeVisible(); await expect(searchPage.dataTable.getRowByName(file2)).toBeVisible(); diff --git a/package-lock.json b/package-lock.json index 7c0f854a5..7033a4a2b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,11 +9,11 @@ "version": "7.0.0", "license": "LGPL-3.0", "dependencies": { - "@alfresco/adf-content-services": "8.1.0-15070800207", - "@alfresco/adf-core": "8.1.0-15070800207", - "@alfresco/adf-extensions": "8.1.0-15070800207", - "@alfresco/eslint-plugin-eslint-angular": "8.1.0-15070800207", - "@alfresco/js-api": "9.1.0-15070800207", + "@alfresco/adf-content-services": "8.1.0-15154809688", + "@alfresco/adf-core": "8.1.0-15154809688", + "@alfresco/adf-extensions": "8.1.0-15154809688", + "@alfresco/eslint-plugin-eslint-angular": "8.1.0-15154809688", + "@alfresco/js-api": "9.1.0-15154809688", "@angular/animations": "18.2.9", "@angular/cdk": "18.2.9", "@angular/common": "18.2.9", @@ -46,7 +46,7 @@ "zone.js": "0.14.10" }, "devDependencies": { - "@alfresco/adf-cli": "8.1.0-15070800207", + "@alfresco/adf-cli": "8.1.0-15154809688", "@angular-devkit/build-angular": "18.2.9", "@angular-devkit/core": "18.2.9", "@angular-devkit/schematics": "18.2.9", @@ -113,13 +113,13 @@ "license": "MIT" }, "node_modules/@alfresco/adf-cli": { - "version": "8.1.0-15070800207", - "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-8.1.0-15070800207.tgz", - "integrity": "sha512-3FBj8nAISgBXUvUNV+5wtWl8YSX8BilguudWSVYqRRAWJO1alK/b+fpRX/JdimDuM47dPrw0gw6FhBpXlp+AcQ==", + "version": "8.1.0-15154809688", + "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-8.1.0-15154809688.tgz", + "integrity": "sha512-Cj2EtF0cG6VJaRdCZKEtLVelILInWe24j8Rj46wc3HnVyHlbgSWl72iV0BI70h86RX1483BgA+io+zv7VRuhsQ==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@alfresco/js-api": ">=9.1.0-15070800207", + "@alfresco/js-api": ">=9.1.0-15154809688", "commander": "^6.2.1", "ejs": "^3.1.9", "license-checker": "^25.0.1", @@ -154,16 +154,16 @@ "license": "0BSD" }, "node_modules/@alfresco/adf-content-services": { - "version": "8.1.0-15070800207", - "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-8.1.0-15070800207.tgz", - "integrity": "sha512-5yINnwPZ2Ml8fZB869FPTJhnUGWIbBjS1VIUelVkBx+i01b2K7YcfU8FR5jGaoIsbBj1l2rW4LcSxVKRbwMdGw==", + "version": "8.1.0-15154809688", + "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-8.1.0-15154809688.tgz", + "integrity": "sha512-elJ2LGTJrxRw4I/tLdMjH8RCjMrZPe0lVsG+wPEDmb1zXdyvr26g+sDa6dudUienlQiDyCbqdY2p0+u7sI1mMw==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-core": ">=8.1.0-15070800207", - "@alfresco/js-api": ">=9.1.0-15070800207", + "@alfresco/adf-core": ">=8.1.0-15154809688", + "@alfresco/js-api": ">=9.1.0-15154809688", "@angular/animations": ">=14.1.3", "@angular/cdk": ">=14.1.2", "@angular/common": ">=14.1.3", @@ -178,9 +178,9 @@ } }, "node_modules/@alfresco/adf-core": { - "version": "8.1.0-15070800207", - "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-8.1.0-15070800207.tgz", - "integrity": "sha512-nq+ZtIi5VozS+fWCXJlAe4YC1yTtMizzZh3/tshiPWg+CRvqDlFTGOesdkAGWFjZU6uyw++ebSgGanfDJ0Dvvg==", + "version": "8.1.0-15154809688", + "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-8.1.0-15154809688.tgz", + "integrity": "sha512-baAMtThpvDJkkS9CUtVjZUDrXVrY724dIhR3vbdo1vPwB1nMvSl4QZGHB8RQnfQZiW4ZLYEACBb6EJ5AcfhgaQ==", "license": "Apache-2.0", "dependencies": { "angular-oauth2-oidc": "17.0.2", @@ -191,8 +191,8 @@ "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-extensions": ">=8.1.0-15070800207", - "@alfresco/js-api": ">=9.1.0-15070800207", + "@alfresco/adf-extensions": ">=8.1.0-15154809688", + "@alfresco/js-api": ">=9.1.0-15154809688", "@angular/animations": ">=16.0.0", "@angular/cdk": ">=16.0.0", "@angular/common": ">=16.0.0", @@ -210,29 +210,29 @@ } }, "node_modules/@alfresco/adf-extensions": { - "version": "8.1.0-15070800207", - "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-8.1.0-15070800207.tgz", - "integrity": "sha512-Sna0RCvBVotxnjQZ8bTqW7edwlSDSXy84gaNHWNZXheE7KpuAr7pcXjVDMNSxeF2qYjqj0KuAFGmmrtRz2IyKw==", + "version": "8.1.0-15154809688", + "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-8.1.0-15154809688.tgz", + "integrity": "sha512-sPEwoL4o2dO7a46xORiiRSWYVDDzETYUbaU4vKGQ+yQ8gTNwvvi3t6Kqc/fsn753wxLTtf1TTsAndOfccTFMjQ==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/js-api": ">=9.1.0-15070800207", + "@alfresco/js-api": ">=9.1.0-15154809688", "@angular/common": ">=14.1.3", "@angular/core": ">=14.1.3" } }, "node_modules/@alfresco/eslint-plugin-eslint-angular": { - "version": "8.1.0-15070800207", - "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-8.1.0-15070800207.tgz", - "integrity": "sha512-7nwcWLsmP2oddceeU+jDtnsA0oMav6JxvyJQM/aj0cgDWQoEJvypkLeARtbpTnmIKQv/E6/PEvMVZRzCZvCqXQ==", + "version": "8.1.0-15154809688", + "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-8.1.0-15154809688.tgz", + "integrity": "sha512-q8AO/OJujVV2X0qpG9+lcZSSoKvW4AJ8qXTa+tZt4Gp3QiHH+xNSW+qiGI4+yvA9ewB1Psw4uBvd1BPNPpzvFw==", "license": "Apache-2.0" }, "node_modules/@alfresco/js-api": { - "version": "9.1.0-15070800207", - "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-9.1.0-15070800207.tgz", - "integrity": "sha512-cvFpERT4xkn9zEGMUM1vLwnXUvdGv4Tg+2KM/R1OGhO7H6a//L6tHRll0Exz1pXeFLCZ++7cpHq7zEgF2K3SAw==", + "version": "9.1.0-15154809688", + "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-9.1.0-15154809688.tgz", + "integrity": "sha512-GhgJA09ZPMDswRbgYyr/AcdN1ZAw03POEfvbYb4MOlpwXlW2Z7FnN+Cbcgibd4RvROpDU8UpR5uiYgXhVRBg0A==", "license": "Apache-2.0", "dependencies": { "event-emitter": "^0.3.5", @@ -8653,31 +8653,45 @@ } }, "node_modules/@ts-morph/common": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.26.1.tgz", - "integrity": "sha512-Sn28TGl/4cFpcM+jwsH1wLncYq3FtN/BIpem+HOygfBWPT5pAeS5dB4VFVzV8FbnOKHpDLZmvAl4AjPEev5idA==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.27.0.tgz", + "integrity": "sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==", "license": "MIT", "peer": true, "dependencies": { - "fast-glob": "^3.3.2", - "minimatch": "^9.0.4", + "fast-glob": "^3.3.3", + "minimatch": "^10.0.1", "path-browserify": "^1.0.1" } }, - "node_modules/@ts-morph/common/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "node_modules/@ts-morph/common/node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/@ts-morph/common/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "license": "ISC", "peer": true, "dependencies": { - "brace-expansion": "^2.0.1" + "is-glob": "^4.0.1" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">= 6" } }, "node_modules/@tsconfig/node10": { @@ -16182,6 +16196,7 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", @@ -16198,6 +16213,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, "license": "ISC", "dependencies": { "is-glob": "^4.0.1" @@ -28034,13 +28050,13 @@ } }, "node_modules/ts-morph": { - "version": "25.0.1", - "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-25.0.1.tgz", - "integrity": "sha512-QJEiTdnz1YjrB3JFhd626gX4rKHDLSjSVMvGGG4v7ONc3RBwa0Eei98G9AT9uNFDMtV54JyuXsFeC+OH0n6bXQ==", + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-26.0.0.tgz", + "integrity": "sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==", "license": "MIT", "peer": true, "dependencies": { - "@ts-morph/common": "~0.26.0", + "@ts-morph/common": "~0.27.0", "code-block-writer": "^13.0.3" } }, diff --git a/package.json b/package.json index 0711a08dc..95f3b7593 100644 --- a/package.json +++ b/package.json @@ -30,11 +30,11 @@ }, "private": true, "dependencies": { - "@alfresco/adf-content-services": "8.1.0-15070800207", - "@alfresco/adf-core": "8.1.0-15070800207", - "@alfresco/adf-extensions": "8.1.0-15070800207", - "@alfresco/eslint-plugin-eslint-angular": "8.1.0-15070800207", - "@alfresco/js-api": "9.1.0-15070800207", + "@alfresco/adf-content-services": "8.1.0-15154809688", + "@alfresco/adf-core": "8.1.0-15154809688", + "@alfresco/adf-extensions": "8.1.0-15154809688", + "@alfresco/eslint-plugin-eslint-angular": "8.1.0-15154809688", + "@alfresco/js-api": "9.1.0-15154809688", "@angular/animations": "18.2.9", "@angular/cdk": "18.2.9", "@angular/common": "18.2.9", @@ -67,7 +67,7 @@ "zone.js": "0.14.10" }, "devDependencies": { - "@alfresco/adf-cli": "8.1.0-15070800207", + "@alfresco/adf-cli": "8.1.0-15154809688", "@angular-devkit/build-angular": "18.2.9", "@angular-devkit/core": "18.2.9", "@angular-devkit/schematics": "18.2.9", diff --git a/projects/aca-playwright-shared/src/api/tags-api.ts b/projects/aca-playwright-shared/src/api/tags-api.ts index aafff8f6c..5fa25ccc7 100644 --- a/projects/aca-playwright-shared/src/api/tags-api.ts +++ b/projects/aca-playwright-shared/src/api/tags-api.ts @@ -38,7 +38,7 @@ export class TagsApi { return classObj; } - async createTags(tags: TagBody[]): Promise { + async createTags(tags: TagBody[]): Promise { try { return this.apiService.tagsApi.createTags(tags); } catch (error) {