diff --git a/docs/Release Notes/Axway CLI 4.0.4.md b/docs/Release Notes/Axway CLI 4.0.4.md new file mode 100644 index 00000000..a116820a --- /dev/null +++ b/docs/Release Notes/Axway CLI 4.0.4.md @@ -0,0 +1,74 @@ +# Axway CLI 4.0.4 + +## July 28, 2025 + +This is a patch release to include a fix to honor the cookie changes on platform. + +### Installation + +``` +npm i -g axway@4.0.4 +``` + +### axway + +- **v4.0.4** - 07/28/2025 + + - chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + +### amplify-cli-utils + +- **v6.0.5** - 07/28/2025 + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + +### amplify-config + +- **v5.0.5** - 07/28/2025 + + - chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + +### amplify-request + +- **v4.0.5** - 07/28/2025 + + - chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + +### amplify-sdk + +- **v4.0.5** - 07/28/2025 + + - chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + +### amplify-utils + +- **v2.0.5** - 07/28/2025 + + - chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + +### axway-cli-auth + +- **v4.0.5** - 07/28/2025 + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + +### axway-cli-oum + +- **v3.0.5** - 07/28/2025 + + - chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + +### axway-cli-pm + +- **v5.0.5** - 07/28/2025 + + - chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) diff --git a/packages/amplify-cli-utils/CHANGELOG.md b/packages/amplify-cli-utils/CHANGELOG.md index 8984b245..75dba4b9 100644 --- a/packages/amplify-cli-utils/CHANGELOG.md +++ b/packages/amplify-cli-utils/CHANGELOG.md @@ -1,3 +1,8 @@ +# v6.0.5 (July 28, 2025) + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + # v6.0.4 (July 28, 2025) - chore: Fixed Issue with "axway org user list" command. diff --git a/packages/amplify-cli-utils/package.json b/packages/amplify-cli-utils/package.json index 88e2e95c..9be4908f 100644 --- a/packages/amplify-cli-utils/package.json +++ b/packages/amplify-cli-utils/package.json @@ -1,6 +1,6 @@ { "name": "@axway/amplify-cli-utils", - "version": "6.0.4", + "version": "6.0.5", "publishConfig": { "access": "public" }, @@ -24,9 +24,9 @@ "test": "gulp test" }, "dependencies": { - "@axway/amplify-config": "^5.0.4", - "@axway/amplify-request": "^4.0.4", - "@axway/amplify-sdk": "^4.0.4", + "@axway/amplify-config": "^5.0.5", + "@axway/amplify-request": "^4.0.5", + "@axway/amplify-sdk": "^4.0.5", "boxen": "^8.0.1", "check-kit": "^4.0.0", "cli-kit": "^2.1.1", diff --git a/packages/amplify-config/CHANGELOG.md b/packages/amplify-config/CHANGELOG.md index 6dac2c26..03e18b3d 100644 --- a/packages/amplify-config/CHANGELOG.md +++ b/packages/amplify-config/CHANGELOG.md @@ -1,3 +1,8 @@ +# v5.0.5 (July 28, 2025) + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + # v5.0.4 (July 28, 2025) - chore: Fixed Issue with "axway org user list" command. diff --git a/packages/amplify-config/package.json b/packages/amplify-config/package.json index 7b18d76a..9885d00c 100644 --- a/packages/amplify-config/package.json +++ b/packages/amplify-config/package.json @@ -1,6 +1,6 @@ { "name": "@axway/amplify-config", - "version": "5.0.4", + "version": "5.0.5", "publishConfig": { "access": "public" }, @@ -24,7 +24,7 @@ "test": "gulp test" }, "dependencies": { - "@axway/amplify-utils": "^2.0.4", + "@axway/amplify-utils": "^2.0.5", "config-kit": "^2.1.0", "fs-extra": "^10.1.0", "source-map-support": "^0.5.21" diff --git a/packages/amplify-request/CHANGELOG.md b/packages/amplify-request/CHANGELOG.md index abd8bbf4..88cdcc2e 100644 --- a/packages/amplify-request/CHANGELOG.md +++ b/packages/amplify-request/CHANGELOG.md @@ -1,3 +1,8 @@ +# v4.0.5 (July 28, 2025) + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + # v4.0.4 (July 28, 2025) - chore: Fixed Issue with "axway org user list" command. diff --git a/packages/amplify-request/package.json b/packages/amplify-request/package.json index c21a7971..be266f25 100644 --- a/packages/amplify-request/package.json +++ b/packages/amplify-request/package.json @@ -1,6 +1,6 @@ { "name": "@axway/amplify-request", - "version": "4.0.4", + "version": "4.0.5", "publishConfig": { "access": "public" }, @@ -28,7 +28,7 @@ "test": "gulp test" }, "dependencies": { - "@axway/amplify-utils": "^2.0.4", + "@axway/amplify-utils": "^2.0.5", "got": "^11.8.5", "http-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.1", diff --git a/packages/amplify-sdk/CHANGELOG.md b/packages/amplify-sdk/CHANGELOG.md index f0f06af2..1de1d612 100644 --- a/packages/amplify-sdk/CHANGELOG.md +++ b/packages/amplify-sdk/CHANGELOG.md @@ -1,3 +1,8 @@ +# v4.0.5 (July 28, 2025) + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + # v4.0.4 (July 28, 2025) - chore: Fixed Issue with "axway org user list" command. diff --git a/packages/amplify-sdk/package.json b/packages/amplify-sdk/package.json index e45df1d2..1cc19dc3 100644 --- a/packages/amplify-sdk/package.json +++ b/packages/amplify-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@axway/amplify-sdk", - "version": "4.0.4", + "version": "4.0.5", "publishConfig": { "access": "public" }, @@ -23,8 +23,8 @@ "test": "gulp test" }, "dependencies": { - "@axway/amplify-request": "^4.0.4", - "@axway/amplify-utils": "^2.0.4", + "@axway/amplify-request": "^4.0.5", + "@axway/amplify-utils": "^2.0.5", "ci-info": "^3.3.1", "ejs": "^3.1.10", "fs-extra": "^10.1.0", diff --git a/packages/amplify-sdk/src/amplify-sdk.js b/packages/amplify-sdk/src/amplify-sdk.js index a4462b8a..7551c654 100644 --- a/packages/amplify-sdk/src/amplify-sdk.js +++ b/packages/amplify-sdk/src/amplify-sdk.js @@ -1232,7 +1232,12 @@ export default class AmplifySDK { account, { errorMsg: 'Failed to get roles' } ); - + if (params.team) { + return roles.filter(r => r.team); + } + if (params.client) { + return roles.filter(r => r.client); + } let org = params.org || account.org?.guid; if (org) { org = await this.org.find(account, org); @@ -1248,18 +1253,9 @@ export default class AmplifySDK { }); } - if (params.client) { - roles = roles.filter(r => r.client); - } - if (params.default) { - roles = roles.filter(r => r.default); - } - - if (params.team) { - roles = roles.filter(r => r.team); + return roles.filter(r => r.default); } - return roles; }, diff --git a/packages/amplify-utils/CHANGELOG.md b/packages/amplify-utils/CHANGELOG.md index 58284033..758ab093 100644 --- a/packages/amplify-utils/CHANGELOG.md +++ b/packages/amplify-utils/CHANGELOG.md @@ -1,3 +1,8 @@ +# v2.0.5 (July 28, 2025) + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + # v2.0.4 (July 28, 2025) - chore: Fixed Issue with "axway org user list" command. diff --git a/packages/amplify-utils/package.json b/packages/amplify-utils/package.json index 292990fd..241af4a9 100644 --- a/packages/amplify-utils/package.json +++ b/packages/amplify-utils/package.json @@ -1,6 +1,6 @@ { "name": "@axway/amplify-utils", - "version": "2.0.4", + "version": "2.0.5", "publishConfig": { "access": "public" }, diff --git a/packages/axway-cli-auth/CHANGELOG.md b/packages/axway-cli-auth/CHANGELOG.md index 97fbd411..3426a9a4 100644 --- a/packages/axway-cli-auth/CHANGELOG.md +++ b/packages/axway-cli-auth/CHANGELOG.md @@ -1,3 +1,8 @@ +# v4.0.5 (July 28, 2025) + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + # v4.0.4 (July 28, 2025) - chore: Fixed Issue with "axway org user list" command. diff --git a/packages/axway-cli-auth/package.json b/packages/axway-cli-auth/package.json index bfb3a8bb..586a1c5a 100644 --- a/packages/axway-cli-auth/package.json +++ b/packages/axway-cli-auth/package.json @@ -1,6 +1,6 @@ { "name": "@axway/axway-cli-auth", - "version": "4.0.4", + "version": "4.0.5", "publishConfig": { "access": "public" }, @@ -23,8 +23,8 @@ "test": "gulp test" }, "dependencies": { - "@axway/amplify-cli-utils": "^6.0.4", - "@axway/amplify-utils": "^2.0.4", + "@axway/amplify-cli-utils": "^6.0.5", + "@axway/amplify-utils": "^2.0.5", "cli-kit": "github:kasuvy/cli-kit#APIGOV-29723", "enquirer": "^2.3.6", "pretty-ms": "^7.0.1", diff --git a/packages/axway-cli-oum/CHANGELOG.md b/packages/axway-cli-oum/CHANGELOG.md index 420314c2..2f00f1b0 100644 --- a/packages/axway-cli-oum/CHANGELOG.md +++ b/packages/axway-cli-oum/CHANGELOG.md @@ -1,3 +1,8 @@ +# v3.0.5 (July 28, 2025) + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + # v3.0.4 (July 28, 2025) - chore: Fixed Issue with "axway org user list" command. diff --git a/packages/axway-cli-oum/package.json b/packages/axway-cli-oum/package.json index d810874f..b0895e29 100644 --- a/packages/axway-cli-oum/package.json +++ b/packages/axway-cli-oum/package.json @@ -1,6 +1,6 @@ { "name": "@axway/axway-cli-oum", - "version": "3.0.4", + "version": "3.0.5", "publishConfig": { "access": "public" }, @@ -22,7 +22,7 @@ "test": "gulp test" }, "dependencies": { - "@axway/amplify-cli-utils": "^6.0.4", + "@axway/amplify-cli-utils": "^6.0.5", "cli-kit": "^2.1.1", "open": "^8.4.0", "snooplogg": "^5.1.0", diff --git a/packages/axway-cli-pm/CHANGELOG.md b/packages/axway-cli-pm/CHANGELOG.md index 2dd161e2..ac975c17 100644 --- a/packages/axway-cli-pm/CHANGELOG.md +++ b/packages/axway-cli-pm/CHANGELOG.md @@ -1,3 +1,8 @@ +# v5.0.5 (July 28, 2025) + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + # v5.0.4 (July 28, 2025) - chore: Fixed Issue with "axway org user list" command. diff --git a/packages/axway-cli-pm/package.json b/packages/axway-cli-pm/package.json index 8fef7533..3e152e7f 100644 --- a/packages/axway-cli-pm/package.json +++ b/packages/axway-cli-pm/package.json @@ -1,6 +1,6 @@ { "name": "@axway/axway-cli-pm", - "version": "5.0.4", + "version": "5.0.5", "publishConfig": { "access": "public" }, @@ -22,8 +22,8 @@ "test": "gulp test" }, "dependencies": { - "@axway/amplify-cli-utils": "^6.0.4", - "@axway/amplify-utils": "^2.0.4", + "@axway/amplify-cli-utils": "^6.0.5", + "@axway/amplify-utils": "^2.0.5", "cli-kit": "^2.1.1", "cross-spawn": "^7.0.3", "fs-extra": "^10.1.0", diff --git a/packages/axway-cli/CHANGELOG.md b/packages/axway-cli/CHANGELOG.md index 46c3c073..41c08bfd 100644 --- a/packages/axway-cli/CHANGELOG.md +++ b/packages/axway-cli/CHANGELOG.md @@ -1,3 +1,8 @@ +# v4.0.4 (July 28, 2025) + +- chore: Fixed Issue with "axway team user add" command. + ([APIGOV-30889](https://jira.axway.com/browse/APIGOV-30889)) + # v4.0.3 (July 28, 2025) - chore: Fixed Issue with "axway org user list" command. diff --git a/packages/axway-cli/package.json b/packages/axway-cli/package.json index f3b5a841..75281360 100644 --- a/packages/axway-cli/package.json +++ b/packages/axway-cli/package.json @@ -1,6 +1,6 @@ { "name": "axway", - "version": "4.0.3", + "version": "4.0.4", "publishConfig": { "access": "public" }, @@ -28,11 +28,11 @@ "test": "gulp test" }, "dependencies": { - "@axway/amplify-cli-utils": "^6.0.4", - "@axway/amplify-utils": "^2.0.4", - "@axway/axway-cli-auth": "^4.0.4", - "@axway/axway-cli-oum": "^3.0.4", - "@axway/axway-cli-pm": "^5.0.4", + "@axway/amplify-cli-utils": "^6.0.5", + "@axway/amplify-utils": "^2.0.5", + "@axway/axway-cli-auth": "^4.0.5", + "@axway/axway-cli-oum": "^3.0.5", + "@axway/axway-cli-pm": "^5.0.5", "boxen": "^8.0.1", "check-kit": "^4.0.0", "cli-kit": "^2.1.1",