diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml new file mode 100644 index 00000000..2e8b2b82 --- /dev/null +++ b/.github/workflows/test-python.yml @@ -0,0 +1,21 @@ +name: Run Python Tests +on: [push] +jobs: + unittest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: | + npm install + npm run generate.python + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + working-directory: ./clients/python + - name: Run tests + run: | + cd ./clients/python + pip install -r requirements.txt -r test-requirements.txt + python -m unittest diff --git a/.gitignore b/.gitignore index 227c6e8d..0f97bb91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ clients/go/ -clients/python/ + +clients/python/* +!clients/python/test/test_locales_api.py +!clients/python/test/test_uploads_api.py clients/ruby/.* clients/ruby/Gemfile* diff --git a/clients/cli/CHANGELOG.md b/clients/cli/CHANGELOG.md index 26e2a25e..07e96563 100644 --- a/clients/cli/CHANGELOG.md +++ b/clients/cli/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.13.0](https://github.com/phrase/openapi/compare/cli-v2.12.0...cli-v2.13.0) (2023-10-13) + + +### Features + +* **API:** Implement figma attachments endpoints ([#415](https://github.com/phrase/openapi/issues/415)) ([970e612](https://github.com/phrase/openapi/commit/970e612fda620ca882a221ef541036b8d200b675)) + ## [2.12.0](https://github.com/phrase/openapi/compare/cli-v2.11.0...cli-v2.12.0) (2023-09-14) diff --git a/clients/cli/go.mod b/clients/cli/go.mod index 210fdc1c..d10e7dae 100644 --- a/clients/cli/go.mod +++ b/clients/cli/go.mod @@ -9,7 +9,7 @@ require ( github.com/daviddengcn/go-colortext v1.0.0 github.com/jpillora/backoff v1.0.0 github.com/mitchellh/mapstructure v1.4.0 - github.com/phrase/phrase-go/v2 v2.14.0 // x-release-please-version + github.com/phrase/phrase-go/v2 v2.15.0 // x-release-please-version github.com/spf13/cobra v1.0.0 github.com/spf13/viper v1.7.1 gopkg.in/yaml.v2 v2.4.0 diff --git a/clients/cli/go.sum b/clients/cli/go.sum index 22f29a71..c1c561eb 100644 --- a/clients/cli/go.sum +++ b/clients/cli/go.sum @@ -218,10 +218,8 @@ github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FI github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM= github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= -github.com/phrase/phrase-go/v2 v2.13.0 h1:FypJdgcrD1z/cV0wHqZEObovwH6k0neG2L3BT3ixGi8= -github.com/phrase/phrase-go/v2 v2.13.0/go.mod h1:N1ou4nnB9ak8aAWOH7x25Xhzw8FmFeBRhSGq5A0CY2o= -github.com/phrase/phrase-go/v2 v2.14.0 h1:l81OsZIgxx69YyUgOA+RIbYMk+ukiQ/vbJMYLqe+z+A= -github.com/phrase/phrase-go/v2 v2.14.0/go.mod h1:N1ou4nnB9ak8aAWOH7x25Xhzw8FmFeBRhSGq5A0CY2o= +github.com/phrase/phrase-go/v2 v2.15.0 h1:9v9B6p8z7yw5OYpAIOajHcD+tQMJyrBT79Dimxdk10A= +github.com/phrase/phrase-go/v2 v2.15.0/go.mod h1:N1ou4nnB9ak8aAWOH7x25Xhzw8FmFeBRhSGq5A0CY2o= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= diff --git a/clients/go/CHANGELOG.md b/clients/go/CHANGELOG.md index 457f87e6..52b3121a 100644 --- a/clients/go/CHANGELOG.md +++ b/clients/go/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.15.0](https://github.com/phrase/openapi/compare/go-v2.14.0...go-v2.15.0) (2023-10-13) + + +### Features + +* **API:** Implement figma attachments endpoints ([#415](https://github.com/phrase/openapi/issues/415)) ([970e612](https://github.com/phrase/openapi/commit/970e612fda620ca882a221ef541036b8d200b675)) + ## [2.14.0](https://github.com/phrase/openapi/compare/go-v2.13.0...go-v2.14.0) (2023-09-12) diff --git a/clients/java/CHANGELOG.md b/clients/java/CHANGELOG.md index db3c2438..3f9788fa 100644 --- a/clients/java/CHANGELOG.md +++ b/clients/java/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.14.0](https://github.com/phrase/openapi/compare/java-v1.13.0...java-v1.14.0) (2023-10-13) + + +### Features + +* **API:** Implement figma attachments endpoints ([#415](https://github.com/phrase/openapi/issues/415)) ([970e612](https://github.com/phrase/openapi/commit/970e612fda620ca882a221ef541036b8d200b675)) + ## [1.13.0](https://github.com/phrase/openapi/compare/java-v1.12.0...java-v1.13.0) (2023-09-12) diff --git a/clients/php/CHANGELOG.md b/clients/php/CHANGELOG.md index 352ab119..d3974eae 100644 --- a/clients/php/CHANGELOG.md +++ b/clients/php/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.14.0](https://github.com/phrase/openapi/compare/php-v1.13.0...php-v1.14.0) (2023-10-13) + + +### Features + +* **API:** Implement figma attachments endpoints ([#415](https://github.com/phrase/openapi/issues/415)) ([970e612](https://github.com/phrase/openapi/commit/970e612fda620ca882a221ef541036b8d200b675)) + ## [1.13.0](https://github.com/phrase/openapi/compare/php-v1.12.0...php-v1.13.0) (2023-09-12) diff --git a/clients/python/CHANGELOG.md b/clients/python/CHANGELOG.md index 6f091c33..a119fc73 100644 --- a/clients/python/CHANGELOG.md +++ b/clients/python/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.14.0](https://github.com/phrase/openapi/compare/python-v1.13.0...python-v1.14.0) (2023-10-13) + + +### Features + +* **API:** Implement figma attachments endpoints ([#415](https://github.com/phrase/openapi/issues/415)) ([970e612](https://github.com/phrase/openapi/commit/970e612fda620ca882a221ef541036b8d200b675)) + ## [1.13.0](https://github.com/phrase/openapi/compare/python-v1.12.0...python-v1.13.0) (2023-09-12) diff --git a/clients/python/test/test_locales_api.py b/clients/python/test/test_locales_api.py new file mode 100644 index 00000000..fe2ddb7b --- /dev/null +++ b/clients/python/test/test_locales_api.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Phrase Strings API Reference + + The version of the OpenAPI document: 2.0.0 + Contact: support@phrase.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +from unittest.mock import Mock, patch + + +import phrase_api +from phrase_api.api.locales_api import LocalesApi # noqa: E501 +from phrase_api.rest import ApiException + + +class TestLocalesApi(unittest.TestCase): + """LocalesApi unit test stubs""" + + def setUp(self): + self.configuration = phrase_api.Configuration() + self.configuration.api_key['Authorization'] = 'YOUR_API_KEY' + self.configuration.api_key_prefix['Authorization'] = 'token' + + def tearDown(self): + pass + + def test_account_locales(self): + """Test case for account_locales + + List locales used in account # noqa: E501 + """ + pass + + + + def test_locale_create(self): + """Test case for locale_create + + Create a locale # noqa: E501 + """ + pass + + def test_locale_delete(self): + """Test case for locale_delete + + Delete a locale # noqa: E501 + """ + pass + + def test_locale_download(self): + """Test case for locale_download + + Download a locale # noqa: E501 + """ + pass + + def test_locale_show(self): + """Test case for locale_show + + Get a single locale # noqa: E501 + """ + pass + + def test_locale_update(self): + """Test case for locale_update + + Update a locale # noqa: E501 + """ + pass + + @patch('phrase_api.ApiClient.request') + def test_locales_list(self, mock_get): + """Test case for locales_list + + List locales # noqa: E501 + """ + mock_get.return_value = Mock(ok=True) + mock_get.return_value.data = '[{"id":"locale_id","name":"locale_name","code":"locale_code","default":true,"main":true,"rtl":true,"plural_forms":["plural_forms"]}]' + + project_id = "project_id_example" + with phrase_api.ApiClient(self.configuration) as api_client: + api_instance = phrase_api.api.locales_api.LocalesApi(api_client) + api_response = api_instance.locales_list(project_id) + + self.assertIsNotNone(api_response) + self.assertEqual(1, len(api_response)) + self.assertIsInstance(api_response[0], phrase_api.models.locale.Locale) + self.assertEqual("locale_id", api_response[0].id) + self.assertEqual("locale_id", api_response[0].id) + self.assertEqual("locale_name", api_response[0].name) + + + +if __name__ == '__main__': + unittest.main() diff --git a/clients/python/test/test_uploads_api.py b/clients/python/test/test_uploads_api.py new file mode 100644 index 00000000..bf09ddac --- /dev/null +++ b/clients/python/test/test_uploads_api.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Phrase Strings API Reference + + The version of the OpenAPI document: 2.0.0 + Contact: support@phrase.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +from unittest.mock import Mock, patch + +import phrase_api +from phrase_api.api.uploads_api import UploadsApi # noqa: E501 +from phrase_api.rest import ApiException + + +class TestUploadsApi(unittest.TestCase): + """UploadsApi unit test stubs""" + + def setUp(self): + self.configuration = phrase_api.Configuration() + self.configuration.api_key['Authorization'] = 'YOUR_API_KEY' + self.configuration.api_key_prefix['Authorization'] = 'token' + + def tearDown(self): + pass + + @patch('phrase_api.ApiClient.request') + def test_upload_create(self, mock_post): + """Test case for upload_create + + Upload a new file # noqa: E501 + """ + mock_post.return_value = Mock(ok=True) + mock_post.return_value.data = '{"id": "upload_id", "format": "simple_json"}' + + project_id = "project_id_example" + with phrase_api.ApiClient(self.configuration) as api_client: + api_instance = phrase_api.UploadsApi(api_client) + api_response = api_instance.upload_create(project_id, file="./README.md", file_format="simple_json") + + self.assertEqual("POST", mock_post.call_args_list[0].args[0]) + self.assertEqual("https://api.phrase.com/v2/projects/project_id_example/uploads", mock_post.call_args_list[0].args[1]) + + self.assertIsNotNone(api_response) + self.assertIsInstance(api_response, phrase_api.models.upload.Upload) + self.assertEqual("upload_id", api_response.id) + self.assertEqual("simple_json", api_response.format) + + def test_upload_show(self): + """Test case for upload_show + + Get a single upload # noqa: E501 + """ + pass + + def test_uploads_list(self): + """Test case for uploads_list + + List uploads # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/clients/ruby/CHANGELOG.md b/clients/ruby/CHANGELOG.md index 03a99330..7c0c4cbc 100644 --- a/clients/ruby/CHANGELOG.md +++ b/clients/ruby/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.17.0](https://github.com/phrase/openapi/compare/ruby-v2.16.0...ruby-v2.17.0) (2023-10-13) + + +### Features + +* **API:** Implement figma attachments endpoints ([#415](https://github.com/phrase/openapi/issues/415)) ([970e612](https://github.com/phrase/openapi/commit/970e612fda620ca882a221ef541036b8d200b675)) + ## [2.16.0](https://github.com/phrase/openapi/compare/ruby-v2.15.0...ruby-v2.16.0) (2023-09-12) diff --git a/clients/typescript/CHANGELOG.md b/clients/typescript/CHANGELOG.md index af24bc1f..b7ae2440 100644 --- a/clients/typescript/CHANGELOG.md +++ b/clients/typescript/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.14.0](https://github.com/phrase/openapi/compare/typescript-v1.13.0...typescript-v1.14.0) (2023-10-13) + + +### Features + +* **API:** Implement figma attachments endpoints ([#415](https://github.com/phrase/openapi/issues/415)) ([970e612](https://github.com/phrase/openapi/commit/970e612fda620ca882a221ef541036b8d200b675)) + ## [1.13.0](https://github.com/phrase/openapi/compare/typescript-v1.12.0...typescript-v1.13.0) (2023-09-12) diff --git a/doc/compiled.json b/doc/compiled.json index eefa83be..a0edd95e 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -1180,6 +1180,32 @@ ] } }, + "figma_attachment": { + "type": "object", + "title": "figma_attachment", + "properties": { + "id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "example": { + "id": "626ea67628690c73ac86ac81eec2d185", + "url": "https://figma.com/file/something", + "created_at": "2017-01-28T09:52:53Z", + "updated_at": "2017-01-28T09:52:53Z" + } + }, "glossary": { "type": "object", "title": "glossary", @@ -4074,6 +4100,15 @@ "type": "string" } }, + "figma_attachment_id": { + "in": "path", + "name": "figma_attachment_id", + "description": "Figma attachment ID", + "required": true, + "schema": { + "type": "string" + } + }, "job_id": { "in": "path", "name": "job_id", @@ -4713,6 +4748,515 @@ "x-cli-version": "2.5" } }, + "/projects/{project_id}/figma_attachments": { + "get": { + "summary": "List Figma attachments", + "description": "List all Figma attachments for the given project", + "operationId": "figma_attachments/list", + "tags": [ + "Figma attachments" + ], + "parameters": [ + { + "$ref": "#/components/parameters/X-PhraseApp-OTP" + }, + { + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/per_page" + }, + { + "description": "specify the branch to use", + "example": "my-feature-branch", + "name": "branch", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/figma_attachment" + } + } + } + }, + "headers": { + "X-Rate-Limit-Limit": { + "$ref": "#/components/headers/X-Rate-Limit-Limit" + }, + "X-Rate-Limit-Remaining": { + "$ref": "#/components/headers/X-Rate-Limit-Remaining" + }, + "X-Rate-Limit-Reset": { + "$ref": "#/components/headers/X-Rate-Limit-Reset" + }, + "Link": { + "$ref": "#/components/headers/Link" + } + } + }, + "400": { + "$ref": "#/components/responses/400" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "429": { + "$ref": "#/components/responses/429" + } + }, + "x-code-samples": [ + { + "lang": "Curl", + "source": "curl \"https://api.phrase.com/v2/projects/:project_id/figma_attachments?branch=my-feature-branch\" \\\n -X GET \\\n -u USERNAME_OR_ACCESS_TOKEN" + }, + { + "lang": "CLI v2", + "source": "phrase figma_attachments list \\\n--project_id \\\n--branch my-feature-branch \\\n--access_token " + } + ], + "x-cli-version": "2.13" + }, + "post": { + "summary": "Create a Figma attachment", + "description": "Create a new Figma attachment.", + "operationId": "figma_attachment/create", + "tags": [ + "Figma attachments" + ], + "parameters": [ + { + "$ref": "#/components/parameters/X-PhraseApp-OTP" + }, + { + "$ref": "#/components/parameters/project_id" + }, + { + "description": "specify the branch to use", + "example": "my-feature-branch", + "name": "branch", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/figma_attachment" + } + } + }, + "headers": { + "X-Rate-Limit-Limit": { + "$ref": "#/components/headers/X-Rate-Limit-Limit" + }, + "X-Rate-Limit-Remaining": { + "$ref": "#/components/headers/X-Rate-Limit-Remaining" + }, + "X-Rate-Limit-Reset": { + "$ref": "#/components/headers/X-Rate-Limit-Reset" + } + } + }, + "400": { + "$ref": "#/components/responses/400" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "429": { + "$ref": "#/components/responses/429" + } + }, + "x-code-samples": [ + { + "lang": "Curl", + "source": "curl \"https://api.phrase.com/v2/projects/:project_id/figma_attachments\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -F branch=my-feature-branch \\\n -F url=https://figma.com/file/xxxxx/sample \\" + }, + { + "lang": "CLI v2", + "source": "phrase figma_attachment create \\\n--project_id \\\n--data '{\"branch\":\"my-feature-branch\", \"url\":\"https://figma.com/file/xxxxx/sample\"}' \\\n--access_token " + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "title": "figma_attachment/create/parameters", + "properties": { + "branch": { + "description": "specify the branch to use", + "type": "string", + "example": "my-feature-branch" + }, + "url": { + "description": "Figma file url", + "type": "string", + "example": "https://figma.com/file/xxxxx/sample" + } + } + } + } + } + }, + "x-cli-version": "2.13" + } + }, + "/projects/{project_id}/figma_attachments/{id}": { + "get": { + "summary": "Get a single Figma attachment", + "description": "Get details on a single Figma attachment for a given project.", + "operationId": "figma_attachment/show", + "tags": [ + "Figma attachments" + ], + "parameters": [ + { + "$ref": "#/components/parameters/X-PhraseApp-OTP" + }, + { + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/id" + }, + { + "description": "specify the branch to use", + "example": "my-feature-branch", + "name": "branch", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/figma_attachment" + } + } + }, + "headers": { + "X-Rate-Limit-Limit": { + "$ref": "#/components/headers/X-Rate-Limit-Limit" + }, + "X-Rate-Limit-Remaining": { + "$ref": "#/components/headers/X-Rate-Limit-Remaining" + }, + "X-Rate-Limit-Reset": { + "$ref": "#/components/headers/X-Rate-Limit-Reset" + } + } + }, + "400": { + "$ref": "#/components/responses/400" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "429": { + "$ref": "#/components/responses/429" + } + }, + "x-code-samples": [ + { + "lang": "Curl", + "source": "curl \"https://api.phrase.com/v2/projects/:project_id/figma_attachments/:id?branch=my-feature-branch\" \\\n -X GET \\\n -u USERNAME_OR_ACCESS_TOKEN" + }, + { + "lang": "CLI v2", + "source": "phrase figma_attachment show \\\n--project_id \\\n--id \\\n--branch my-feature-branch \\\n--access_token " + } + ], + "x-cli-version": "2.13" + }, + "patch": { + "summary": "Update a Figma attachment", + "description": "Update an existing Figma attachment.", + "operationId": "figma_attachment/update", + "tags": [ + "Figma attachments" + ], + "parameters": [ + { + "$ref": "#/components/parameters/X-PhraseApp-OTP" + }, + { + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/id" + }, + { + "description": "specify the branch to use", + "example": "my-feature-branch", + "name": "branch", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/figma_attachment" + } + } + }, + "headers": { + "X-Rate-Limit-Limit": { + "$ref": "#/components/headers/X-Rate-Limit-Limit" + }, + "X-Rate-Limit-Remaining": { + "$ref": "#/components/headers/X-Rate-Limit-Remaining" + }, + "X-Rate-Limit-Reset": { + "$ref": "#/components/headers/X-Rate-Limit-Reset" + } + } + }, + "400": { + "$ref": "#/components/responses/400" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "429": { + "$ref": "#/components/responses/429" + } + }, + "x-code-samples": [ + { + "lang": "Curl", + "source": "curl \"https://api.phrase.com/v2/projects/:project_id/figma_attachments/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X PATCH \\\n -F branch=my-feature-branch \\\n -F url=https://figma.com/file/xxxxx/sample \\" + }, + { + "lang": "CLI v2", + "source": "phrase figma_attachment update \\\n--project_id \\\n--id \\\n--data '{\"branch\":\"my-feature-branch\", \"url\":\"https://figma.com/file/xxxxx/sample\" }' \\\n--access_token " + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "title": "figma_attachment/update/parameters", + "properties": { + "branch": { + "description": "specify the branch to use", + "type": "string", + "example": "my-feature-branch" + }, + "url": { + "description": "Figma file url", + "type": "string", + "example": "https://figma.com/file/xxxxx/sample" + } + } + } + } + } + }, + "x-cli-version": "2.13" + }, + "delete": { + "summary": "Delete a Figma attachment", + "description": "Delete an existing Figma attachment.", + "operationId": "figma_attachment/delete", + "tags": [ + "Figma attachments" + ], + "parameters": [ + { + "$ref": "#/components/parameters/X-PhraseApp-OTP" + }, + { + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/id" + }, + { + "description": "specify the branch to use", + "example": "my-feature-branch", + "name": "branch", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "$ref": "#/components/responses/204" + }, + "400": { + "$ref": "#/components/responses/400" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "429": { + "$ref": "#/components/responses/429" + } + }, + "x-code-samples": [ + { + "lang": "Curl", + "source": "curl \"https://api.phrase.com/v2/projects/:project_id/figma_attachments/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X DELETE \\\n -d '{\"branch\":\"my-feature-branch\"}' \\\n -H 'Content-Type: application/json'" + }, + { + "lang": "CLI v2", + "source": "phrase figma_attachment delete \\\n--project_id \\\n--id \\\n--branch my-feature-branch \\\n--access_token " + } + ], + "x-cli-version": "2.13" + } + }, + "/projects/{project_id}/figma_attachments/{figma_attachment_id}/keys": { + "post": { + "summary": "Attach the Figma attachment to a key", + "description": "Attach the Figma attachment to a key", + "operationId": "figma_attachment/attach_to_key", + "tags": [ + "Key's Figma attachments" + ], + "parameters": [ + { + "$ref": "#/components/parameters/X-PhraseApp-OTP" + }, + { + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/figma_attachment_id" + }, + { + "$ref": "#/components/parameters/id" + }, + { + "description": "specify the branch to use", + "example": "my-feature-branch", + "name": "branch", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "$ref": "#/components/responses/204" + }, + "400": { + "$ref": "#/components/responses/400" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "429": { + "$ref": "#/components/responses/429" + } + }, + "x-code-samples": [ + { + "lang": "Curl", + "source": "curl \"https://api.phrase.com/v2/projects/:project_id/figma_attachments/:figma_attachment_id/keys\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -F branch=my-feature-branch \\\n -F id=key_id \\\n -H 'Content-Type: application/json'" + }, + { + "lang": "CLI v2", + "source": "phrase figma_attachment attach_to_key \\\n--project_id \\\n--figma_attachment_id \\\n--id \\\n--branch my-feature-branch \\\n--access_token " + } + ], + "x-cli-version": "2.13" + } + }, + "/projects/{project_id}/figma_attachments/{figma_attachment_id}/keys/{id}": { + "delete": { + "summary": "Detach the Figma attachment from a key", + "description": "Detach the Figma attachment from a key", + "operationId": "figma_attachment/detach_from_key", + "tags": [ + "Key's Figma attachments" + ], + "parameters": [ + { + "$ref": "#/components/parameters/X-PhraseApp-OTP" + }, + { + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/figma_attachment_id" + }, + { + "$ref": "#/components/parameters/id" + }, + { + "description": "specify the branch to use", + "example": "my-feature-branch", + "name": "branch", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "$ref": "#/components/responses/204" + }, + "400": { + "$ref": "#/components/responses/400" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "429": { + "$ref": "#/components/responses/429" + } + }, + "x-code-samples": [ + { + "lang": "Curl", + "source": "curl \"https://api.phrase.com/v2/projects/:project_id/figma_attachments/:figma_attachment_id/keys/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X DELETE \\\n -F branch=my-feature-branch \\\n -H 'Content-Type: application/json'" + }, + { + "lang": "CLI v2", + "source": "phrase figma_attachment detach_from_key \\\n--project_id \\\n--figma_attachment_id \\\n--id \\\n--branch my-feature-branch \\\n--access_token " + } + ], + "x-cli-version": "2.13" + } + }, "/projects/{project_id}/styleguides": { "get": { "summary": "List style guides", diff --git a/openapi-generator/cli_lang.yaml b/openapi-generator/cli_lang.yaml index 60e4177e..27763fc5 100644 --- a/openapi-generator/cli_lang.yaml +++ b/openapi-generator/cli_lang.yaml @@ -2,6 +2,6 @@ generatorName: go outputDir: clients/cli packageName: phrase -packageVersion: 2.12.0 +packageVersion: 2.13.0 templateDir: openapi-generator/templates/cli apiNameSuffix: Api diff --git a/openapi-generator/go_lang.yaml b/openapi-generator/go_lang.yaml index b6b27dcd..ea992246 100644 --- a/openapi-generator/go_lang.yaml +++ b/openapi-generator/go_lang.yaml @@ -2,7 +2,7 @@ generatorName: go outputDir: clients/go packageName: phrase -packageVersion: 2.14.0 +packageVersion: 2.15.0 gitUserId: phrase gitRepoId: phrase-go httpUserAgent: Phrase Strings go diff --git a/openapi-generator/java_lang.yaml b/openapi-generator/java_lang.yaml index 432acd88..aaee3124 100644 --- a/openapi-generator/java_lang.yaml +++ b/openapi-generator/java_lang.yaml @@ -4,7 +4,7 @@ outputDir: clients/java apiPackage: com.phrase.client.api artifactId: phrase-java artifactUrl: https://developers.phrase.com -artifactVersion: 1.13.0 +artifactVersion: 1.14.0 artifactDescription: Java Client for Phrase Strings API developerEmail: support@phrase.com developerName: Phrase diff --git a/openapi-generator/php_lang.yaml b/openapi-generator/php_lang.yaml index 06c0a757..14be24ee 100644 --- a/openapi-generator/php_lang.yaml +++ b/openapi-generator/php_lang.yaml @@ -2,7 +2,7 @@ generatorName: php outputDir: clients/php invokerPackage: Phrase -artifactVersion: 1.13.0 +artifactVersion: 1.14.0 gitUserId: phrase gitRepoId: phrase-php packageName: phrase-php diff --git a/openapi-generator/python_lang.yaml b/openapi-generator/python_lang.yaml index bab48ff6..69d6fd2d 100644 --- a/openapi-generator/python_lang.yaml +++ b/openapi-generator/python_lang.yaml @@ -3,7 +3,7 @@ generatorName: python outputDir: clients/python packageName: phrase_api projectName: phrase-api -packageVersion: 1.13.0 +packageVersion: 1.14.0 packageUrl: https://github.com/phrase/phrase-python gitUserId: phrase gitRepoId: phrase-python diff --git a/openapi-generator/ruby_lang.yaml b/openapi-generator/ruby_lang.yaml index 812b0499..a78b4174 100644 --- a/openapi-generator/ruby_lang.yaml +++ b/openapi-generator/ruby_lang.yaml @@ -3,7 +3,7 @@ generatorName: ruby outputDir: clients/ruby moduleName: Phrase gemName: phrase -gemVersion: 2.16.0 +gemVersion: 2.17.0 gemDescription: Phrase Strings is a translation management platform for software projects. gemSummary: >- You can collaborate on language file translation with your team or order diff --git a/openapi-generator/templates/python/gitlab-ci.mustache b/openapi-generator/templates/python/gitlab-ci.mustache deleted file mode 100644 index 2cabff63..00000000 --- a/openapi-generator/templates/python/gitlab-ci.mustache +++ /dev/null @@ -1,38 +0,0 @@ -# ref: https://docs.gitlab.com/ee/ci/README.html - -stages: - - test - -.nosetest: - stage: test - script: - - pip install -r requirements.txt - - pip install -r test-requirements.txt - {{#useNose}} - - nosetests - {{/useNose}} - {{^useNose}} - - pytest --cov={{{packageName}}} - {{/useNose}} - -nosetest-2.7: - extends: .nosetest - image: python:2.7-alpine -nosetest-3.3: - extends: .nosetest - image: python:3.3-alpine -nosetest-3.4: - extends: .nosetest - image: python:3.4-alpine -nosetest-3.5: - extends: .nosetest - image: python:3.5-alpine -nosetest-3.6: - extends: .nosetest - image: python:3.6-alpine -nosetest-3.7: - extends: .nosetest - image: python:3.7-alpine -nosetest-3.8: - extends: .nosetest - image: python:3.8-alpine diff --git a/openapi-generator/templates/python/model_test.mustache b/openapi-generator/templates/python/model_test.mustache index cd55662e..da0779fc 100644 --- a/openapi-generator/templates/python/model_test.mustache +++ b/openapi-generator/templates/python/model_test.mustache @@ -28,6 +28,8 @@ class Test{{classname}}(unittest.TestCase): params are included, when True both required and optional params are included """ # model = {{packageName}}.models.{{classFilename}}.{{classname}}() # noqa: E501 + + """ if include_optional : return {{classname}}( {{#vars}} @@ -42,6 +44,7 @@ class Test{{classname}}(unittest.TestCase): {{/required}} {{/vars}} ) + """ def test{{classname}}(self): """Test {{classname}}""" diff --git a/openapi-generator/typescript_lang.yaml b/openapi-generator/typescript_lang.yaml index e16a25ad..bd06df37 100644 --- a/openapi-generator/typescript_lang.yaml +++ b/openapi-generator/typescript_lang.yaml @@ -2,6 +2,6 @@ generatorName: typescript-fetch outputDir: clients/typescript npmName: phrase-js -npmVersion: 1.13.0 +npmVersion: 1.14.0 typescriptThreePlus: true templateDir: openapi-generator/templates/typescript-fetch diff --git a/parameters.yaml b/parameters.yaml index 15efc833..d810a1ce 100644 --- a/parameters.yaml +++ b/parameters.yaml @@ -66,6 +66,13 @@ key_id: required: true schema: type: string +figma_attachment_id: + in: path + name: figma_attachment_id + description: Figma attachment ID + required: true + schema: + type: string job_id: in: path name: job_id diff --git a/paths.yaml b/paths.yaml index 2ee34e9f..86952429 100644 --- a/paths.yaml +++ b/paths.yaml @@ -1,5 +1,4 @@ --- - "/icu/skeleton": post: "$ref": "./paths/icu/skeleton.yaml" @@ -12,6 +11,24 @@ "/projects/{project_id}/documents/{id}": delete: "$ref": "./paths/documents/destroy.yaml" +"/projects/{project_id}/figma_attachments": + get: + "$ref": "./paths/figma_attachments/index.yaml" + post: + "$ref": "./paths/figma_attachments/create.yaml" +"/projects/{project_id}/figma_attachments/{id}": + get: + "$ref": "./paths/figma_attachments/show.yaml" + patch: + "$ref": "./paths/figma_attachments/update.yaml" + delete: + "$ref": "./paths/figma_attachments/destroy.yaml" +"/projects/{project_id}/figma_attachments/{figma_attachment_id}/keys": + post: + "$ref": "./paths/figma_attachment_keys/create.yaml" +"/projects/{project_id}/figma_attachments/{figma_attachment_id}/keys/{id}": + delete: + "$ref": "./paths/figma_attachment_keys/destroy.yaml" "/projects/{project_id}/styleguides": get: "$ref": "./paths/styleguides/index.yaml" diff --git a/paths/figma_attachment_keys/create.yaml b/paths/figma_attachment_keys/create.yaml new file mode 100644 index 00000000..b2d3e054 --- /dev/null +++ b/paths/figma_attachment_keys/create.yaml @@ -0,0 +1,44 @@ +--- +summary: Attach the Figma attachment to a key +description: Attach the Figma attachment to a key +operationId: figma_attachment/attach_to_key +tags: + - Key's Figma attachments +parameters: + - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" + - "$ref": "../../parameters.yaml#/project_id" + - "$ref": "../../parameters.yaml#/figma_attachment_id" + - "$ref": "../../parameters.yaml#/id" + - description: specify the branch to use + example: my-feature-branch + name: branch + in: query + schema: + type: string +responses: + "204": + "$ref": "../../responses.yaml#/204" + "400": + "$ref": "../../responses.yaml#/400" + "404": + "$ref": "../../responses.yaml#/404" + "429": + "$ref": "../../responses.yaml#/429" +x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/projects/:project_id/figma_attachments/:figma_attachment_id/keys" \ + -u USERNAME_OR_ACCESS_TOKEN \ + -X POST \ + -F branch=my-feature-branch \ + -F id=key_id \ + -H 'Content-Type: application/json' + - lang: CLI v2 + source: |- + phrase figma_attachment attach_to_key \ + --project_id \ + --figma_attachment_id \ + --id \ + --branch my-feature-branch \ + --access_token +x-cli-version: "2.13" diff --git a/paths/figma_attachment_keys/destroy.yaml b/paths/figma_attachment_keys/destroy.yaml new file mode 100644 index 00000000..98961b0b --- /dev/null +++ b/paths/figma_attachment_keys/destroy.yaml @@ -0,0 +1,43 @@ +--- +summary: Detach the Figma attachment from a key +description: Detach the Figma attachment from a key +operationId: figma_attachment/detach_from_key +tags: + - Key's Figma attachments +parameters: + - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" + - "$ref": "../../parameters.yaml#/project_id" + - "$ref": "../../parameters.yaml#/figma_attachment_id" + - "$ref": "../../parameters.yaml#/id" + - description: specify the branch to use + example: my-feature-branch + name: branch + in: query + schema: + type: string +responses: + "204": + "$ref": "../../responses.yaml#/204" + "400": + "$ref": "../../responses.yaml#/400" + "404": + "$ref": "../../responses.yaml#/404" + "429": + "$ref": "../../responses.yaml#/429" +x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/projects/:project_id/figma_attachments/:figma_attachment_id/keys/:id" \ + -u USERNAME_OR_ACCESS_TOKEN \ + -X DELETE \ + -F branch=my-feature-branch \ + -H 'Content-Type: application/json' + - lang: CLI v2 + source: |- + phrase figma_attachment detach_from_key \ + --project_id \ + --figma_attachment_id \ + --id \ + --branch my-feature-branch \ + --access_token +x-cli-version: "2.13" diff --git a/paths/figma_attachments/create.yaml b/paths/figma_attachments/create.yaml new file mode 100644 index 00000000..1bc37216 --- /dev/null +++ b/paths/figma_attachments/create.yaml @@ -0,0 +1,66 @@ +--- +summary: Create a Figma attachment +description: Create a new Figma attachment. +operationId: figma_attachment/create +tags: + - Figma attachments +parameters: + - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" + - "$ref": "../../parameters.yaml#/project_id" + - description: specify the branch to use + example: my-feature-branch + name: branch + in: query + schema: + type: string +responses: + "201": + description: Created + content: + application/json: + schema: + "$ref": "../../schemas/figma_attachment.yaml#/figma_attachment" + headers: + X-Rate-Limit-Limit: + "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" + X-Rate-Limit-Remaining: + "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining" + X-Rate-Limit-Reset: + "$ref": "../../headers.yaml#/X-Rate-Limit-Reset" + "400": + "$ref": "../../responses.yaml#/400" + "404": + "$ref": "../../responses.yaml#/404" + "429": + "$ref": "../../responses.yaml#/429" +x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/projects/:project_id/figma_attachments" \ + -u USERNAME_OR_ACCESS_TOKEN \ + -X POST \ + -F branch=my-feature-branch \ + -F url=https://figma.com/file/xxxxx/sample \ + - lang: CLI v2 + source: |- + phrase figma_attachment create \ + --project_id \ + --data '{"branch":"my-feature-branch", "url":"https://figma.com/file/xxxxx/sample"}' \ + --access_token +requestBody: + required: true + content: + application/json: + schema: + type: object + title: figma_attachment/create/parameters + properties: + branch: + description: specify the branch to use + type: string + example: my-feature-branch + url: + description: Figma file url + type: string + example: https://figma.com/file/xxxxx/sample +x-cli-version: "2.13" diff --git a/paths/figma_attachments/destroy.yaml b/paths/figma_attachments/destroy.yaml new file mode 100644 index 00000000..8f6d18e5 --- /dev/null +++ b/paths/figma_attachments/destroy.yaml @@ -0,0 +1,41 @@ +--- +summary: Delete a Figma attachment +description: Delete an existing Figma attachment. +operationId: figma_attachment/delete +tags: + - Figma attachments +parameters: + - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" + - "$ref": "../../parameters.yaml#/project_id" + - "$ref": "../../parameters.yaml#/id" + - description: specify the branch to use + example: my-feature-branch + name: branch + in: query + schema: + type: string +responses: + "204": + "$ref": "../../responses.yaml#/204" + "400": + "$ref": "../../responses.yaml#/400" + "404": + "$ref": "../../responses.yaml#/404" + "429": + "$ref": "../../responses.yaml#/429" +x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/projects/:project_id/figma_attachments/:id" \ + -u USERNAME_OR_ACCESS_TOKEN \ + -X DELETE \ + -d '{"branch":"my-feature-branch"}' \ + -H 'Content-Type: application/json' + - lang: CLI v2 + source: |- + phrase figma_attachment delete \ + --project_id \ + --id \ + --branch my-feature-branch \ + --access_token +x-cli-version: "2.13" diff --git a/paths/figma_attachments/index.yaml b/paths/figma_attachments/index.yaml new file mode 100644 index 00000000..7d2155ad --- /dev/null +++ b/paths/figma_attachments/index.yaml @@ -0,0 +1,54 @@ +--- +summary: List Figma attachments +description: List all Figma attachments for the given project +operationId: figma_attachments/list +tags: + - Figma attachments +parameters: + - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" + - "$ref": "../../parameters.yaml#/project_id" + - "$ref": "../../parameters.yaml#/page" + - "$ref": "../../parameters.yaml#/per_page" + - description: specify the branch to use + example: my-feature-branch + name: branch + in: query + schema: + type: string +responses: + "200": + description: OK + content: + application/json: + schema: + type: array + items: + "$ref": "../../schemas/figma_attachment.yaml#/figma_attachment" + headers: + X-Rate-Limit-Limit: + "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" + X-Rate-Limit-Remaining: + "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining" + X-Rate-Limit-Reset: + "$ref": "../../headers.yaml#/X-Rate-Limit-Reset" + Link: + "$ref": "../../headers.yaml#/Link" + "400": + "$ref": "../../responses.yaml#/400" + "404": + "$ref": "../../responses.yaml#/404" + "429": + "$ref": "../../responses.yaml#/429" +x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/projects/:project_id/figma_attachments?branch=my-feature-branch" \ + -X GET \ + -u USERNAME_OR_ACCESS_TOKEN + - lang: CLI v2 + source: |- + phrase figma_attachments list \ + --project_id \ + --branch my-feature-branch \ + --access_token +x-cli-version: "2.13" diff --git a/paths/figma_attachments/show.yaml b/paths/figma_attachments/show.yaml new file mode 100644 index 00000000..a44c2b3b --- /dev/null +++ b/paths/figma_attachments/show.yaml @@ -0,0 +1,50 @@ +--- +summary: Get a single Figma attachment +description: Get details on a single Figma attachment for a given project. +operationId: figma_attachment/show +tags: + - Figma attachments +parameters: + - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" + - "$ref": "../../parameters.yaml#/project_id" + - "$ref": "../../parameters.yaml#/id" + - description: specify the branch to use + example: my-feature-branch + name: branch + in: query + schema: + type: string +responses: + "200": + description: OK + content: + application/json: + schema: + "$ref": "../../schemas/figma_attachment.yaml#/figma_attachment" + headers: + X-Rate-Limit-Limit: + "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" + X-Rate-Limit-Remaining: + "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining" + X-Rate-Limit-Reset: + "$ref": "../../headers.yaml#/X-Rate-Limit-Reset" + "400": + "$ref": "../../responses.yaml#/400" + "404": + "$ref": "../../responses.yaml#/404" + "429": + "$ref": "../../responses.yaml#/429" +x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/projects/:project_id/figma_attachments/:id?branch=my-feature-branch" \ + -X GET \ + -u USERNAME_OR_ACCESS_TOKEN + - lang: CLI v2 + source: |- + phrase figma_attachment show \ + --project_id \ + --id \ + --branch my-feature-branch \ + --access_token +x-cli-version: "2.13" diff --git a/paths/figma_attachments/update.yaml b/paths/figma_attachments/update.yaml new file mode 100644 index 00000000..3fd8bf54 --- /dev/null +++ b/paths/figma_attachments/update.yaml @@ -0,0 +1,68 @@ +--- +summary: Update a Figma attachment +description: Update an existing Figma attachment. +operationId: figma_attachment/update +tags: + - Figma attachments +parameters: + - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" + - "$ref": "../../parameters.yaml#/project_id" + - "$ref": "../../parameters.yaml#/id" + - description: specify the branch to use + example: my-feature-branch + name: branch + in: query + schema: + type: string +responses: + "200": + description: OK + content: + application/json: + schema: + "$ref": "../../schemas/figma_attachment.yaml#/figma_attachment" + headers: + X-Rate-Limit-Limit: + "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" + X-Rate-Limit-Remaining: + "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining" + X-Rate-Limit-Reset: + "$ref": "../../headers.yaml#/X-Rate-Limit-Reset" + "400": + "$ref": "../../responses.yaml#/400" + "404": + "$ref": "../../responses.yaml#/404" + "429": + "$ref": "../../responses.yaml#/429" +x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/projects/:project_id/figma_attachments/:id" \ + -u USERNAME_OR_ACCESS_TOKEN \ + -X PATCH \ + -F branch=my-feature-branch \ + -F url=https://figma.com/file/xxxxx/sample \ + - lang: CLI v2 + source: |- + phrase figma_attachment update \ + --project_id \ + --id \ + --data '{"branch":"my-feature-branch", "url":"https://figma.com/file/xxxxx/sample" }' \ + --access_token +requestBody: + required: true + content: + application/json: + schema: + type: object + title: figma_attachment/update/parameters + properties: + branch: + description: specify the branch to use + type: string + example: my-feature-branch + url: + description: Figma file url + type: string + example: https://figma.com/file/xxxxx/sample +x-cli-version: "2.13" diff --git a/release-please/manifest-cli.json b/release-please/manifest-cli.json index 0746cbe2..e6eadb43 100644 --- a/release-please/manifest-cli.json +++ b/release-please/manifest-cli.json @@ -1,3 +1,3 @@ { - ".": "2.12.0" + ".": "2.13.0" } \ No newline at end of file diff --git a/release-please/manifest-go.json b/release-please/manifest-go.json index 58682893..cff01f26 100644 --- a/release-please/manifest-go.json +++ b/release-please/manifest-go.json @@ -1,3 +1,3 @@ { - ".": "2.14.0" + ".": "2.15.0" } \ No newline at end of file diff --git a/release-please/manifest-java.json b/release-please/manifest-java.json index f94eeca2..e72f1131 100644 --- a/release-please/manifest-java.json +++ b/release-please/manifest-java.json @@ -1,3 +1,3 @@ { - ".": "1.13.0" + ".": "1.14.0" } \ No newline at end of file diff --git a/release-please/manifest-php.json b/release-please/manifest-php.json index f94eeca2..e72f1131 100644 --- a/release-please/manifest-php.json +++ b/release-please/manifest-php.json @@ -1,3 +1,3 @@ { - ".": "1.13.0" + ".": "1.14.0" } \ No newline at end of file diff --git a/release-please/manifest-python.json b/release-please/manifest-python.json index f94eeca2..e72f1131 100644 --- a/release-please/manifest-python.json +++ b/release-please/manifest-python.json @@ -1,3 +1,3 @@ { - ".": "1.13.0" + ".": "1.14.0" } \ No newline at end of file diff --git a/release-please/manifest-ruby.json b/release-please/manifest-ruby.json index b2585653..c1a7e63f 100644 --- a/release-please/manifest-ruby.json +++ b/release-please/manifest-ruby.json @@ -1,3 +1,3 @@ { - ".": "2.16.0" + ".": "2.17.0" } \ No newline at end of file diff --git a/release-please/manifest-typescript.json b/release-please/manifest-typescript.json index f94eeca2..e72f1131 100644 --- a/release-please/manifest-typescript.json +++ b/release-please/manifest-typescript.json @@ -1,3 +1,3 @@ { - ".": "1.13.0" + ".": "1.14.0" } \ No newline at end of file diff --git a/schemas.yaml b/schemas.yaml index 57219cc2..5f0155f9 100644 --- a/schemas.yaml +++ b/schemas.yaml @@ -34,6 +34,8 @@ schemas: "$ref": schemas/member_project_detail.yaml#/member_project_detail invitation: "$ref": schemas/invitation.yaml#/invitation + figma_attachment: + "$ref": schemas/figma_attachment.yaml#/figma_attachment glossary: "$ref": schemas/glossary.yaml#/glossary glossary_term: diff --git a/schemas/figma_attachment.yaml b/schemas/figma_attachment.yaml new file mode 100644 index 00000000..038cfb33 --- /dev/null +++ b/schemas/figma_attachment.yaml @@ -0,0 +1,20 @@ +--- +figma_attachment: + type: object + title: figma_attachment + properties: + id: + type: string + url: + type: string + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + example: + id: 626ea67628690c73ac86ac81eec2d185 + url: https://figma.com/file/something + created_at: "2017-01-28T09:52:53Z" + updated_at: "2017-01-28T09:52:53Z"