diff --git a/.github/workflows/push_branches.workflow.yaml b/.github/workflows/push_branches.workflow.yaml index c7cd96c34..921582f4c 100644 --- a/.github/workflows/push_branches.workflow.yaml +++ b/.github/workflows/push_branches.workflow.yaml @@ -45,11 +45,12 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - uses: convictional/trigger-workflow-and-wait@v1.6.3 + - name: Deploy the documentation + uses: convictional/trigger-workflow-and-wait@v1.6.3 with: owner: kuzzleio repo: documentation github_token: ${{ secrets.ACCESS_TOKEN_CI }} workflow_file_name: child_repo.workflow.yml ref: ${{ github.ref_name == 'master' && 'master' || 'develop' }} - client_payload: '{"repo_name":"sdk-javascript","branch":"${{ github.ref_name }}","version":"1"}' + client_payload: '{"repo_name":"sdk-javascript","branch":"${{ github.ref_name }}","version":"7"}' diff --git a/CHANGELOG.md b/CHANGELOG.md index 384115d29..c07a9c879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,23 @@ -## [7.11.1](https://github.com/kuzzleio/sdk-javascript/compare/v7.11.0...v7.11.1) (2023-11-15) +## [7.11.2-beta.1](https://github.com/kuzzleio/sdk-javascript/compare/v7.11.1...v7.11.2-beta.1) (2023-12-05) + + +### Bug Fixes + +* (ProfilePolicy.ts) restrictedTo was mistyped ([#733](https://github.com/kuzzleio/sdk-javascript/issues/733)) ([5770997](https://github.com/kuzzleio/sdk-javascript/commit/57709975d549441118d7cca420bf3b08f96a4322)) +* **documentation:** update the version of the branch to deploy ([9980995](https://github.com/kuzzleio/sdk-javascript/commit/99809952038b0c4c1050acdc499e35f8e52d3e37)) + +## [7.11.1-beta.1](https://github.com/kuzzleio/sdk-javascript/compare/v7.11.0...v7.11.1-beta.1) (2023-12-05) ### Bug Fixes +* (ProfilePolicy.ts) restrictedTo was mistyped ([#733](https://github.com/kuzzleio/sdk-javascript/issues/733)) ([5770997](https://github.com/kuzzleio/sdk-javascript/commit/57709975d549441118d7cca420bf3b08f96a4322)) +* **documentation:** update the version of the branch to deploy ([9980995](https://github.com/kuzzleio/sdk-javascript/commit/99809952038b0c4c1050acdc499e35f8e52d3e37)) +* **http:** fix empty raw responses parsed as json ([9becea5](https://github.com/kuzzleio/sdk-javascript/commit/9becea5761bee0b36d07ce81542d478325ab2ef2)) + +## [7.11.1](https://github.com/kuzzleio/sdk-javascript/compare/v7.11.0...v7.11.1) (2023-11-15) + +### Bug Fixes * **http:** fix empty raw responses parsed as json ([9becea5](https://github.com/kuzzleio/sdk-javascript/commit/9becea5761bee0b36d07ce81542d478325ab2ef2)) # [7.11.0](https://github.com/kuzzleio/sdk-javascript/compare/v7.10.8...v7.11.0) (2023-08-30) diff --git a/package-lock.json b/package-lock.json index 61273b922..7bef30399 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "kuzzle-sdk", - "version": "7.11.1", + "version": "7.11.2-beta.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "kuzzle-sdk", - "version": "7.11.1", + "version": "7.11.2-beta.1", "license": "Apache-2.0", "dependencies": { "min-req-promise": "^1.0.1", diff --git a/package.json b/package.json index ff513331a..4ef544c42 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kuzzle-sdk", - "version": "7.11.1", + "version": "7.11.2-beta.1", "description": "Official Javascript SDK for Kuzzle", "author": "The Kuzzle Team ", "repository": { diff --git a/src/types/ProfilePolicy.ts b/src/types/ProfilePolicy.ts index 89ada2e60..45986ff1e 100644 --- a/src/types/ProfilePolicy.ts +++ b/src/types/ProfilePolicy.ts @@ -24,17 +24,19 @@ export type ProfilePolicy = { /** * Optional array of restrictions on which the rights are gonne be applied */ - restrictedTo?: { - /** - * Index name. - * Rights will only be applied on this index. - */ - index: string; + restrictedTo?: [ + { + /** + * Index name. + * Rights will only be applied on this index. + */ + index: string; - /** - * Collection names. - * Rights will only be applied on those collections. - */ - collections?: Array; - }; + /** + * Collection names. + * Rights will only be applied on those collections. + */ + collections?: Array; + } + ]; };